[clang] af845d7 - [Clang] Fix DriverKit tests on Linux
Egor Zhdan via cfe-commits
cfe-commits at lists.llvm.org
Fri May 13 14:10:19 PDT 2022
Author: Egor Zhdan
Date: 2022-05-13T22:10:13+01:00
New Revision: af845d7e437a0380f65db841f2917f3c1a95ecf5
URL: https://github.com/llvm/llvm-project/commit/af845d7e437a0380f65db841f2917f3c1a95ecf5
DIFF: https://github.com/llvm/llvm-project/commit/af845d7e437a0380f65db841f2917f3c1a95ecf5.diff
LOG: [Clang] Fix DriverKit tests on Linux
Some new DriverKit tests were added in https://reviews.llvm.org/D121911, and unfortunately they fail on Linux build bots.
Added:
Modified:
clang/test/Driver/darwin-ld-platform-version-driverkit.c
clang/test/Driver/darwin-ld.c
Removed:
################################################################################
diff --git a/clang/test/Driver/darwin-ld-platform-version-driverkit.c b/clang/test/Driver/darwin-ld-platform-version-driverkit.c
index f4fadc45079e..539d4c4f2557 100644
--- a/clang/test/Driver/darwin-ld-platform-version-driverkit.c
+++ b/clang/test/Driver/darwin-ld-platform-version-driverkit.c
@@ -6,11 +6,11 @@
// RUN: %clang -target x86_64-apple-driverkit19 -isysroot %t.sdk -mlinker-version=520 -### %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=MISSING-SDK-JSON-WORKAROUND %s
-// RUN: %clang -target arm64-apple-driverkit19 -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=520 -### %t.o 2>&1 \
+// RUN: %clang -target arm64-apple-driverkit19 -isysroot %S/Inputs/MacOSX10.14.sdk -fuse-ld= -mlinker-version=520 -### %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=ARM64_NEW %s
-// RUN: %clang -target arm64-apple-driverkit19 -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 -### %t.o 2>&1 \
+// RUN: %clang -target arm64-apple-driverkit19 -isysroot %S/Inputs/MacOSX10.14.sdk -fuse-ld= -mlinker-version=400 -### %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=ARM64_OLD %s
-// RUN: %clang -target arm64e-apple-driverkit19 -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=520 -### %t.o 2>&1 \
+// RUN: %clang -target arm64e-apple-driverkit19 -isysroot %S/Inputs/MacOSX10.14.sdk -fuse-ld= -mlinker-version=520 -### %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=ARM64_NEW %s
// CHECK: "-platform_version" "driverkit" "10.15.0" "10.14"
diff --git a/clang/test/Driver/darwin-ld.c b/clang/test/Driver/darwin-ld.c
index 73840d1b56b6..3a836d4dd1f1 100644
--- a/clang/test/Driver/darwin-ld.c
+++ b/clang/test/Driver/darwin-ld.c
@@ -185,7 +185,7 @@
// LINK_TVOS_KEXT: libclang_rt.cc_kext_tvos.a
// LINK_TVOS_KEXT: libclang_rt.tvos.a
-// RUN: %clang -target x86-64-apple-driverkit19.0 -mlinker-version=400 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log
+// RUN: %clang -target x86-64-apple-driverkit19.0 -fuse-ld= -mlinker-version=400 -resource-dir=%S/Inputs/resource_dir -### %t.o 2> %t.log
// RUN: FileCheck -check-prefix=LINK_DRIVERKIT %s < %t.log
// LINK_DRIVERKIT: {{ld(.exe)?"}}
// LINK_DRIVERKIT: -driverkit_version_min
More information about the cfe-commits
mailing list