mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -4,3 +4,4 @@
|
||||
// REQUIRES: autolink-extract
|
||||
|
||||
// CHECK-elf: -lswiftCore
|
||||
// CHECK-coff: -lswiftCore
|
||||
|
||||
@@ -6,3 +6,4 @@
|
||||
// REQUIRES: autolink-extract
|
||||
|
||||
// CHECK-elf: -lswiftCore
|
||||
// CHECK-coff: -lswiftCore
|
||||
|
||||
@@ -9,4 +9,7 @@
|
||||
// CHECK-elf-DAG: -lswiftCore
|
||||
// CHECK-elf-DAG: -lempty
|
||||
|
||||
// CHECK-coff-DAG: -lswiftCore
|
||||
// CHECK-coff-DAG: -lempty
|
||||
|
||||
import empty
|
||||
|
||||
@@ -10,4 +10,7 @@
|
||||
// CHECK-elf-DAG: -lswiftCore
|
||||
// CHECK-elf-DAG: -lempty
|
||||
|
||||
// CHECK-coff-DAG: -lswiftCore
|
||||
// CHECK-coff-DAG: -lempty
|
||||
|
||||
import empty
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user