summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-02-26 21:54:39 +0000
committerReid Kleckner <reid@kleckner.net>2014-02-26 21:54:39 +0000
commit8cd8f51516c4635283a791bb1bcfbc289a3501fa (patch)
treefffe9655e9cb94dabeb79851056c311117de42ec /cmake
parent2fd71ac0233fb2ee70bd3f502a05da14b8d1c068 (diff)
Append -D__func__=__FUNCTION__ to SANITIZER_COMMON_CFLAGS
This way it gets picked up for all sanitizer libs, both sanitizer_common and asan. I believe those are the only libs that build with asan. There should be no need to set the __func__ definition inside clang_compile. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/CompilerRTCompile.cmake3
1 files changed, 0 insertions, 3 deletions
diff --git a/cmake/Modules/CompilerRTCompile.cmake b/cmake/Modules/CompilerRTCompile.cmake
index 909d7b90d..bb2d08018 100644
--- a/cmake/Modules/CompilerRTCompile.cmake
+++ b/cmake/Modules/CompilerRTCompile.cmake
@@ -11,9 +11,6 @@ macro(clang_compile object_file source)
if(NOT COMPILER_RT_STANDALONE_BUILD)
list(APPEND SOURCE_DEPS clang)
endif()
- if (MSVC)
- list(APPEND SOURCE_CFLAGS -D__func__=__FUNCTION__)
- endif()
add_custom_command(
OUTPUT ${object_file}
COMMAND ${COMPILER_RT_TEST_COMPILER} ${SOURCE_CFLAGS} -c -o "${object_file}"