[PATCH] D89439: [cmake] Add LLVM_UBSAN_FLAGS, to allow overriding UBSan flags

Dave Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 26 10:52:21 PDT 2020


kastiglione added inline comments.


================
Comment at: llvm/CMakeLists.txt:490
 option(LLVM_OPTIMIZE_SANITIZED_BUILDS "Pass -O1 on debug sanitizer builds" ON)
+set(LLVM_UBSAN_FLAGS
+    "-fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all"
----------------
should this be `option()`? I think this will overwrite `-DLLVM_UBSAN_FLAGS=<value>`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89439/new/

https://reviews.llvm.org/D89439



More information about the llvm-commits mailing list