hints/linux.370: Add support for ubsan (undefined behaviour sanitizer) for gcc

This will add an option to compile and link nethack executable
with ubsan and catch undefined behaviour errors on runtime.
This commit is contained in:
Mika Kuoppala
2024-06-01 22:45:05 +03:00
committed by nhmall
parent 6718a8af1f
commit 20f8af224b
3 changed files with 12 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ ifeq "$(WANT_ASAN)" "1"
USE_ASAN=1
endif
ifeq "$(WANT_UBSAN)" "1"
USE_UBSAN=1
endif
# If you want to override the compiler detection just carried out
# uncomment one of the following pairs. Note, however, that
# doing this after the detection above will likely result in