Files
swift-mirror/test/AutolinkExtract/empty_archive.swift
Han Sangjin 0747503b0f [Autolink] Autolinking on COFF for Cygwin/MinGW
Cygwin and MinGW should use the autolink feature in the sameway of Linux
due to the linker's limit. Now swift-autolink-extract recognizes the
COFF format file for Cygwin/MinGW.
2016-08-07 07:20:50 +09:00

10 lines
280 B
Swift

// RUN: %target-swiftc_driver -c %s -o %t
// RUN: rm -f %t.a
// RUN: llvm-ar cr %t.a %t
// RUN: %target-swift-autolink-extract %t.a -o - | FileCheck --check-prefix CHECK-%target-object-format %s
// REQUIRES: autolink-extract
// CHECK-elf: -lswiftCore
// CHECK-coff: -lswiftCore