mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Autolink Extract] Keep a set of linker flags instead of vector
Otherwise we can duplicate linker flags across input binaries, which can result in very large linkerr invocation commands. Resolves https://github.com/apple/swift/issues/58380
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swiftc_driver -emit-module -emit-module-path %t/empty.swiftmodule -module-name empty -module-link-name empty %S/empty.swift
|
||||
// RUN: %target-swiftc_driver -c %s -I %t -o %t/import_experimental.o
|
||||
// RUN: %target-swift-autolink-extract %t/import_experimental.o -o - | %FileCheck --check-prefix CHECK-%target-object-format %s
|
||||
// RUN: %target-swiftc_driver -c %s -I %t -o %t/import_experimental_again.o
|
||||
// RUN: %target-swift-autolink-extract %t/import_experimental.o %t/import_experimental_again.o -o - | %FileCheck --check-prefix CHECK-%target-object-format %s
|
||||
|
||||
// RUN: %target-swift-autolink-extract %t/import_experimental.o %t/import_experimental_again.o -o - | %FileCheck --check-prefix UNIQUE %s
|
||||
|
||||
// REQUIRES: autolink-extract
|
||||
|
||||
// UNIQUE-COUNT-1: -lempty
|
||||
// UNIQUE-COUNT-1: -lswiftCore
|
||||
|
||||
// CHECK-elf-DAG: -lswiftCore
|
||||
// CHECK-elf-DAG: -lempty
|
||||
|
||||
|
||||
Reference in New Issue
Block a user