enable -fno-strict-aliasing for clang (#156)

Type punning via unions in clang is not safe without -fno-strict-aliasing. See https://bugs.llvm.org//show_bug.cgi?id=31928.
This commit is contained in:
Simon Byrne 2017-09-22 13:24:07 -07:00 committed by Alex Arslan
parent c3968ca11f
commit ddf649beab
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ AR = ar
ifeq ($(USECLANG),1)
USEGCC = 0
CC = clang
CFLAGS_add += -fno-builtin
CFLAGS_add += -fno-builtin -fno-strict-aliasing
endif
ifeq ($(USEGCC),1)