Use -MD instead of -MMD for reliability.

This commit is contained in:
Jussi Pakkanen 2017-12-18 19:38:45 +02:00
parent b1c25ccde0
commit 8eaa0a2732
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class CCompiler(Compiler):
return self.build_unix_rpath_args(build_dir, from_dir, rpath_paths, build_rpath, install_rpath)
def get_dependency_gen_args(self, outtarget, outfile):
return ['-MMD', '-MQ', outtarget, '-MF', outfile]
return ['-MD', '-MQ', outtarget, '-MF', outfile]
def depfile_for_object(self, objfile):
return objfile + '.' + self.get_depfile_suffix()

View File

@ -99,7 +99,7 @@ end program prog
def get_dependency_gen_args(self, outtarget, outfile):
# Disabled until this is fixed:
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62162
# return ['-cpp', '-MMD', '-MQ', outtarget]
# return ['-cpp', '-MD', '-MQ', outtarget]
return []
def get_output_args(self, target):