diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-14 15:38:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-14 15:38:48 +0000 |
commit | 5894cadf20b9970848068ff54fa4e2bfd0a9683b (patch) | |
tree | d2cbfed3f6ec3aaf3c88cfee1f6512e155cc82f8 /cmake/Modules/SanitizerUtils.cmake | |
parent | 3bce7d2fca357e6a1db9eff4a1c58545a3020f1b (diff) | |
download | src-5894cadf20b9970848068ff54fa4e2bfd0a9683b.tar.gz src-5894cadf20b9970848068ff54fa4e2bfd0a9683b.zip |
vendor/compiler-rt/compiler-rt-release_40-r292951vendor/compiler-rt/compiler-rt-release_40-r292732vendor/compiler-rt/compiler-rt-release_40-r292009
Notes
Diffstat (limited to 'cmake/Modules/SanitizerUtils.cmake')
-rw-r--r-- | cmake/Modules/SanitizerUtils.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/Modules/SanitizerUtils.cmake b/cmake/Modules/SanitizerUtils.cmake index 3e1a6346e12a..c80fc3b1eefc 100644 --- a/cmake/Modules/SanitizerUtils.cmake +++ b/cmake/Modules/SanitizerUtils.cmake @@ -48,13 +48,13 @@ endmacro() # This function is only used on Darwin, where undefined symbols must be specified # in the linker invocation. -function(add_weak_symbols libname linkflags) +function(add_weak_symbols libname link_flags) file(STRINGS "${COMPILER_RT_SOURCE_DIR}/lib/${libname}/weak_symbols.txt" WEAK_SYMBOLS) - set(local_linkflags ${${linkflags}}) + set(local_link_flags ${${link_flags}}) foreach(SYMBOL ${WEAK_SYMBOLS}) - set(local_linkflags ${local_linkflags} -Wl,-U,${SYMBOL}) + set(local_link_flags ${local_link_flags} -Wl,-U,${SYMBOL}) endforeach() - set(${linkflags} ${local_linkflags} PARENT_SCOPE) + set(${link_flags} ${local_link_flags} PARENT_SCOPE) endfunction() macro(add_sanitizer_rt_version_list name) |