Go to file
Alexey Samsonov ba46a47e07 [Sanitizer] Replace diagnostic string literal to workaround CMake 2.8 bug.
Let me tell you a story. Suppose you want to build your project (e.g. LLVM)
with CMake 2.8, Clang and AddressSanitizer. You also want to ensure that
Clang is fresh enough and check that CMAKE_CXX_COMPILER_VERSION is 3.1+.
This check would fail - CMake would fail to correctly calculate compiler
version if you pass CMAKE_CXX_FLAGS=-fsanitize=address.

The problem is funky compiler version calculation in
CMakeDetermineCompilerId.cmake module: it compiles the sample source
file with provided compiler and compile flags, runs "strings" and greps
for "INFO:" ASCII strings contained on the executable to fetch
"INFO:compiler", "INFO:compiler_version" etc. It limits the output of
grep to just 4 lines.

Unfortunately, if your executable was built with ASan, it would also contain
an ASCII string
  INFO: %s ignores mlock/mlockall/munlock/munlockall
and INFO:compiler_version string would never be parsed.

All of the above actually happened after r243574 when we tried to
configure libcxx with just-built Clang with TSan/MSan, and the version
check mentioned above failed in HandleLLVMOptions.cmake

(╯°□°)╯.~.┻━┻

llvm-svn: 243599
2015-07-30 00:50:40 +00:00
clang Avoid failure to canonicalize '..'. 2015-07-30 00:26:34 +00:00
clang-tools-extra Move an extra switch to clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp from check_clang_tidy.sh. 2015-07-28 22:41:04 +00:00
compiler-rt [Sanitizer] Replace diagnostic string literal to workaround CMake 2.8 bug. 2015-07-30 00:50:40 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Fix double implementation of log 2015-07-24 18:07:14 +00:00
libcxx Revert recent CMake changes again due to failing compiler-rt builds 2015-07-29 23:46:55 +00:00
libcxxabi [libcxxabi] Add -funwind-tables to the test compilation options. 2015-07-27 18:20:17 +00:00
libunwind [libunwind] Flip order of extern "C" and attribute(visibility) 2015-07-24 19:29:05 +00:00
lld Remove unused #includes. 2015-07-29 22:53:29 +00:00
lldb Make DWARF at_comp_dir symbolic links configurable via plugin.symbol-file.dwarf.comp-dir-symlink-paths setting. 2015-07-29 22:18:16 +00:00
llgo [llgo] build llgoi by default 2015-07-21 00:47:18 +00:00
llvm Prefix make_reverse_iterator with llvm namespace. 2015-07-30 00:40:42 +00:00
openmp Update Build_With_CMake.txt to reflect changes in CMake refactor 2015-07-27 16:23:42 +00:00
polly Do not detect scops that are delinearized to arrays with "undef" size 2015-07-29 13:52:05 +00:00