search for: sanitizer_common_cflag

Displaying 6 results from an estimated 6 matches for "sanitizer_common_cflag".

2013 Feb 05
2
[LLVMdev] CMake, compiler-rt, and MacOS
...g compiler-rt on MacOS with libc++. For this to > work, the flag -mmacosx-version-min=10.7 is required, so I use: > CMAKE_CXX_FLAGS:STRING=-mmacosx-version-min=10.7 -stdlib=libc++ > > However, around line 140, the CMakeLists.txt of compiler-rt contains: > if(APPLE) > list(APPEND SANITIZER_COMMON_CFLAGS -mmacosx-version-min=10.5) > endif() > > Now, when building with clang, the minimal minimal version is used, so > 10.5, which results in a compiler error complaining that the minimal > version should be 10.7. > > My question: could you please add some CMake logic to the compil...
2013 Feb 05
2
[LLVMdev] CMake, compiler-rt, and MacOS
...>>> work, the flag -mmacosx-version-min=10.7 is required, so I use: >>> CMAKE_CXX_FLAGS:STRING=-mmacosx-version-min=10.7 -stdlib=libc++ >>> >>> However, around line 140, the CMakeLists.txt of compiler-rt contains: >>> if(APPLE) >>> list(APPEND SANITIZER_COMMON_CFLAGS -mmacosx-version-min=10.5) >>> endif() >>> >>> Now, when building with clang, the minimal minimal version is used, so >>> 10.5, which results in a compiler error complaining that the minimal >>> version should be 10.7. >>> >>> My quest...
2013 Feb 05
0
[LLVMdev] CMake, compiler-rt, and MacOS
...ith libc++. For this to >> work, the flag -mmacosx-version-min=10.7 is required, so I use: >> CMAKE_CXX_FLAGS:STRING=-mmacosx-version-min=10.7 -stdlib=libc++ >> >> However, around line 140, the CMakeLists.txt of compiler-rt contains: >> if(APPLE) >> list(APPEND SANITIZER_COMMON_CFLAGS -mmacosx-version-min=10.5) >> endif() >> >> Now, when building with clang, the minimal minimal version is used, so >> 10.5, which results in a compiler error complaining that the minimal >> version should be 10.7. >> >> My question: could you please add so...
2013 Feb 08
0
[LLVMdev] CMake, compiler-rt, and MacOS
...he flag -mmacosx-version-min=10.7 is required, so I use: >>>> CMAKE_CXX_FLAGS:STRING=-mmacosx-version-min=10.7 -stdlib=libc++ >>>> >>>> However, around line 140, the CMakeLists.txt of compiler-rt contains: >>>> if(APPLE) >>>> list(APPEND SANITIZER_COMMON_CFLAGS -mmacosx-version-min=10.5) >>>> endif() >>>> >>>> Now, when building with clang, the minimal minimal version is used, so >>>> 10.5, which results in a compiler error complaining that the minimal >>>> version should be 10.7. >>>&g...
2013 Feb 07
0
[LLVMdev] CMake, compiler-rt, and MacOS
...iling compiler-rt on MacOS with libc++. For this to work, the flag -mmacosx-version-min=10.7 is required, so I use: > CMAKE_CXX_FLAGS:STRING=-mmacosx-version-min=10.7 -stdlib=libc++ > > However, around line 140, the CMakeLists.txt of compiler-rt contains: > if(APPLE) > list(APPEND SANITIZER_COMMON_CFLAGS -mmacosx-version-min=10.5) > endif() > > Now, when building with clang, the minimal minimal version is used, so 10.5, which results in a compiler error complaining that the minimal version should be 10.7. > > My question: could you please add some CMake logic to the compiler-rt CM...
2014 Nov 03
8
[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack
...--- diff --git a/CMakeLists.txt b/CMakeLists.txt index 76e1cbb..e190a7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,6 +239,7 @@ append_list_if(COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG -fno-exceptions SANITIZER_COM append_list_if(COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG -fomit-frame-pointer SANITIZER_COMMON_CFLAGS) append_list_if(COMPILER_RT_HAS_FUNWIND_TABLES_FLAG -funwind-tables SANITIZER_COMMON_CFLAGS) append_list_if(COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG -fno-stack-protector SANITIZER_COMMON_CFLAGS) +append_list_if(COMPILER_RT_HAS_FNO_SAFE_STACK_FLAG -fno-safe-stack SANITIZER_COMMON_CFLAGS) append_...