Patch 3372345: Gmake action's PCHs don't work with Mingw (Martin Ridgers)
This commit is contained in:
parent
2a0a79c243
commit
7c3716fc77
@ -33,6 +33,7 @@
|
||||
* Patch 3035550: Make/Distcc outputs dependencies to wrong location
|
||||
* Patch 3138574: NoImportLib ignored in Windows makefiles dependencies (rjmyst3)
|
||||
* Patch 3367641: Remove warnings in Xcode 4
|
||||
* Patch 3372345: Gmake action's PCHs don't work with Mingw (Martin Ridgers)
|
||||
|
||||
|
||||
-------
|
||||
|
@ -280,7 +280,11 @@
|
||||
_p('ifneq (,$(PCH))')
|
||||
_p('$(GCH): $(PCH)')
|
||||
_p('\t@echo $(notdir $<)')
|
||||
_p('ifeq (posix,$(SHELLTYPE))')
|
||||
_p('\t-$(SILENT) cp $< $(OBJDIR)')
|
||||
_p('else')
|
||||
_p('\t$(SILENT) xcopy /D /Y /Q "$(subst /,\\,$<)" "$(subst /,\\,$(OBJDIR))" 1>nul')
|
||||
_p('endif')
|
||||
cpp.buildcommand(prj.language == "C")
|
||||
_p('endif')
|
||||
_p('')
|
||||
|
@ -68,7 +68,11 @@
|
||||
ifneq (,$(PCH))
|
||||
$(GCH): $(PCH)
|
||||
@echo $(notdir $<)
|
||||
ifeq (posix,$(SHELLTYPE))
|
||||
-$(SILENT) cp $< $(OBJDIR)
|
||||
else
|
||||
$(SILENT) xcopy /D /Y /Q "$(subst /,\,$<)" "$(subst /,\,$(OBJDIR))" 1>nul
|
||||
endif
|
||||
$(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -MF $(@:%.o=%.d) -c "$<"
|
||||
endif
|
||||
]]
|
||||
@ -83,7 +87,11 @@ endif
|
||||
ifneq (,$(PCH))
|
||||
$(GCH): $(PCH)
|
||||
@echo $(notdir $<)
|
||||
ifeq (posix,$(SHELLTYPE))
|
||||
-$(SILENT) cp $< $(OBJDIR)
|
||||
else
|
||||
$(SILENT) xcopy /D /Y /Q "$(subst /,\,$<)" "$(subst /,\,$(OBJDIR))" 1>nul
|
||||
endif
|
||||
$(SILENT) $(CC) $(CFLAGS) -o "$@" -MF $(@:%.o=%.d) -c "$<"
|
||||
endif
|
||||
]]
|
||||
|
Reference in New Issue
Block a user