mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
Lagom: Add clang address/memory/undefined-behavior analyzer support
Adding the ability to turn on Clang analyzer support in the Lagom build. Right now the following are working warning free on the LibJS test suite: -DENABLE_MEMORY_SANITIZER:BOOL=ON -DENABLE_ADDRESS_SANITIZER:BOOL=ON The following analyzer produces errors when running the LibJS test suite: -DENABLE_UNDEFINED_SANITIZER:BOOL=ON
This commit is contained in:
parent
dd112421b4
commit
1e67efc5c1
2 changed files with 26 additions and 0 deletions
|
@ -4,6 +4,9 @@ if [ "`uname`" = "SerenityOS" ]; then
|
|||
js_program=/bin/js
|
||||
else
|
||||
[ -z "$js_program" ] && js_program="$SERENITY_ROOT/Meta/Lagom/build/js"
|
||||
|
||||
# Enable back traces if sanitizers are enabled
|
||||
export UBSAN_OPTIONS=print_stacktrace=1
|
||||
fi
|
||||
|
||||
pass_count=0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue