[compiler-rt] r363604 - Attempt to fix GWP-ASan build failure on sanitizer-android. Add -fPIC.

Mitch Phillips via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 12:39:30 PDT 2019


Author: hctim
Date: Mon Jun 17 12:39:29 2019
New Revision: 363604

URL: http://llvm.org/viewvc/llvm-project?rev=363604&view=rev
Log:
Attempt to fix GWP-ASan build failure on sanitizer-android. Add -fPIC.

Modified:
    compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt

Modified: compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt?rev=363604&r1=363603&r2=363604&view=diff
==============================================================================
--- compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt Mon Jun 17 12:39:29 2019
@@ -21,7 +21,7 @@ set(GWP_ASAN_HEADERS
 # Ensure that GWP-ASan meets the delegated requirements of some supporting
 # allocators. Some supporting allocators (e.g. scudo standalone) cannot use any
 # parts of the C++ standard library.
-set(GWP_ASAN_CFLAGS -fno-rtti -fno-exceptions -nostdinc++ -pthread)
+set(GWP_ASAN_CFLAGS -fno-rtti -fno-exceptions -fPIC -nostdinc++ -pthread)
 
 # Remove -stdlib= which is unused when passing -nostdinc++.
 string(REGEX REPLACE "-stdlib=[a-zA-Z+]*" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})




More information about the llvm-commits mailing list