Skip to content

Commit ebcf2f7

Browse files
committed
[interop] fixup the interop build test substitutions
1 parent 07a1f56 commit ebcf2f7

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// RUN: %target-swift-frontend %S/cdecl.swift -typecheck -module-name CdeclFunctions -emit-cxx-header-path %t/functions.h
44

5-
// RUN: %target-interop-clangxx -c %s -I %t -o %t/cdecl-execution.o
6-
// RUN: %target-build-swift-link-cxx %S/cdecl.swift -o %t/cdecl-execution -Xlinker %t/cdecl-execution.o -module-name Functions -Xfrontend -entry-point-function-name -Xfrontend swiftMain
5+
// RUN: %target-interop-build-clangxx -c %s -I %t -o %t/cdecl-execution.o
6+
// RUN: %target-interop-build-swift %S/cdecl.swift -o %t/cdecl-execution -Xlinker %t/cdecl-execution.o -module-name Functions -Xfrontend -entry-point-function-name -Xfrontend swiftMain
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// RUN: %target-swift-frontend %S/swift-functions.swift -typecheck -module-name Functions -emit-cxx-header-path %t/functions.h
44

5-
// RUN: %target-interop-clangxx -c %s -I %t -o %t/swift-functions-execution.o
6-
// RUN: %target-build-swift-link-cxx %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
5+
// RUN: %target-interop-build-clangxx -c %s -I %t -o %t/swift-functions-execution.o
6+
// RUN: %target-interop-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
77

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

test/Interop/lit.local.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ else:
1717
# FIXME(compnerd) do all the targets we currently support use SysV ABI?
1818
config.substitutions.insert(0, ('%target-abi', 'SYSV'))
1919

20-
config.substitutions.insert(0, ('%target-build-swift-link-cxx', '%target-build-swift -Xfrontend -enable-cxx-interop ' + libc_opt))
21-
22-
config.substitutions.insert(0, ('%target-interop-clangxx', '%target-clangxx ' + clang_opt))
20+
config.substitutions.insert(0, ('%target-interop-build-swift', '%target-build-swift -Xfrontend -enable-cxx-interop ' + libc_opt))
21+
config.substitutions.insert(0, ('%target-interop-build-clangxx', '%target-clangxx ' + clang_opt))

0 commit comments

Comments
 (0)