[PATCH] D49397: Pass CMAKE_C_FLAGS to the custom libc++ build too

Azharuddin Mohammed via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 16 12:23:20 PDT 2018


azharudd created this revision.
azharudd added reviewers: phosek, vitalybuka.
Herald added a subscriber: mgorny.
Herald added a reviewer: EricWF.

When cross-compiling, flags which are passed to the compiler-rt build should be
passed to the custom libc++ build too.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D49397

Files:
  lib/fuzzer/CMakeLists.txt


Index: lib/fuzzer/CMakeLists.txt
===================================================================
--- lib/fuzzer/CMakeLists.txt
+++ lib/fuzzer/CMakeLists.txt
@@ -124,6 +124,7 @@
     set(LIBCXX_${arch}_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/libcxx_fuzzer_${arch})
     add_custom_libcxx(libcxx_fuzzer_${arch} ${LIBCXX_${arch}_PREFIX}
       CFLAGS ${TARGET_CFLAGS}
+             ${CMAKE_C_FLAGS}
              -D_LIBCPP_ABI_VERSION=Fuzzer
              -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS=1
              -fvisibility=hidden


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49397.155735.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180716/e81ac130/attachment.bin>


More information about the llvm-commits mailing list