Use -MD instead of -MMD for reliability.
This commit is contained in:
parent
b1c25ccde0
commit
8eaa0a2732
|
@ -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()
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue