mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When compiling against a platform different than the host, like it happens when testing against Android stdlib from a Linux host, one needs to use %target-swiftc_driver to setup the tools directory correctly and the target options, otherwise errors will happen when trying to link a host targetted file against the destination platform libraries.
11 lines
480 B
Swift
11 lines
480 B
Swift
// RUN: %target-swiftc_driver -incremental -autolink-force-load %s 2>&1 | %FileCheck -check-prefix=AUTOLINK_FORCE_LOAD %s
|
|
// RUN: %target-swiftc_driver -autolink-force-load -incremental %s 2>&1 | %FileCheck -check-prefix=AUTOLINK_FORCE_LOAD %s
|
|
|
|
// MACHO targets do not support COMDAT
|
|
// UNSUPPORTED: OS=macosx
|
|
// UNSUPPORTED: OS=tvos
|
|
// UNSUPPORTED: OS=watchos
|
|
// UNSUPPORTED: OS=ios
|
|
|
|
// AUTOLINK_FORCE_LOAD-NOT: error: '-autolink-force-load' is not supported with '-incremental'
|