https://github.com/Kitware/CMake
Revision f6f1095413772e5d52f6699ff7324180e30f5c35 authored by Stephen Kelly on 14 May 2014, 21:56:53 UTC, committed by Stephen Kelly on 15 May 2014, 17:38:25 UTC
Clang discards the entire string if it is not used, removing
the ability to read the features from the compiled binary. That
is prevented by using the symbol.

GNU with -O3 also discards the string, so use the string in a
way which is determined by a runtime value (argc) to prevent
it being discarded.
1 parent 5c04dfe
History
Tip revision: f6f1095413772e5d52f6699ff7324180e30f5c35 authored by Stephen Kelly on 14 May 2014, 21:56:53 UTC
Features: Use the features symbol in the feature-test compile.
Tip revision: f6f1095
File Mode Size
Auxiliary
Help
Licenses
Modules
Source
Templates
Tests
Utilities
.gitattributes -rw-r--r-- 569 bytes
.hooks-config.bash -rw-r--r-- 866 bytes
CMakeCPack.cmake -rw-r--r-- 5.1 KB
CMakeCPackOptions.cmake.in -rw-r--r-- 2.7 KB
CMakeGraphVizOptions.cmake -rw-r--r-- 153 bytes
CMakeLists.txt -rw-r--r-- 22.8 KB
CMakeLogo.gif -rw-r--r-- 4.4 KB
CONTRIBUTING.rst -rw-r--r-- 1001 bytes
CTestConfig.cmake -rw-r--r-- 875 bytes
CTestCustom.cmake.in -rw-r--r-- 3.8 KB
CompileFlags.cmake -rw-r--r-- 3.1 KB
Copyright.txt -rw-r--r-- 2.6 KB
DartConfig.cmake -rw-r--r-- 809 bytes
DartLocal.conf.in -rw-r--r-- 4.0 KB
README.rst -rw-r--r-- 2.5 KB
bootstrap -rwxr-xr-x 56.0 KB
cmake_uninstall.cmake.in -rw-r--r-- 790 bytes
configure -rwxr-xr-x 99 bytes
doxygen.config -rw-r--r-- 27.4 KB

README.rst

back to top