2015-11-14 03:46:02 +08:00
|
|
|
// RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s 2>&1 | FileCheck -check-prefix=CHECK_LD_32 %s
|
2015-12-17 03:09:51 +08:00
|
|
|
// CHECK_LD_32: ld{{(.exe)?}}"
|
2015-11-14 03:46:02 +08:00
|
|
|
// CHECK_LD_32: "i386pe"
|
2015-11-22 13:45:03 +08:00
|
|
|
// CHECK_LD_32-NOT: "-flavor" "gnu"
|
2015-11-14 03:46:02 +08:00
|
|
|
|
|
|
|
// 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
|
2015-11-21 04:49:39 +08:00
|
|
|
// CHECK_LLD_32-NOT: invalid linker name in argument
|
2015-12-17 03:09:51 +08:00
|
|
|
// CHECK_LLD_32: lld{{(.exe)?}}" "-flavor" "gnu"
|
2015-11-14 03:46:02 +08:00
|
|
|
// 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
|
2015-11-21 04:49:39 +08:00
|
|
|
// CHECK_LLD_64-NOT: invalid linker name in argument
|
2015-12-17 03:09:51 +08:00
|
|
|
// CHECK_LLD_64: lld{{(.exe)?}}" "-flavor" "gnu"
|
2015-11-14 03:46:02 +08:00
|
|
|
// 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
|
2015-11-21 04:49:39 +08:00
|
|
|
// CHECK_LLD_ARM-NOT: invalid linker name in argument
|
2015-12-17 03:09:51 +08:00
|
|
|
// CHECK_LLD_ARM: lld{{(.exe)?}}" "-flavor" "gnu"
|
2015-11-14 03:46:02 +08:00
|
|
|
// CHECK_LLD_ARM: "thumb2pe"
|