Skip to content

Commit ddf649b

Browse files
simonbyrneararslan
authored andcommitted
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.
1 parent c3968ca commit ddf649b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Make.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ AR = ar
3939
ifeq ($(USECLANG),1)
4040
USEGCC = 0
4141
CC = clang
42-
CFLAGS_add += -fno-builtin
42+
CFLAGS_add += -fno-builtin -fno-strict-aliasing
4343
endif
4444

4545
ifeq ($(USEGCC),1)

0 commit comments

Comments
 (0)