[all-commits] [llvm/llvm-project] 4c6e27: [gn] Make ubsan errors fatal, as in cmake
Reid Kleckner via All-commits
all-commits at lists.llvm.org
Fri May 28 08:06:01 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4c6e2774d8273ecf8b23f376066249fee5e6f9f6
https://github.com/llvm/llvm-project/commit/4c6e2774d8273ecf8b23f376066249fee5e6f9f6
Author: Reid Kleckner <rnk at google.com>
Date: 2021-05-28 (Fri, 28 May 2021)
Changed paths:
M llvm/utils/gn/build/BUILD.gn
Log Message:
-----------
[gn] Make ubsan errors fatal, as in cmake
Apparently ubsan errors are non-fatal by default. If you introduce UB
into LLVM and run the tests, if errors are not fatal, the test will
still produce the expected output and the tests will pass. In order to
make ubsan errors show up as test failures, they have to be made fatal.
Pass the -fno-sanitize-recover=all flag to make it so.
Differential Revision: https://reviews.llvm.org/D103298
More information about the All-commits
mailing list