Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: Makefile.standalone

Issue 1311653003: Add UBSAN build option and fix undefined behaviour errors. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceAssembler.h » ('j') | src/IceInst.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile.standalone
diff --git a/Makefile.standalone b/Makefile.standalone
index 0210ed4f1a3d93364d077835c4c195d4105c091c..156f05d733a744badb677449a81ee68249e77f54 100644
--- a/Makefile.standalone
+++ b/Makefile.standalone
@@ -96,6 +96,12 @@ else
OBJDIR := $(OBJDIR)+Asserts
endif
+ifdef UBSAN
+ OBJDIR := $(OBJDIR)+UBSan
+ CXX_EXTRA += -fsanitize=undefined -fno-sanitize=vptr
+ LD_EXTRA += -fsanitize=undefined
+endif
+
ifdef TSAN
OBJDIR := $(OBJDIR)+TSan
CXX_EXTRA += -fsanitize=thread
« no previous file with comments | « no previous file | src/IceAssembler.h » ('j') | src/IceInst.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698