mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Fix CLANG=1 NOASM=1 build.
git-svn-id: https://svn.eduke32.com/eduke32@3292 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c93096e938
commit
d7132e587f
2 changed files with 4 additions and 2 deletions
|
@ -332,6 +332,7 @@ else
|
||||||
|
|
||||||
ifneq (0,$(CLANG))
|
ifneq (0,$(CLANG))
|
||||||
# CLANG_MAJOR := $(shell clang -dM -E -x c /dev/null | grep __clang_major__ | awk '{ print $$3 }')
|
# CLANG_MAJOR := $(shell clang -dM -E -x c /dev/null | grep __clang_major__ | awk '{ print $$3 }')
|
||||||
|
# KEEPINSYNC with build/Makefile:
|
||||||
BASECFLAGS+= -Xclang -fcatch-undefined-behavior
|
BASECFLAGS+= -Xclang -fcatch-undefined-behavior
|
||||||
# ifeq ($(CLANG_MAJOR),3)
|
# ifeq ($(CLANG_MAJOR),3)
|
||||||
# debug+= -faddress-sanitizer
|
# debug+= -faddress-sanitizer
|
||||||
|
|
|
@ -287,10 +287,11 @@ $(OBJ)/%.$o: $(SRC)/%.nasm
|
||||||
$(COMPILE_STATUS)
|
$(COMPILE_STATUS)
|
||||||
if $(AS) $(OURASFLAGS) $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
if $(AS) $(OURASFLAGS) $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
||||||
|
|
||||||
# comment out to debug a-c.o
|
# Comment out the following rule to debug a-c.o
|
||||||
$(OBJ)/a-c.$o: $(SRC)/a-c.c
|
$(OBJ)/a-c.$o: $(SRC)/a-c.c
|
||||||
$(COMPILE_STATUS)
|
$(COMPILE_STATUS)
|
||||||
if $(COMPILER) $(subst -O0,-O2,$(subst -fcatch-undefined-behavior,,$(OURCFLAGS))) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
if $(COMPILER) $(subst -O0,-O2,$(subst -Xclang -fcatch-undefined-behavior,,$(OURCFLAGS))) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
||||||
|
# KEEPINSYNC the "... -fcatch-undefined-behavior" with Makefile.common
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/%.c
|
$(OBJ)/%.$o: $(SRC)/%.c
|
||||||
$(COMPILE_STATUS)
|
$(COMPILE_STATUS)
|
||||||
|
|
Loading…
Reference in a new issue