diff options
Diffstat (limited to 'compiler-rt/lib/tsan/CMakeLists.txt')
-rw-r--r-- | compiler-rt/lib/tsan/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler-rt/lib/tsan/CMakeLists.txt b/compiler-rt/lib/tsan/CMakeLists.txt index dab681a62bd..030904798cb 100644 --- a/compiler-rt/lib/tsan/CMakeLists.txt +++ b/compiler-rt/lib/tsan/CMakeLists.txt @@ -9,9 +9,10 @@ set(TSAN_CFLAGS -fPIE -fno-rtti) -set(TSAN_RTL_CFLAGS - ${TSAN_CFLAGS} - -Wframe-larger-than=512) +set(TSAN_RTL_CFLAGS ${TSAN_CFLAGS}) +if(SUPPORTS_FRAME_LARGER_THAN_FLAG) + list(APPEND TSAN_RTL_CFLAGS -Wframe-larger-than=512) +endif() if(SUPPORTS_GLOBAL_CONSTRUCTORS_FLAG) list(APPEND TSAN_RTL_CFLAGS -Wglobal-constructors) endif() |