Skip to content

Commit 6ae30ed

Browse files
Fix invalid substitution in IRGen/static-library.swift (#79607)
%swiftc_driver_plain is initialized from the plain swiftc path in config.swiftc, while %swiftc_driver gets extras like SDKROOT, stdlib-rpath and custom options. There is no plain pendant for the 'target-' prefixed version, but the regular one seems fine.
1 parent 5ba008a commit 6ae30ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/IRGen/static-library.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-swiftc_driver_plain -DLIBRARY -module-name Library -emit-library -static -autolink-force-load -module-link-name Library %s -o %t/library.lib -emit-module-path %t
3-
// RUN: %target-swiftc_driver_plain -DLIBRARY -module-name Library -emit-library -static -autolink-force-load -module-link-name Library %s -S -emit-ir -o - | %FileCheck -check-prefix CHECK-LIBRARY %s
4-
// RUN: %target-swiftc_driver_plain -I %t -emit-library -S -emit-ir -o - %s | %FileCheck -check-prefix CHECK-EMBEDDING %s
2+
// RUN: %target-swiftc_driver -DLIBRARY -module-name Library -emit-library -static -autolink-force-load -module-link-name Library %s -o %t/library.lib -emit-module-path %t
3+
// RUN: %target-swiftc_driver -DLIBRARY -module-name Library -emit-library -static -autolink-force-load -module-link-name Library %s -S -emit-ir -o - | %FileCheck -check-prefix CHECK-LIBRARY %s
4+
// RUN: %target-swiftc_driver -I %t -emit-library -S -emit-ir -o - %s | %FileCheck -check-prefix CHECK-EMBEDDING %s
55

66
// REQUIRES: OS=windows-msvc
77

0 commit comments

Comments
 (0)