File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -687,8 +687,10 @@ endif()
687
687
# Note: Fuchsia and Windows are not currently supported by GWP-ASan. Support
688
688
# is planned for these platforms. Darwin is also not supported due to TLS
689
689
# calling malloc on first use.
690
+ # TODO(hctim): Enable this on Android again. Looks like it's causing a SIGSEGV
691
+ # for Scudo and GWP-ASan, further testing needed.
690
692
if (COMPILER_RT_HAS_SANITIZER_COMMON AND GWP_ASAN_SUPPORTED_ARCH AND
691
- OS_NAME MATCHES "Android| Linux" )
693
+ OS_NAME MATCHES "Linux" )
692
694
set (COMPILER_RT_HAS_GWP_ASAN TRUE )
693
695
else ()
694
696
set (COMPILER_RT_HAS_GWP_ASAN FALSE )
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ set(GWP_ASAN_HEADERS
21
21
# Ensure that GWP-ASan meets the delegated requirements of some supporting
22
22
# allocators. Some supporting allocators (e.g. scudo standalone) cannot use any
23
23
# parts of the C++ standard library.
24
- set (GWP_ASAN_CFLAGS -fno-rtti -fno-exceptions -fPIC -nostdinc++ -pthread )
24
+ set (GWP_ASAN_CFLAGS -fno-rtti -fno-exceptions -nostdinc++ -pthread )
25
+ append_list_if (COMPILER_RT_HAS_FPIC_FLAG -fPIC GWP_ASAN_CFLAGS )
25
26
26
27
# Remove -stdlib= which is unused when passing -nostdinc++.
27
28
string (REGEX REPLACE "-stdlib=[a-zA-Z+]*" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} )
You can’t perform that action at this time.
0 commit comments