Files
swift-mirror/test/Driver/autolink-force-load-comdat.swift
Daniel Rodríguez Troitiño 2b0039d568 [android] Switch %swiftc_driver for %target-swiftc_driver
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.
2020-06-19 13:43:32 -07:00

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'