[PATCH] D58055: [CMake][LibFuzzer] Match symbol visibility setting between LibFuzzer object files and unit tests.
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 28 13:57:23 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT355143: [CMake][LibFuzzer] Match symbol visibility setting between LibFuzzer object… (authored by delcypher, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D58055?vs=186266&id=188786#toc
Repository:
rCRT Compiler Runtime
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58055/new/
https://reviews.llvm.org/D58055
Files:
lib/fuzzer/tests/CMakeLists.txt
Index: lib/fuzzer/tests/CMakeLists.txt
===================================================================
--- lib/fuzzer/tests/CMakeLists.txt
+++ lib/fuzzer/tests/CMakeLists.txt
@@ -27,6 +27,11 @@
list(APPEND LIBFUZZER_UNITTEST_CFLAGS -nostdinc++)
endif()
+if ("-fvisibility=hidden" IN_LIST LIBFUZZER_CFLAGS)
+ # Match visibility settings.
+ list(APPEND LIBFUZZER_UNITTEST_CFLAGS "-fvisibility=hidden")
+endif()
+
if(COMPILER_RT_DEFAULT_TARGET_ARCH IN_LIST FUZZER_SUPPORTED_ARCH)
# libFuzzer unit tests are only run on the host machine.
set(arch ${COMPILER_RT_DEFAULT_TARGET_ARCH})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58055.188786.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190228/90c853fd/attachment.bin>
More information about the llvm-commits
mailing list