Implement -iwithsysroot, an apple extension which is a close cousin of -isystem.
Instead of implementing -isystem, I accidentally implemented this cousin. Next up is to implement -isystem right. llvm-svn: 111966
This commit is contained in:
@@ -1173,7 +1173,7 @@ static void ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args) {
|
||||
for (arg_iterator it = Args.filtered_begin(OPT_iquote),
|
||||
ie = Args.filtered_end(); it != ie; ++it)
|
||||
Opts.AddPath((*it)->getValue(Args), frontend::Quoted, true, false);
|
||||
for (arg_iterator it = Args.filtered_begin(OPT_isystem),
|
||||
for (arg_iterator it = Args.filtered_begin(OPT_isystem, OPT_iwithsysroot),
|
||||
ie = Args.filtered_end(); it != ie; ++it)
|
||||
Opts.AddPath((*it)->getValue(Args), frontend::System, true, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user