[interop] add target-build-swift-link-cxx option for windows to link correctly

This commit is contained in:
Alex Lorenz
2022-03-10 08:05:52 -08:00
parent 1d3b68208e
commit 846fdb5307
3 changed files with 5 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
// RUN: %target-swift-frontend %S/swift-functions.swift -typecheck -module-name Functions -emit-cxx-header-path %t/functions.h
// RUN: %target-clangxx -c %s -I %t -o %t/swift-functions-execution.o
// 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
// 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
// RUN: %target-codesign %t/swift-functions-execution
// RUN: %target-run %t/swift-functions-execution | %FileCheck %s