Skip to content

Build system improvements for lto #2941

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jun 7, 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.

@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 7, 2016

@swift-ci Please python lint

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from bc7ed47 to d8ee835 Compare June 7, 2016 23:31
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 7, 2016

@swift-ci Please python lint

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from d8ee835 to ef1bbb4 Compare June 7, 2016 23:35
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 7, 2016

@swift-ci Please python lint

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from ef1bbb4 to 8912124 Compare June 7, 2016 23:39
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 7, 2016

@swift-ci Please python lint

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from 8912124 to f8a94d4 Compare June 7, 2016 23:47
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 7, 2016

@swift-ci Please python lint

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from f8a94d4 to 05ef6b3 Compare June 8, 2016 00:11
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please python lint

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from 05ef6b3 to 05a8744 Compare June 8, 2016 00:12
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please python lint

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch 2 times, most recently from 15a734e to c7a34c1 Compare June 8, 2016 00:23
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please python lint

@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please smoke test

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from c7a34c1 to 02c8623 Compare June 8, 2016 00:29
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please python lint

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from 02c8623 to 59f0eff Compare June 8, 2016 01:11
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci please python lint

@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please smoke test linux

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from 59f0eff to a31c11f Compare June 8, 2016 01:38
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please smoke test linux

@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from a31c11f to 8e9d458 Compare June 8, 2016 01:45
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please smoke test linux

gottesmm added 3 commits June 7, 2016 19:03
…s the triggering of ltoing llvm/swift tools.

Also change the relevant build-presets to use this flag instead of touching
build-script-impl directly.

rdar://24717107
…M_PARALLEL_LINK_JOBS to swift as well as llvm.

The reason to do this is the same reason that we already pass in
-DLLVM_ENABLE_LTO=YES to swift, to ensure that parts of our codebase that use
the llvm build machinery (e.g. the unittests) do not use too many linker jobs
given the memory constraints of a given machine.

rdar://24717107
This makes it clear to the user that they are enabling lto only for swift tools,
not for the swift standard library/runtime.

rdar://24717107
@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from 8e9d458 to 4aaea93 Compare June 8, 2016 02:03
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please python lint

@gottesmm gottesmm changed the title [in progress] Build system improvements for lto Build system improvements for lto Jun 8, 2016
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

@swift-ci Please smoke test and merge

…m build-script-impl into build support.

rdar://24717107
@gottesmm gottesmm force-pushed the build-system-improvements-for-lto branch from 4aaea93 to 2e7d88e Compare June 8, 2016 02:59
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 8, 2016

I fixed the smoke test failure issue on a linux machine. I feel ok merging this.

@gottesmm gottesmm merged commit 072af72 into swiftlang:master Jun 8, 2016
@gottesmm gottesmm deleted the build-system-improvements-for-lto branch June 8, 2016 03:00
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.

1 participant