From 9b41c110c609fa41199271fa379ef91b42b8e5b8 Mon Sep 17 00:00:00 2001 From: aurhat Date: Sat, 8 Feb 2020 14:33:02 +0100 Subject: [PATCH] Fix clang warnings and crashes --- source/src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/src/Makefile b/source/src/Makefile index 07de5c2b..ca23600c 100644 --- a/source/src/Makefile +++ b/source/src/Makefile @@ -129,9 +129,12 @@ clean: # -$(MAKE) -C ../enet/ clean %.h.gch: %.h - $(CXX) $(CXXFLAGS) -o $@.tmp $(subst .h.gch,.h,$@) + $(CXX) $(CXXFLAGS) -x c++-header -o $@.tmp $(subst .h.gch,.h,$@) $(MV) $@.tmp $@ +rendermodel.o: rendermodel.cpp + $(CXX) $(CXXFLAGS) -fno-strict-aliasing -c -o $@ $(subst .o,.cpp,$@) + %-standalone.o: %.cpp $(CXX) $(CXXFLAGS) -c -o $@ $(subst -standalone.o,.cpp,$@)