[compiler-rt] r327196 - [Fuzzer] When building for Fuchsia, add an explicit libc++ dependency
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 9 18:00:18 PST 2018
Author: phosek
Date: Fri Mar 9 18:00:18 2018
New Revision: 327196
URL: http://llvm.org/viewvc/llvm-project?rev=327196&view=rev
Log:
[Fuzzer] When building for Fuchsia, add an explicit libc++ dependency
libFuzzer dependes on C++ library, when building for Fuchsia, we
need to ensure that libFuzzer is only being built after libc++
has been built, so we add an explicity dependency on it.
Differential Revision: https://reviews.llvm.org/D44340
Modified:
compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
Modified: compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/CMakeLists.txt?rev=327196&r1=327195&r2=327196&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/fuzzer/CMakeLists.txt Fri Mar 9 18:00:18 2018
@@ -111,6 +111,11 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linu
partially_link_libcxx(fuzzer_no_main ${LIBCXX_${arch}_PREFIX} ${arch})
partially_link_libcxx(fuzzer ${LIBCXX_${arch}_PREFIX} ${arch})
endforeach()
+elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia" AND HAVE_LIBCXX)
+ foreach(arch ${FUZZER_SUPPORTED_ARCH})
+ add_dependencies(RTfuzzer.${arch} cxx)
+ add_dependencies(RTfuzzer_main.${arch} cxx)
+ endforeach()
endif()
if(COMPILER_RT_INCLUDE_TESTS)
More information about the llvm-commits
mailing list