diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2014-02-26 20:31:17 +0000 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2014-02-26 20:31:17 +0000 |
| commit | 2b41390c89bf87c5cb44203856a649b62f0e7010 (patch) | |
| tree | e52feb4493769d26e562b8757b848797bac1e151 | |
| parent | 3d69c5cae4ab976b16a12bc41a73d4b85477827c (diff) | |
| download | bcm5719-llvm-2b41390c89bf87c5cb44203856a649b62f0e7010.tar.gz bcm5719-llvm-2b41390c89bf87c5cb44203856a649b62f0e7010.zip | |
Emulate C99/C++11 __func__ for Visual C++.
llvm-svn: 202296
| -rw-r--r-- | compiler-rt/cmake/Modules/CompilerRTCompile.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/cmake/Modules/CompilerRTCompile.cmake b/compiler-rt/cmake/Modules/CompilerRTCompile.cmake index bb2d08018df..909d7b90d53 100644 --- a/compiler-rt/cmake/Modules/CompilerRTCompile.cmake +++ b/compiler-rt/cmake/Modules/CompilerRTCompile.cmake @@ -11,6 +11,9 @@ 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}" |

