Skip to content

Commit 3a8eea4

Browse files
authored
Merge pull request #30907 from compnerd/autodiff-fix
test: repair the AutoDiff test on Windows
2 parents c1ab69e + de9aa59 commit 3a8eea4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/AutoDiff/IRGen/loadable_by_address_cross_module.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Compile the module.
1010

1111
// RUN: %empty-directory(%t)
12-
// RUN: %target-build-swift -working-directory %t -parse-as-library -emit-module -module-name external -emit-module-path %t/external.swiftmodule -emit-library -static %S/Inputs/loadable_by_address_cross_module.swift
12+
// RUN: %target-build-swift-dylib(%t/%target-library-name(external)) %S/Inputs/loadable_by_address_cross_module.swift -emit-module -emit-module-path %t/external.swiftmodule -module-name external
1313

1414
// Next, check that differentiability_witness_functions in the client get
1515
// correctly modified by LBA.
@@ -26,8 +26,10 @@
2626

2727
// Finally, execute the test.
2828

29-
// RUN: %target-build-swift -I%t -L%t %s -o %t/a.out -lm -lexternal
30-
// RUN: %target-run %t/a.out
29+
// RUN: %target-build-swift -I%t -L%t %s -o %t/a.out %target-rpath(%t) -L%t -lexternal
30+
// RUN: %target-codesign %t/a.out
31+
// RUN: %target-codesign %t/%target-library-name(external)
32+
// RUN: %target-run %t/a.out %t/%target-library-name(external)
3133

3234
// REQUIRES: executable_test
3335

0 commit comments

Comments
 (0)