diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2018-11-01 13:58:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-01 13:58:24 -0400 |
| commit | e55d8dcb9fc5607b429f7120d8f5373cecf93e1f (patch) | |
| tree | cf03f1b0e7e9f4ee85abad61bdd680dca55b027c /Makefile | |
| parent | a73b24fb9b7e8baad3bc75abdcf6bbf659b3451b (diff) | |
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)
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
