forked from OSchip/llvm-project
Update for the gnu flavor being renamed to old-gnu.
llvm-svn: 253191
This commit is contained in:
parent
87842f3b4e
commit
156aac0bb6
|
@ -6224,7 +6224,7 @@ void amdgpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
std::string Linker = getToolChain().GetProgramPath(getShortName());
|
||||
ArgStringList CmdArgs;
|
||||
CmdArgs.push_back("-flavor");
|
||||
CmdArgs.push_back("gnu");
|
||||
CmdArgs.push_back("old-gnu");
|
||||
CmdArgs.push_back("-target");
|
||||
CmdArgs.push_back(Args.MakeArgString(getToolChain().getTripleString()));
|
||||
AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs);
|
||||
|
@ -8477,7 +8477,7 @@ void gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
|
||||
if (llvm::sys::path::filename(ToolChain.Linker) == "lld") {
|
||||
CmdArgs.push_back("-flavor");
|
||||
CmdArgs.push_back("gnu");
|
||||
CmdArgs.push_back("old-gnu");
|
||||
CmdArgs.push_back("-target");
|
||||
CmdArgs.push_back(Args.MakeArgString(getToolChain().getTripleString()));
|
||||
}
|
||||
|
@ -9467,7 +9467,7 @@ void MinGW::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
StringRef LinkerName = Args.getLastArgValue(options::OPT_fuse_ld_EQ, "ld");
|
||||
if (LinkerName.equals_lower("lld")) {
|
||||
CmdArgs.push_back("-flavor");
|
||||
CmdArgs.push_back("gnu");
|
||||
CmdArgs.push_back("old-gnu");
|
||||
} else if (!LinkerName.equals_lower("ld")) {
|
||||
D.Diag(diag::err_drv_unsupported_linker) << LinkerName;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// RUN: %clang -### -target amdgcn--amdhsa -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
|
||||
// AS_LINK: clang{{.*}} "-cc1as"
|
||||
// AS_LINK: lld{{.*}} "-flavor" "gnu" "-target" "amdgcn--amdhsa"
|
||||
// AS_LINK: lld{{.*}} "-flavor" "old-gnu" "-target" "amdgcn--amdhsa"
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
// RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s 2>&1 | FileCheck -check-prefix=CHECK_LD_32 %s
|
||||
// CHECK_LD_32: {{ld|ld.exe}}"
|
||||
// CHECK_LD_32: "i386pe"
|
||||
// CHECK_LD_32_NOT: "-flavor" "gnu"
|
||||
// CHECK_LD_32_NOT: "-flavor" "old-gnu"
|
||||
|
||||
// RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=lld 2>&1 | FileCheck -check-prefix=CHECK_LLD_32 %s
|
||||
// CHECK_LLD_32: lld" "-flavor" "gnu"
|
||||
// CHECK_LLD_32: lld" "-flavor" "old-gnu"
|
||||
// CHECK_LLD_32: "i386pe"
|
||||
|
||||
// RUN: %clang -### -target x86_64-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=lld 2>&1 | FileCheck -check-prefix=CHECK_LLD_64 %s
|
||||
// CHECK_LLD_64: lld" "-flavor" "gnu"
|
||||
// CHECK_LLD_64: lld" "-flavor" "old-gnu"
|
||||
// CHECK_LLD_64: "i386pep"
|
||||
|
||||
// RUN: %clang -### -target arm-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=lld 2>&1 | FileCheck -check-prefix=CHECK_LLD_ARM %s
|
||||
// CHECK_LLD_ARM: lld" "-flavor" "gnu"
|
||||
// CHECK_LLD_ARM: lld" "-flavor" "old-gnu"
|
||||
// CHECK_LLD_ARM: "thumb2pe"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
// CHECK-BE-HF-32R2: "{{[^"]*}}clang{{[^"]*}}" {{.*}} "-triple" "mips-mti-linux"
|
||||
// CHECK-BE-HF-32R2-SAME: "-fuse-init-array" "-target-cpu" "mips32r2"
|
||||
// CHECK-BE-HF-32R2-SAME: "-isysroot" "{{.*}}mips_mti_linux/sysroot"
|
||||
// CHECK-BE-HF-32R2: "{{[^"]*}}lld{{[^"]*}}" "-flavor" "gnu" "-target" "mips-mti-linux"
|
||||
// CHECK-BE-HF-32R2: "{{[^"]*}}lld{{[^"]*}}" "-flavor" "old-gnu" "-target" "mips-mti-linux"
|
||||
// CHECK-BE-HF-32R2-SAME: "--sysroot=[[SYSROOT:[^"]+]]" {{.*}} "-dynamic-linker" "/lib/ld-musl-mips.so.1"
|
||||
// CHECK-BE-HF-32R2-SAME: "[[SYSROOT]]/mips-r2-hard-musl/usr/lib{{/|\\\\}}crt1.o"
|
||||
// CHECK-BE-HF-32R2-SAME: "[[SYSROOT]]/mips-r2-hard-musl/usr/lib{{/|\\\\}}crti.o"
|
||||
|
@ -32,7 +32,7 @@
|
|||
// CHECK-LE-HF-32R2: "{{[^"]*}}clang{{[^"]*}}" {{.*}} "-triple" "mipsel-mti-linux"
|
||||
// CHECK-LE-HF-32R2-SAME: "-fuse-init-array" "-target-cpu" "mips32r2"
|
||||
// CHECK-LE-HF-32R2-SAME: "-isysroot" "{{.*}}mips_mti_linux/sysroot"
|
||||
// CHECK-LE-HF-32R2: "{{[^"]*}}lld{{[^"]*}}" "-flavor" "gnu" "-target" "mipsel-mti-linux"
|
||||
// CHECK-LE-HF-32R2: "{{[^"]*}}lld{{[^"]*}}" "-flavor" "old-gnu" "-target" "mipsel-mti-linux"
|
||||
// CHECK-LE-HF-32R2-SAME: "--sysroot=[[SYSROOT:[^"]+]]" {{.*}} "-dynamic-linker" "/lib/ld-musl-mipsel.so.1"
|
||||
// CHECK-LE-HF-32R2-SAME: "[[SYSROOT]]/mipsel-r2-hard-musl/usr/lib{{/|\\\\}}crt1.o"
|
||||
// CHECK-LE-HF-32R2-SAME: "[[SYSROOT]]/mipsel-r2-hard-musl/usr/lib{{/|\\\\}}crti.o"
|
||||
|
|
Loading…
Reference in New Issue