Skip to content

Commit 26c61f5

Browse files
committed
AutoDiff: repair the cross-module-differentiation on Windows
Make the cross-module differentiation test work on Windows by converting to a shared library to run the test.
1 parent 0444df6 commit 26c61f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/AutoDiff/validation-test/cross_module_differentiation.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -working-directory %t -parse-as-library -emit-module -module-name cross_module_differentiation_other -emit-module-path %t/cross_module_differentiation_other.swiftmodule -emit-library -static %S/Inputs/cross_module_differentiation_other.swift
3-
// RUN: %target-build-swift -I%t -L%t %s -o %t/a.out -lcross_module_differentiation_other
4-
// RUN: %target-run %t/a.out
2+
// RUN: %target-build-swift-dylib(%t/%target-library-name(cross_module_differentiation_other)) %S/Inputs/cross_module_differentiation_other.swift -emit-module -emit-module-path %t/cross_module_differentiation_other.swiftmodule -module-name cross_module_differentiation_other
3+
// RUN: %target-build-swift -I%t -L%t %s -o %t/a.out -lcross_module_differentiation_other %target-rpath(%t)
4+
// RUN: %target-codesign %t/a.out
5+
// RUN: %target-codesign %t/%target-library-name(cross_module_differentiation_other)
6+
// RUN: %target-run %t/a.out %t/%target-library-name(cross_module_differentiation_other)
57
// REQUIRES: executable_test
68

79
// TF-1025: Test differentiability witness linkage for `PublicNonABI` original functions.

0 commit comments

Comments
 (0)