Skip to content

Commit 3536b7f

Browse files
committed
Upgrade the build commands for C++ on Mac OS X to specify C++11 & libc++.
1 parent 8363ebd commit 3536b7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.macos32x86/common/Makefile.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $(OBJDIR)/%.o: %.m deps/%.d $(MAKEFILE)
2424
$(POSTCOMPILE)
2525

2626
$(OBJDIR)/%.o: %.cpp deps/%.d $(MAKEFILE)
27-
$(CC) -x c++ $(ALLFLAGS) $(INCLUDES) -c $< -o $@
27+
$(CC) -x c++ -std=c++11 -stdlib=libc++ $(ALLFLAGS) $(INCLUDES) -c $< -o $@
2828
$(POSTCOMPILE)
2929

3030
deps/%.d: ;

build.macos64x64/common/Makefile.rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ $(OBJDIR)/%.o: %.m deps/%.d $(MAKEFILE)
2424
$(POSTCOMPILE)
2525

2626
$(OBJDIR)/%.o: %.cpp deps/%.d $(MAKEFILE)
27-
$(CC) -x c++ $(ALLFLAGS) $(INCLUDES) -c $< -o $@
27+
$(CC) -x c++ -std=c++11 -stdlib=libc++ $(ALLFLAGS) $(INCLUDES) -c $< -o $@
2828
$(POSTCOMPILE)
2929

3030
deps/%.d: ;
3131

32-
.PRECIOUS: deps/%.d $(OBJDIR)/%.air $(OBJDIR)/%.metallib
32+
.PRECIOUS: deps/%.d
3333

3434
-include $(patsubst %,deps/%.d,$(notdir $(basename $(VMSRC) $(LIBSRC))))

0 commit comments

Comments
 (0)