diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-02-24 11:32:49 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-02-24 11:32:49 +0000 |
commit | fbf8ff3d4c76bc001e77778cc03c441255e3596e (patch) | |
tree | 7b54b24b2ef5895ec8a6f4e6bf9f44519225d405 /cmake/Modules/CompilerRTUtils.cmake | |
parent | 72e55c5d2674790e94dc66696730963916f4dba1 (diff) |
[CMake] Better support for COMPILER_RT_ENABLE_WERROR. Make sure compiler-rt libraries are build by 'make all' command
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules/CompilerRTUtils.cmake')
-rw-r--r-- | cmake/Modules/CompilerRTUtils.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake index ae2d608c8..6c05a15d9 100644 --- a/cmake/Modules/CompilerRTUtils.cmake +++ b/cmake/Modules/CompilerRTUtils.cmake @@ -47,3 +47,9 @@ macro(append_no_rtti_flag list) append_if(${list} COMPILER_RT_HAS_FNO_RTTI_FLAG -fno-rtti) append_if(${list} COMPILER_RT_HAS_GR_FLAG /GR-) endmacro() + +macro(add_definitions_if condition) + if(${condition}) + add_definitions(${ARGN}) + endif() +endmacro() |