HomePhabricator

[gn] Make ubsan errors fatal, as in cmake

Authored by rnk on Thu, May 27, 8:00 PM.

Description

[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

Details

Committed
rnkFri, May 28, 8:05 AM
Differential Revision
D103298: [gn] Make ubsan errors fatal, as in cmake
Parents
rG0c4f76c9421a: [gn build] Port 58b29a4efc22
Branches
Unknown
Tags
Unknown