Skip to content
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

Require gold on linux and freebsd by default. #1535

Merged

Conversation

gottesmm
Copy link
Member

This commit just changes the default to require gold. The user can still override from the command line if they choose to.

The reason why I am making this change is to match Swift's behavior here. There
really isn't any good reason to have separate linkers compiling separate parts
of the same build.

rdar://39456714

@gottesmm
Copy link
Member Author

@swift-ci test

@alblue
Copy link
Contributor

alblue commented Apr 25, 2018

@swift-ci please test

@gottesmm
Copy link
Member Author

@swift-ci test

@millenomi
Copy link
Contributor

@swift-ci please test and merge

@gottesmm
Copy link
Member Author

13:56:18 /home/buildnode/jenkins/workspace/swift-corelibs-foundation-PR-Linux/Ninja-ReleaseAssert/swiftpm-linux-x86_64/x86_64-unknown-linux/release/swift-test: error while loading shared libraries: libswiftSwiftOnoneSupport.so: cannot open shared object file: No such file or directory
13:56:18

@gottesmm
Copy link
Member Author

@swift-ci test

@gottesmm
Copy link
Member Author

@shahmishal Do you know whats going on with this? We are failing in swiftpm due to Ononesupport not being there.

@spevans
Copy link
Collaborator

spevans commented Apr 25, 2018

@gottesmm It may be related to this PR #1495 which added an rpath into libFoundation.so so it could find libswiftSwiftOnone. I wonder if the rpath isn't being added in by gold.

@gottesmm
Copy link
Member Author

@spevans No the problem here is that #1495 was not cherry-picked to 4.1.

spevans and others added 2 commits April 25, 2018 14:39
- If building in debug mode, add an RPATH to the build lib dir of
  swift so that libFoundation.so can find libswiftSwiftOnone.so,
  required when using -Onone.

(cherry picked from commit 2ba2086)
This commit just changes the default to require gold. The user can still override from the command line if they choose to.

The reason why I am making this change is to match Swift's behavior here. There
really isn't any good reason to have separate linkers compiling separate parts
of the same build.

rdar://39456714
@gottesmm gottesmm force-pushed the swift-4.1-branch_rdar39456714 branch from b765713 to e6e35e1 Compare April 25, 2018 21:40
@gottesmm
Copy link
Member Author

@swift-ci test

1 similar comment
@gottesmm
Copy link
Member Author

@swift-ci test

@millenomi
Copy link
Contributor

@swift-ci please test

@gottesmm gottesmm merged commit eb7b5b5 into apple:swift-4.1-branch Apr 26, 2018
@gottesmm gottesmm deleted the swift-4.1-branch_rdar39456714 branch April 26, 2018 00:12
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.

None yet

4 participants