Files
swift-mirror/test/AutolinkExtract/import_framework.swift
Juergen Ributzka 17c5010d0b [swift][AutoLinkExtract] Don't add autolink hint for frameworks. (#65051)
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.
2023-04-14 09:15:05 -07:00

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