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

[SR-67] support gold as linker to build swift compiler on linux #42689

Closed
swift-ci opened this issue Dec 5, 2015 · 2 comments
Closed

[SR-67] support gold as linker to build swift compiler on linux #42689

swift-ci opened this issue Dec 5, 2015 · 2 comments
Labels
compiler The Swift compiler in itself improvement

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Dec 5, 2015

Previous ID SR-67
Radar None
Original Reporter ganadist (JIRA User)
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement
Assignee ganadist (JIRA)
Priority Medium

md5: 643882fdd62b6ee0f284280ae9954f43

Issue Description:

I'm trying to compile swift on my archlinux box.
And I found that link step of swift compiler binary for debug build need lots of time.

In my case, ld command was running over 3 hours, but it could not complete link. and I could see ld consumed all system memories,

But after switched to gold, link step was completed in 3-4 minutes.

I'm using..
ArchLinux
binutils 2.25.1 (gold 1.11)
System Memory : 16Gb
Swap Memory : 16Gb

@ddunbar
Copy link
Member

ddunbar commented Dec 5, 2015

This already exists, you can use `../utils/build-script .. – --use-gold-linker`.

@swift-ci
Copy link
Collaborator Author

Comment by Ron Pinz (JIRA)

Another method while utilizing presets is by adding use-gold-linker=1 to the relevant preset in swift/utils/build-presets.ini.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself improvement
Projects
None yet
Development

No branches or pull requests

2 participants