diff options
| author | Yury Gribov <y.gribov@samsung.com> | 2015-04-09 08:06:49 +0000 | 
|---|---|---|
| committer | Yury Gribov <y.gribov@samsung.com> | 2015-04-09 08:06:49 +0000 | 
| commit | 8e49b47e0ab49df5a3d2e146a2b871927a07113f (patch) | |
| tree | 5da29d83557bb9052ffb4a9a482ce1b4fe5e06e0 /compiler-rt/cmake/Modules/CompilerRTUtils.cmake | |
| parent | 2c2acf9602d89e1715385fdc0c3f0fb80d063391 (diff) | |
| download | bcm5719-llvm-8e49b47e0ab49df5a3d2e146a2b871927a07113f.tar.gz bcm5719-llvm-8e49b47e0ab49df5a3d2e146a2b871927a07113f.zip | |
[ASan] Only include rpc headers if they are available.
Reviewed at http://reviews.llvm.org/D8698
llvm-svn: 234470
Diffstat (limited to 'compiler-rt/cmake/Modules/CompilerRTUtils.cmake')
| -rw-r--r-- | compiler-rt/cmake/Modules/CompilerRTUtils.cmake | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake index ae59732928a..0fdb784525e 100644 --- a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake +++ b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake @@ -49,3 +49,11 @@ macro(append_no_rtti_flag list)    append_list_if(COMPILER_RT_HAS_FNO_RTTI_FLAG -fno-rtti ${list})    append_list_if(COMPILER_RT_HAS_GR_FLAG /GR- ${list})  endmacro() + +macro(append_have_file_definition filename varname list) +  check_include_file("${filename}" "${varname}") +  if (NOT "${varname}") +    set("${varname}" 0) +  endif() +  list(APPEND ${list} "${varname}=${${varname}}") +endmacro() | 

