Skip to content

Commit f221499

Browse files
committed
test: use llvm tools
Rather than relying on the system to provide ar and nm, use the LLVM equivalent tools instead. Since the build is already dependent on llvm and its tools, this just ensures that the full set is self-contained. NFC.
1 parent 2e7ae3d commit f221499

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/AutolinkExtract/empty_archive.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swiftc_driver -c %s -o %t
22
// RUN: rm -f %t.a
3-
// RUN: ar cr %t.a %t
3+
// RUN: llvm-ar cr %t.a %t
44
// RUN: %target-swift-autolink-extract %t.a -o - | FileCheck --check-prefix CHECK-%target-object-format %s
55

66
// REQUIRES: autolink-extract

test/AutolinkExtract/import_archive.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: mkdir -p %t
33
// RUN: %target-swiftc_driver -emit-library -emit-module -emit-module-path %t/empty.swiftmodule -module-name empty -module-link-name empty %S/empty.swift
44
// RUN: %target-swiftc_driver -c %s -I %t -o %t/import_experimental.o
5-
// RUN: ar cr %t/import_experimental.a %t/import_experimental.o
5+
// RUN: llvm-ar cr %t/import_experimental.a %t/import_experimental.o
66
// RUN: %target-swift-autolink-extract %t/import_experimental.a -o - | FileCheck --check-prefix CHECK-%target-object-format %s
77

88
// REQUIRES: autolink-extract

test/multifile/protocol-conformance-member.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: rm -rf %t && mkdir %t
22
// RUN: %target-build-swift -emit-library %s %S/Inputs/protocol-conformance-member-helper.swift -o %t/libTest.dylib -module-name Test
3-
// RUN: nm %t/libTest.dylib | FileCheck %s
3+
// RUN: llvm-nm %t/libTest.dylib | FileCheck %s
44

55
// CHECK: _TFV4Test10CoolStructg10coolFactorSd
66

0 commit comments

Comments
 (0)