[llvm-dev] CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions? (original) (raw)

Dennis Luehring via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 18 21:10:52 PDT 2018


my build environment:

Win7 x64 VStudio 2017 Community Edition 15.8.4 (latest) CMake 3.12.1 (x86) git 2.19.0 (latest, x64) Python 2.7.2 (x86)

directory structure

test   llvm <-- git clone https://github.com/llvm-mirror/llvm     tools       clang <-- git clone https://github.com/llvm-mirror/clang   llvm_build

Debug build: clean build, llvm_build is deleted before

llvm_build> cmake -Thost=x64 -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD=host -DLLVM_BUILD_EXAMPLES=1 -DCLANG_BUILD_EXAMPLES=1 -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_DOCS=OFF ..\llvm

builds for hours, a few warning, no errors -> llvm_build is ~44GB

i can find many working libs/exes(also examples) in llvm_build\Debug(lib|bin)

then i tried to build release versions

Release build: clean build, llvm_build is deleted before

llvm_build> cmake -Thost=x64 -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host -DLLVM_BUILD_EXAMPLES=1 -DCLANG_BUILD_EXAMPLES=1 -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_DOCS=OFF ..\llvm

builds for hours, a few warning, no errors -> llvm_build is ~47GB (i though Release would be smaller?)

i can find many working libs/exes(also examples) in llvm_build\Debug(lib|bin) - the executables seems to be larger as in "Debug"-Build?

llvm-build\Release\bin just contains llvm-lit.py

why is the debug folder populated and where i can find the Release build libs/exes?



More information about the llvm-dev mailing list