Do not use -fno-addrsig for clang on Mac (it is only available with ELF targets)

parent aa10917f
Pipeline #42676 passed with stages
in 12 minutes and 23 seconds
......@@ -19,9 +19,9 @@ endif
USING_CLANG:=0
ifeq ($(shell $(CC) --version | grep -o clang),clang)
USING_CLANG:=1
ifndef OS
ifndef OS
OS:=Mac
endif
endif
endif
ifeq ($(OS),Mac)
......@@ -38,7 +38,11 @@ endif
ifeq ($(USING_CLANG),0)
override CFLAGS+=-Wno-misleading-indentation
else
override CFLAGS+=-Wno-parentheses-equality -fno-addrsig
override CFLAGS+=-Wno-parentheses-equality
ifneq ($(OS),Mac)
# Avoid address significance table on ELF; this is not support by all assemblers yet
override CFLAGS+=-fno-addrsig
endif
endif
ifeq ($(filter optimized,$(MAKECMDGOALS)),optimized)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment