mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Default system linkers on non-Darwin platforms do not support the `-framework` argument for framework linking. This change updates autolinking to not emit `-framework` into the .o _swift1_autolink_entries metadata when there is no native linker support. This is related to rdar://106578342.
12 lines
361 B
Swift
12 lines
361 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swiftc_driver -c %s -F %S/Inputs/Frameworks -o %t/import_framework.o
|
|
// RUN: %target-swift-autolink-extract %t/import_framework.o -o - | %FileCheck --check-prefix CHECK-%target-object-format %s
|
|
|
|
// REQUIRES: autolink-extract
|
|
|
|
// CHECK-elf-NOT: Link
|
|
// CHECK-coff-NOT: Link
|
|
|
|
import Link
|
|
_ = Link.APIFromLinkFramework
|