Skip to content

Native autolinking on COFF #2897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 5, 2016
Merged

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Jun 5, 2016

What's in this pull request?

Resolved bug number: (SR-)


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

compnerd added 2 commits June 4, 2016 15:04
Rather than adding a default case, add the missing case and rely on covered
switches providing indications of future additions.  NFC.
COFF supports the `.drectve` section for embedding linker directives.  LLVM has
long supported emitting this section.  With this move, ELF shall become the only
target needing the autolink-extract functionality.
@@ -0,0 +1,17 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %swift -target thumbv7--windows-gnu -parse-as-library -parse-stdlib -emit-module-path %t/module.swiftmodule -module-name module -module-link-name module %s
Copy link
Contributor

@gribozavr gribozavr Jun 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you instead do what the ELF test does?

// RUN: %swift -target x86_64-unknown-linux-gnu -emit-module -parse-stdlib -o %t -module-name Empty -module-link-name swiftEmpty %S/../Inputs/empty.swift

I just want to keep tests consistent.

@gribozavr
Copy link
Contributor

Do you also need to disable the autolink extraction action in the driver?

@gribozavr
Copy link
Contributor

@swift-ci Please test

@gribozavr gribozavr merged commit 1d666d1 into swiftlang:master Jun 5, 2016
@compnerd compnerd deleted the autolink-coff branch July 3, 2016 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants