Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/libcxx-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ jobs:
machine: libcxx-self-hosted-linux
- config: 'generic-asan'
machine: libcxx-self-hosted-linux
- config: 'generic-cfisan'
machine: libcxx-self-hosted-linux
- config: 'generic-tsan'
machine: libcxx-self-hosted-linux
- config: 'generic-ubsan'
Expand Down
1 change: 1 addition & 0 deletions libcxx/cmake/caches/Generic-cfisan.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set(LLVM_USE_SANITIZER "CFI" CACHE STRING "")
5 changes: 5 additions & 0 deletions libcxx/utils/ci/run-buildbot
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,11 @@ generic-ubsan)
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-ubsan.cmake"
check-runtimes
;;
generic-cfisan)
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cfisan.cmake"
check-runtimes
;;
#
# Various build configurations
#
Expand Down
4 changes: 4 additions & 0 deletions libcxx/utils/libcxx/test/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def getSuitableClangTidy(cfg):
"",
"Address",
"HWAddress",
"CFI",
"Undefined",
"Memory",
"MemoryWithOrigins",
Expand All @@ -327,6 +328,9 @@ def getSuitableClangTidy(cfg):
AddFlag("-fsanitize=hwaddress") if sanitizer == "HWAddress" else None,
AddFeature("hwasan") if sanitizer == "HWAddress" else None,

AddFlag("-fsanitize=cfi") if sanitizer == "CFI" else None,
AddFeature("cfi") if sanitizer == "CFI" else None,

AddFlag("-fsanitize=memory") if sanitizer in ["Memory", "MemoryWithOrigins"] else None,
AddFeature("msan") if sanitizer in ["Memory", "MemoryWithOrigins"] else None,
AddFlag("-fsanitize-memory-track-origins") if sanitizer == "MemoryWithOrigins" else None,
Expand Down
Loading