diff options
author | Jason Perkins <starkos@industriousone.com> | 2014-12-08 19:46:34 +0300 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2014-12-08 19:46:34 +0300 |
commit | c04a1a0f6c98c119febb3e1ac479dfe38dcaa279 (patch) | |
tree | f605065c1dcf6cf20117690e22cb45abb7bd90dc | |
parent | 380953a882b9c7610e6949d79b9bff0996caa735 (diff) |
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
-rw-r--r-- | src/actions/make/make_cpp.lua | 2 | ||||
-rw-r--r-- | 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 |