forked from OSchip/llvm-project
[clang] Remove `-triple` from the invocations of `flang-new -fc1`
This is just a small change in the Flang tool within libclangDriver. Currently it passes `-triple` when calling `flang-new -fc1` for various driver Jobs. As there is no support for code-generation, `-triple` is not required and should remain unsupported. It is safe to remove it. This hasn't been a problem as the affected driver Jobs are not yet implemented or used. However, we will be adding support for them in the near future and the fact `-triple` is added will become a problem. Differential Revision: https://reviews.llvm.org/D93027
This commit is contained in:
parent
b035513c06
commit
764690b8a8
|
@ -40,8 +40,6 @@ void Flang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
else
|
||||
CmdArgs.push_back("-E");
|
||||
} else if (isa<CompileJobAction>(JA) || isa<BackendJobAction>(JA)) {
|
||||
CmdArgs.push_back("-triple");
|
||||
CmdArgs.push_back(Args.MakeArgString(TripleStr));
|
||||
if (JA.getType() == types::TY_Nothing) {
|
||||
CmdArgs.push_back("-fsyntax-only");
|
||||
} else if (JA.getType() == types::TY_AST) {
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
! CHECK-E-DAG: "-o" "-"
|
||||
|
||||
! RUN: %clang --driver-mode=flang -### -emit-ast %s 2>&1 | FileCheck --check-prefixes=ALL,CHECK-EMIT-AST %s
|
||||
! CHECK-EMIT-AST-DAG: "-triple"
|
||||
! CHECK-EMIT-AST-DAG: "-emit-ast"
|
||||
! CHECK-EMIT-AST-DAG: "-o" "{{[^"]*}}.ast"
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
! CHECK-E-DAG: "-o" "-"
|
||||
|
||||
! RUN: %clang --driver-mode=flang -### -emit-ast %s 2>&1 | FileCheck --check-prefixes=ALL,CHECK-EMIT-AST %s
|
||||
! CHECK-EMIT-AST-DAG: "-triple"
|
||||
! CHECK-EMIT-AST-DAG: "-emit-ast"
|
||||
! CHECK-EMIT-AST-DAG: "-o" "{{[^"]*}}.ast"
|
||||
|
||||
|
|
Loading…
Reference in New Issue