Skip to content

Commit 1d3b682

Browse files
committed
[interop][SwiftToC++] fix execution tests to hopefully link correctly on windows
1 parent fcdcb2a commit 1d3b682

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Interop/SwiftToCxx/functions/cdecl-execution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %target-swift-frontend %S/cdecl.swift -typecheck -module-name CdeclFunctions -emit-cxx-header-path %t/functions.h
44

55
// RUN: %target-clangxx -c %s -I %t -o %t/cdecl-execution.o
6-
// RUN: %target-build-swift %S/cdecl.swift -o %t/cdecl-execution %t/cdecl-execution.o -module-name Functions -Xfrontend -entry-point-function-name -Xfrontend swiftMain -Xfrontend -enable-cxx-interop
6+
// RUN: %target-build-swift %S/cdecl.swift -o %t/cdecl-execution -Xlinker %t/cdecl-execution.o -module-name Functions -Xfrontend -entry-point-function-name -Xfrontend swiftMain -Xfrontend -enable-cxx-interop
77

88
// RUN: %target-codesign %t/cdecl-execution
99
// RUN: %target-run %t/cdecl-execution

test/Interop/SwiftToCxx/functions/swift-functions-execution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %target-swift-frontend %S/swift-functions.swift -typecheck -module-name Functions -emit-cxx-header-path %t/functions.h
44

55
// RUN: %target-clangxx -c %s -I %t -o %t/swift-functions-execution.o
6-
// RUN: %target-build-swift %S/swift-functions.swift -o %t/swift-functions-execution %t/swift-functions-execution.o -module-name Functions -Xfrontend -entry-point-function-name -Xfrontend swiftMain -Xfrontend -enable-cxx-interop
6+
// RUN: %target-build-swift %S/swift-functions.swift -o %t/swift-functions-execution -Xlinker %t/swift-functions-execution.o -module-name Functions -Xfrontend -entry-point-function-name -Xfrontend swiftMain -Xfrontend -enable-cxx-interop
77

88
// RUN: %target-codesign %t/swift-functions-execution
99
// RUN: %target-run %t/swift-functions-execution | %FileCheck %s

0 commit comments

Comments
 (0)