From e55d8dcb9fc5607b429f7120d8f5373cecf93e1f Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 1 Nov 2018 13:58:24 -0400 Subject: Newer versions of gcc, optimize away tests for this being null, because this being null is defined as undefined behavior in the standard. This is a workaround that disables that optimization for now. (#708) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 50694b87b..bd9f1ddb0 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ SHARED_LIB_SUFFIX := .so BIN_SUFFIX := # Note: we set `visibility=hidden` to avoid exporting more symbols than # we really need. -CFLAGS := -std=c++11 -fvisibility=hidden +CFLAGS := -std=c++11 -fvisibility=hidden -fno-delete-null-pointer-checks CFLAGS += -I. LDFLAGS := -L$(OUTPUTDIR) SHARED_LIB_LDFLAGS := -shared -- cgit v1.2.3