<span style=" font-size:10pt;font-family:sans-serif">If I understand correctly,
you need to set Release mode within the VS IDE because with that generator
the CMAKE_BUILD_TYPE variable is ignored because it is a "multi-configuration
target".</span>
<br>
<br><span style=" font-size:10pt;font-family:sans-serif">see </span><a href="https://stackoverflow.com/questions/24460486/cmake-build-type-not-being-used-in-cmakelists-txt"><span style=" font-size:10pt;color:blue;font-family:sans-serif">https://stackoverflow.com/questions/24460486/cmake-build-type-not-being-used-in-cmakelists-txt</span></a>
<br>
<br>
<br>
<br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">From:
       </span><span style=" font-size:9pt;font-family:sans-serif">Dennis
Luehring via llvm-dev <llvm-dev@lists.llvm.org></span>
<br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">To:
       </span><span style=" font-size:9pt;font-family:sans-serif">llvm-dev
<llvm-dev@lists.llvm.org></span>
<br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Date:
       </span><span style=" font-size:9pt;font-family:sans-serif">2018.09.19
06:11</span>
<br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Subject:
       </span><span style=" font-size:9pt;font-family:sans-serif">[llvm-dev]
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create
release versions?</span>
<br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Sent
by:        </span><span style=" font-size:9pt;font-family:sans-serif">"llvm-dev"
<llvm-dev-bounces@lists.llvm.org></span>
<br>
<hr noshade>
<br>
<br>
<br><tt><span style=" font-size:10pt">my build environment:<br>
<br>
Win7 x64<br>
VStudio 2017 Community Edition 15.8.4 (latest)<br>
CMake 3.12.1 (x86)<br>
git 2.19.0 (latest, x64)<br>
Python 2.7.2 (x86)<br>
<br>
directory structure<br>
<br>
test<br>
   llvm <-- git clone </span></tt><a href="https://github.com/llvm-mirror/llvm"><tt><span style=" font-size:10pt">https://github.com/llvm-mirror/llvm</span></tt></a><tt><span style=" font-size:10pt"><br>
     tools<br>
       clang <-- git clone </span></tt><a href="https://github.com/llvm-mirror/clang"><tt><span style=" font-size:10pt">https://github.com/llvm-mirror/clang</span></tt></a><tt><span style=" font-size:10pt"><br>
   llvm_build<br>
<br>
Debug build: clean build, llvm_build is deleted before<br>
<br>
llvm_build> cmake -Thost=x64 -G "Visual Studio 15 2017 Win64"
<br>
-DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD=host <br>
-DLLVM_BUILD_EXAMPLES=1 -DCLANG_BUILD_EXAMPLES=1 <br>
-DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_DOCS=OFF ..\llvm<br>
<br>
builds for hours, a few warning, no errors -> llvm_build is ~44GB<br>
<br>
i can find many working libs/exes(also examples) in <br>
llvm_build\Debug\(lib|bin)<br>
<br>
then i tried to build release versions<br>
<br>
Release build: clean build, llvm_build is deleted before<br>
<br>
llvm_build> cmake -Thost=x64 -G "Visual Studio 15 2017 Win64"
<br>
-DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host <br>
-DLLVM_BUILD_EXAMPLES=1 -DCLANG_BUILD_EXAMPLES=1 <br>
-DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_DOCS=OFF ..\llvm<br>
<br>
builds for hours, a few warning, no errors -> llvm_build is ~47GB (i
<br>
though Release would be smaller?)<br>
<br>
i can find many working libs/exes(also examples) in <br>
llvm_build\Debug\(lib|bin) - the executables seems to be larger as in <br>
"Debug"-Build?<br>
<br>
llvm-build\Release\bin just contains llvm-lit.py<br>
<br>
why is the debug folder populated and where i can find the Release build
<br>
libs/exes?<br>
<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
llvm-dev@lists.llvm.org<br>
</span></tt><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev"><tt><span style=" font-size:10pt">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</span></tt></a><tt><span style=" font-size:10pt"><br>
</span></tt>
<br>
<br><PRE>This message is intended only for the recipient(s) named above. It may contain proprietary information and/or
protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received
this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect
personal data, in case of data privacy queries, please contact the ESA Data Protection Officer (dpo@esa.int).
</PRE>