forked from OSchip/llvm-project
Driver: Pass -I options to cc1as for .include search paths.
llvm-svn: 240432
This commit is contained in:
parent
ad3b6bfa2a
commit
c78c2bcb2a
|
@ -5246,6 +5246,9 @@ void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
// Ignore explicit -force_cpusubtype_ALL option.
|
||||
(void) Args.hasArg(options::OPT_force__cpusubtype__ALL);
|
||||
|
||||
// Pass along any -I options so we get proper .include search paths.
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_I_Group);
|
||||
|
||||
// Determine the original source input.
|
||||
const Action *SourceAction = &JA;
|
||||
while (SourceAction->getKind() != Action::InputClass) {
|
||||
|
|
|
@ -43,3 +43,6 @@
|
|||
|
||||
// RUN: %clang -### -c -integrated-as %s -Wa,-gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2WA %s
|
||||
// DWARF2WA: "-gdwarf-2"
|
||||
|
||||
// RUN: %clang -### -x assembler -c -integrated-as %s -I myincludedir 2>&1 | FileCheck --check-prefix=INCLUDEPATH %s
|
||||
// INCLUDEPATH: "-I" "myincludedir"
|
||||
|
|
Loading…
Reference in New Issue