[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.
This commit is contained in:
Han Sangjin
2016-08-06 21:45:25 +09:00
parent 2ef0a8fdcb
commit 0747503b0f
9 changed files with 66 additions and 29 deletions

View File

@@ -4,3 +4,4 @@
// REQUIRES: autolink-extract
// CHECK-elf: -lswiftCore
// CHECK-coff: -lswiftCore

View File

@@ -6,3 +6,4 @@
// REQUIRES: autolink-extract
// CHECK-elf: -lswiftCore
// CHECK-coff: -lswiftCore

View File

@@ -9,4 +9,7 @@
// CHECK-elf-DAG: -lswiftCore
// CHECK-elf-DAG: -lempty
// CHECK-coff-DAG: -lswiftCore
// CHECK-coff-DAG: -lempty
import empty

View File

@@ -10,4 +10,7 @@
// CHECK-elf-DAG: -lswiftCore
// CHECK-elf-DAG: -lempty
// CHECK-coff-DAG: -lswiftCore
// CHECK-coff-DAG: -lempty
import empty

View File

@@ -1,4 +1,6 @@
; RUN: llc -mtriple armv7--linux-gnueabihf -filetype obj -o - %s | %target-swift-autolink-extract -o - - | FileCheck %s
; RUN: llc -mtriple x86_64--windows-gnu -filetype obj -o - %s | %target-swift-autolink-extract -o - - | FileCheck %s
; RUN: llc -mtriple x86_64--windows-cygnus -filetype obj -o - %s | %target-swift-autolink-extract -o - - | FileCheck %s
; REQUIRES: autolink-extract
; Ensure that the options in the object file preserve ordering. The linker