summaryrefslogtreecommitdiff
path: root/test cases/swift
AgeCommit message (Collapse)Author
2025-08-02Add swift_interoperability_mode kwargKatalin Rebhan
2025-08-01Condense test directory names for 1.9.Jussi Pakkanen
2025-07-24Add -parse-as-library to Swift library targetsKatalin Rebhan
2025-06-23test cases: Test Swift interoperability with C++Albert Tang
Skip if Swift 5.9 or above is not detected.
2025-06-05swift: Pass C base compile options to swiftcKatalin Rebhan
2025-04-14Condense directory names for 1.8 rc1.Jussi Pakkanen
2025-02-28Fix Swift targets with same module name as source file nameMarco Rebhan
2025-01-29swift: Fix duplicate SDK include paths causing a compile errorPiotr Brzeziński
Some dependencies can bring include paths pointing to older macOS SDK's. In this case, it was libffi pointing to SDK from 12.0. When the Foundation framework is imported in Swift, swiftc attempts to import the FFI module from the most recent version of the SDK, which causes a compilation error because of conflicting definitions between the two SDK versions. SwiftPM also had this problem: https://github.com/swiftlang/swift-package-manager/pull/6772 The solution on our side is a simplified version of what SwiftPM did. Let's naively look for .sdk paths in the compile args of our dependencies and replace them with the most recent one. I included a test which is confirmed to fail without the workaround added in this patch. This was not tested on anything else than macOS, but I don't expect it to make the situation worse in any case.
2023-12-26swift: Support swift_argsSergey Vlasov
Fixes #12533
2021-04-25Xcode: make Swift projects work.Jussi Pakkanen
2017-06-29add project/global args and include_dirs (useful for module maps) to swift ↵Goncalo Carvalho
targets
2016-10-07Swift tests: Don't use label: syntax with older SwiftNirbheek Chauhan
2016-10-03swift tests: Port to Swift 3Nirbheek Chauhan
Should remain compatible with Swift 2.2
2015-12-23Fix imports on osx.Jussi Pakkanen
2015-12-12Added support for calling into C.Jussi Pakkanen
2015-12-11Can generate swift sources with custom target.Jussi Pakkanen
2015-12-11Can build Swift libraries and link them.Jussi Pakkanen
2015-12-10Reworked swift code so now can use multiple source files in one target.Jussi Pakkanen
2015-12-07Can build simple Swift executables.Jussi Pakkanen