From a9141dee8f470f624574f4e7a0fadac20a83a0db Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Mon, 8 Dec 2014 11:46:34 -0500 Subject: Add missing quotes around PCH compile flags (h/t Daniel Gibson) See comment at https://bitbucket.org/premake/premake-4.x/commits/7e583c84a367985227e0865bedfda6315416e288#comment-1468822 --- src/actions/make/make_cpp.lua | 2 +- tests/actions/make/test_make_pch.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/make/make_cpp.lua b/src/actions/make/make_cpp.lua index 782493e..2761810 100644 --- a/src/actions/make/make_cpp.lua +++ b/src/actions/make/make_cpp.lua @@ -358,5 +358,5 @@ function cpp.buildcommand(iscfile, objext) local flags = iif(iscfile, '$(CC) $(ALL_CFLAGS)', '$(CXX) $(ALL_CXXFLAGS)') - _p('\t$(SILENT) %s $(FORCE_INCLUDE) -o "$@" -MF $(@:%%.%s=%%.d) -c "$<"', flags, objext) + _p('\t$(SILENT) %s $(FORCE_INCLUDE) -o "$@" -MF "$(@:%%.%s=%%.d)" -c "$<"', flags, objext) end diff --git a/tests/actions/make/test_make_pch.lua b/tests/actions/make/test_make_pch.lua index 500f2ae..6d30ef1 100644 --- a/tests/actions/make/test_make_pch.lua +++ b/tests/actions/make/test_make_pch.lua @@ -100,7 +100,7 @@ $(GCH): $(PCH) test.capture [[ $(OBJDIR)/main.o: main.cpp @echo $(notdir $<) - $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<" + $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" ]] end -- cgit v1.2.3