forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swift-autolink-extract should look inside .a files.
Previously it just gave up when it saw anything other than an ELF .o file. We could have it ignore .a files, but we might as well do the right thing. <rdar://problem/23045632>
- Loading branch information
Showing
3 changed files
with
85 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// RUN: %target-swiftc_driver -c %s -o %t | ||
// RUN: rm -f %t.a | ||
// RUN: ar cr %t.a %t | ||
// RUN: %target-swift-autolink-extract %t.a -o - | FileCheck --check-prefix CHECK-%target-object-format %s | ||
|
||
// REQUIRES: autolink-extract | ||
|
||
// CHECK-elf: -lswiftCore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// RUN: rm -rf %t | ||
// RUN: mkdir -p %t | ||
// RUN: %target-swiftc_driver -emit-library -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: ar cr %t/import_experimental.a %t/import_experimental.o | ||
// RUN: %target-swift-autolink-extract %t/import_experimental.a -o - | FileCheck --check-prefix CHECK-%target-object-format %s | ||
|
||
// REQUIRES: autolink-extract | ||
|
||
// CHECK-elf-DAG: -lswiftCore | ||
// CHECK-elf-DAG: -lempty | ||
|
||
import empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters