File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,16 @@ set(VCPKG_LIBRARY_LINKAGE static)
55# ASAN
66# Make sure this value matches up with https://llvm.org/docs/CMake.html "LLVM_USE_SANITIZER"
77set (VCPKG_USE_SANITIZER "Address" )
8+
89# If the following flags cause errors during build, you might need to manually
910# ignore the PORT and check VCPKG_USE_SANITIZER
1011if (NOT PORT MATCHES "^((llvm)|(llvm-[0-9]+)|(upb))$" )
1112 set (VCPKG_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -ffunction-sections -fdata-sections" )
1213 set (VCPKG_C_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -ffunction-sections -fdata-sections" )
13- set (VCPKG_LINKER_FLAGS "-fsanitize=address" )
1414endif ()
1515
16+ # Always apply sanitizer to linker flags
17+ set (VCPKG_LINKER_FLAGS "-fsanitize=address" )
18+
1619set (VCPKG_CMAKE_SYSTEM_NAME Darwin)
1720set (VCPKG_OSX_ARCHITECTURES arm64)
Original file line number Diff line number Diff line change @@ -5,14 +5,17 @@ set(VCPKG_LIBRARY_LINKAGE static)
55# ASAN
66# Make sure this value matches up with https://llvm.org/docs/CMake.html "LLVM_USE_SANITIZER"
77set (VCPKG_USE_SANITIZER "Address" )
8+
89# If the following flags cause errors during build, you might need to manually
910# ignore the PORT and check VCPKG_USE_SANITIZER
1011if (NOT PORT MATCHES "^((llvm)|(llvm-[0-9]+)|(upb))$" )
1112 set (VCPKG_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -ffunction-sections -fdata-sections" )
1213 set (VCPKG_C_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -ffunction-sections -fdata-sections" )
13- set (VCPKG_LINKER_FLAGS "-fsanitize=address" )
1414endif ()
1515
16+ # Always apply sanitizer to linker flags
17+ set (VCPKG_LINKER_FLAGS "-fsanitize=address" )
18+
1619# Only release builds
1720set (VCPKG_BUILD_TYPE release)
1821
Original file line number Diff line number Diff line change @@ -12,8 +12,10 @@ set(VCPKG_USE_SANITIZER "Address")
1212if (NOT PORT MATCHES "^((llvm)|(llvm-[0-9]+)|(upb))$" )
1313 set (VCPKG_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -ffunction-sections -fdata-sections" )
1414 set (VCPKG_C_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -ffunction-sections -fdata-sections" )
15- set (VCPKG_LINKER_FLAGS "-fsanitize=address" )
1615endif ()
1716
17+ # Always apply sanitizer to linker flags
18+ set (VCPKG_LINKER_FLAGS "-fsanitize=address" )
19+
1820set (VCPKG_CMAKE_SYSTEM_NAME Darwin)
1921set (VCPKG_OSX_ARCHITECTURES x86_64)
You can’t perform that action at this time.
0 commit comments