cmake: Add ENABLE_UBSAN for -fsanitize=undefined

Change-Id: I73db5f904a7d86052aae62e67b01281763c83561
This commit is contained in:
Dominique Martinet
2018-10-10 15:20:08 +09:00
parent 2a63c962fc
commit 2f456b8752
5 changed files with 237 additions and 0 deletions

View File

@ -24,6 +24,9 @@
/* whether UTI is enabled */
#cmakedefine ENABLE_UTI 1
/* whether undefined behaviour sanitizer is enabled */
#cmakedefine ENABLE_UBSAN 1
/* Path of bind-mount source directory */
#cmakedefine ROOTFSDIR "${ROOTFSDIR}"