Skip to content

Commit

Permalink
gn build: Pass -fno-sanitize=vptr,function with use_ubsan
Browse files Browse the repository at this point in the history
Matches CMake LLVM_UBSAN_FLAGS.

Reviewers: aeubanks

Reviewed By: aeubanks

Pull Request: llvm#93911
  • Loading branch information
pcc committed Jun 4, 2024
1 parent 303f140 commit c852475
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/utils/gn/build/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ config("compiler_defaults") {
"ubsan only supported on iOS/Clang, Linux/Clang, or macOS/Clang")
cflags += [
"-fsanitize=undefined",
"-fno-sanitize=vptr,function",
"-fno-sanitize-recover=all",
]
ldflags += [ "-fsanitize=undefined" ]
Expand Down

0 comments on commit c852475

Please sign in to comment.