search for: cmake_build_type

Displaying 20 results from an estimated 95 matches for "cmake_build_type".

Did you mean: dcmake_build_type
2019 Apr 11
0
Opus cmake build
Hi Christian Adam, Thanks for pointing this out, I made the necessary changes to account for this. So the behavior is as follows: * If no CMAKE_BUILD_TYPE is set and no CFLAGS are set it will default to Release. i.e ( cmake .. ) * If a developer want full control then use export CFLAGS in leave CMAKE_BUILD_TYPE empty. * If a developer want to test CFLAGS in combination with CMAKE_BUILD_TYPE one has to specify CMAKE_BUILD_TYPE and export the CFLAG...
2019 Apr 11
2
Opus cmake build
...ses the "empty" build, which is used in combination with the environment variables CFLAGS and CXXFLAGS. This build type is targeted at Linux distributions which want to use the same compiler flags for multiple packages. If you want to change the default build type to something else when CMAKE_BUILD_TYPE is empty, make sure that you do that when $ENV{CFLAGS} and $ENV{CXXFLAGS} are not set. There is a blog entry at Kitware https://blog.kitware.com/cmake-and-the-default-build-type/ on this topic. Unfortunately it doesn't address the CFLAGS, CXXFLAGS issue. I guess one can combine the both and h...
2020 Nov 17
10
wasteful cmake defaults
...ild type; absence of a command line switch does not always imply absence of a choice. I took some measurements. The machine under test is an otherwise unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs running Debian sid with gcc-10.2 as the host toolchain. $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ... $ time ninja llc ... [1199/1199] Linking CXX executable bin/llc ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total and then: $ git apply <<'EOF' diff...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...Lists.txt cmake_minimum_required(VERSION 2.8) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) # Make Debug the default, pass -DCMAKE_BUILD_TYPE=Release to change this. if (NOT CMAKE_BUILD_TYPE) message ("Setting CMAKE_BUILD_TYPE = Debug") set(CMAKE_BUILD_TYPE Debug) endif() if(APPLE) set(CMAKE_MACOSX_RPATH ON) set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -undefined dynamic_lookup")...
2011 Feb 14
1
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
...under Snow Leopard? > > No, I should've mentioned it: this is Debian unstable x86_64, and > wxwidgets is definetely 64-bit. > Maybe its just something messed up on my system (had 2.9.1 in > /usr/local/). Willtry removing that and reinstalling 2.8. OK, I figured, I have to set CMAKE_BUILD_TYPE to Release and then everything works. With an empty CMAKE_BUILD_TYPE it doesn't work, maybe because LLVM defines _DEBUG and that confuses wxwidgets into a debug mode, and fails because wxwidgets is really built in release mode? Don't know... Best regards, --Edwin
2016 Feb 19
3
undefined reference to typeinfo for CmpInst
...ion R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC ../../lib/libLLVMX86CodeGen.a: could not read symbols: Bad value collect2: error: ld returned 1 exit status I am not sure how to proceed from here.. Thanks, Frank SRC=$HOME/svn/llvm-3.8 CMAKE_BUILD_TYPE="Debug" CMAKE_INSTALL_PREFIX="$HOME/toolchain/install/llvm-3.8" LLVM_TARGETS_TO_BUILD="X86" CXX="/dist/gcc-4.8.2/bin/g++" CC="/dist/gcc-4.8.2/bin/gcc" #-DBUILD_SHARED_LIBS="ON" \ cmake -G "Unix Makefiles" \ -DCMAKE_CXX_FLAGS=...
2020 Nov 18
1
wasteful cmake defaults
...ply absence of a >> choice. >> >> I took some measurements. The machine under test is an otherwise >> unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs >> running Debian sid with gcc-10.2 as the host toolchain. >> >> $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ >> -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON >> ... >> $ time ninja llc >> ... >> [1199/1199] Linking CXX executable bin/llc >> ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total >&...
2018 Sep 19
4
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
>because with that generator the CMAKE_BUILD_TYPE variable is ignored >because it is a "multi-configuration target". thanks for the link, is that a bug in the CMake configuration (or better not getting any warning) or is there just documentation missing? so i can use --config Debug or --config Release and get the correct results...
2019 Apr 10
0
Opus cmake build
Hi Mark, Thanks for the feedback. By default CMake is building the static library in debug, to get other things one has to explicit turn it on. To build in release mode for CMake you use the following flag: -DCMAKE_BUILD_TYPE=Release https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html CMAKE_BUILD_TYPE — CMake 3.14.1 Documentation<https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html> CMAKE_BUILD_TYPE¶. Specifies the build type on single-configuration generators. This statically specifie...
2016 Feb 03
3
opt with Polly doesn't find the passes
I just checkout release_38 branches of llvm, clang and polly and built it on and x86 Ubuntu with cmake: CMAKE_BUILD_TYPE="Debug" CMAKE_INSTALL_PREFIX="$HOME/toolchain/install/llvm-3.8" LLVM_TARGETS_TO_BUILD="X86" cmake -G "Unix Makefiles" \ -DBUILD_SHARED_LIBS="ON" \ -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \ -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX \ -DLLVM_TARGETS_...
2009 Jun 03
2
[LLVMdev] CMake build maturity
...le all asserts are thrown away, hmmm :) > > Yeah, that's "Release-Asserts" as in "Release minus asserts". > > This has caused confusion before... Committed a change for the cmake build that implements the option LLVM_ENABLE_ASSERTS. Defaults to ON if and only if CMAKE_BUILD_TYPE is Release. -- Óscar
2017 Aug 08
2
Safety of changing values of variables by editing CMakeCache.txt Vs supplying them through the command line
Hello, I'm working on a project involving LLVM and keep shifting between the Debug and Release build by assigning different values to CMAKE_BUILD_TYPE in <llvm_build>/CMakeCache.txt and then building it. I wanted to know if this was a safe alternative to re-configuring the build after removing <llvm_build>/CMakeFiles/ and <llvm_build>/CMakeCache.txt. Thanks, Sanjay -------------- next part -------------- An HTML attachment was...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...ION 2.8) > > set(CMAKE_EXPORT_COMPILE_COMMANDS ON) > > set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) > set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) > set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) > > # Make Debug the default, pass -DCMAKE_BUILD_TYPE=Release to change this. > if (NOT CMAKE_BUILD_TYPE) > message ("Setting CMAKE_BUILD_TYPE = Debug") > set(CMAKE_BUILD_TYPE Debug) > endif() > > if(APPLE) > set(CMAKE_MACOSX_RPATH ON) > set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLA...
2019 Apr 10
2
Opus cmake build
I tried the new cmake-based build system to build Opus on Linux and macOS. I'm not familiar with cmake but based on instructions I found online I used it as follows: - mkdir build - cd build - cmake -DCMAKE_INSTALL_PREFIX:PATH=<install-path> .. - make - ctest - make install Although the "make" command completed, it reported that optimizations were disabled:
2020 Nov 18
1
wasteful cmake defaults
...ih Hsu wrote: > > > > > Just trying to understand: Are you suggesting a way to have a “-O0” > > > build without all the debug information? > > > > > Exactly. > > What is such a build useful for the average user? If changing the > default, I think that CMAKE_BUILD_TYPE=Release is what most > non-developer users want. You're probably right, in that if I just want to build e.g. clang from source because my distro package manager contains an old version and I'm not interested in hacking on it myself, then a release build makes sense. However, I think thi...
2020 Nov 17
0
wasteful cmake defaults
...e switch does not always imply absence of a > choice. > > I took some measurements. The machine under test is an otherwise > unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs > running Debian sid with gcc-10.2 as the host toolchain. > > $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ > -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON > ... > $ time ninja llc > ... > [1199/1199] Linking CXX executable bin/llc > ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total > > and then: > >...
2020 Nov 18
0
wasteful cmake defaults
...ne switch does not always imply absence of a > choice. > > I took some measurements. The machine under test is an otherwise > unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs > running Debian sid with gcc-10.2 as the host toolchain. > > $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ > -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON > ... > $ time ninja llc > ... > [1199/1199] Linking CXX executable bin/llc > ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total > > and then: > >...
2020 Nov 17
0
wasteful cmake defaults
...udience is high value compared to other audiences/users. > > I took some measurements. The machine under test is an otherwise > unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs > running Debian sid with gcc-10.2 as the host toolchain. > > $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ > -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON > ... > $ time ninja llc > ... > [1199/1199] Linking CXX executable bin/llc > ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total > > and then: > >...
2010 Oct 01
2
[LLVMdev] CMake "sudo make install" & headers
Hi, I did this: $ cmake -DCMAKE_INSTALL_PREFIX=~/llvm-2.8 -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 .. $ make $ make install Still didn't install the headers. $ cd ~/llvm-2.8/include/ $ ls -la total 0 drwxr-xr-x 2 samuel staff 68 1 Oct 12:47 . drwxr-xr-x 6 samuel staff 204 1 Oct 12:47 .. Libraries and binaries installed fine: $ cd ../lib/ $ ls...
2018 Sep 19
2
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
...very long > time. In addition, make sure you have plenty of memory, because the > link stages take up a lot on Debug builds. > On Wed, 19 Sep 2018 at 10:04, Dennis Luehring via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > > > >because with that generator the CMAKE_BUILD_TYPE variable is ignored > > >because it is a "multi-configuration target". > > > > thanks for the link, is that a bug in the CMake configuration (or better > > not getting any warning) or is there just documentation missing? > > > > so i can use --confi...