From ddf649beabe0afe92e1b31739b2fa520cd7e239f Mon Sep 17 00:00:00 2001 From: Simon Byrne Date: Fri, 22 Sep 2017 13:24:07 -0700 Subject: [PATCH] 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. --- Make.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Make.inc b/Make.inc index 7ef3a08..fdaad2d 100644 --- a/Make.inc +++ b/Make.inc @@ -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)