mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Pull in r164717 from upstream clang trunk:
Allow -MF to be used in combination with -E -M or -E -MM. This should help with building the lang/ghc port. MFC after: 1 week
This commit is contained in:
parent
6b1b791da6
commit
75286ea4ca
1 changed files with 3 additions and 3 deletions
|
|
@ -219,11 +219,11 @@ void Clang::AddPreprocessingOptions(Compilation &C,
|
|||
(A = Args.getLastArg(options::OPT_MMD))) {
|
||||
// Determine the output location.
|
||||
const char *DepFile;
|
||||
if (Output.getType() == types::TY_Dependencies) {
|
||||
DepFile = Output.getFilename();
|
||||
} else if (Arg *MF = Args.getLastArg(options::OPT_MF)) {
|
||||
if (Arg *MF = Args.getLastArg(options::OPT_MF)) {
|
||||
DepFile = MF->getValue(Args);
|
||||
C.addFailureResultFile(DepFile);
|
||||
} else if (Output.getType() == types::TY_Dependencies) {
|
||||
DepFile = Output.getFilename();
|
||||
} else if (A->getOption().matches(options::OPT_M) ||
|
||||
A->getOption().matches(options::OPT_MM)) {
|
||||
DepFile = "-";
|
||||
|
|
|
|||
Loading…
Reference in a new issue