-
Notifications
You must be signed in to change notification settings - Fork 199
[Linux] Add build-id support. #1641
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
Conversation
@swift-ci Please test |
Sources/SwiftOptions/Options.swift
Outdated
@@ -58,6 +58,8 @@ extension Option { | |||
public static let bridgingHeaderDirectoryForPrint: Option = Option("-bridging-header-directory-for-print", .separate, attributes: [.helpHidden, .frontend, .noDriver], metaVar: "<path>", helpText: "Directory for bridging header to be printed in compatibility header") | |||
public static let bridgingHeaderPchKey: Option = Option("-bridging-header-pch-key", .separate, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Cache Key for bridging header pch") | |||
public static let bsdk: Option = Option("-bsdk", .joinedOrSeparate, attributes: [.noDriver, .argumentIsPath], helpText: "path to the baseline SDK to import frameworks") | |||
public static let buildIdEQ: Option = Option("-build-id=", .joined, alias: Option.buildId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The usual reminder that these Options.swift
are to be generated as follows:
https://github.com/swiftlang/swift-driver?tab=readme-ov-file#rebuilding-optionsswift
In case they were not, for this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, interesting. They were not. I will investigate that — thank you.
Add a `-build-id` option to the driver to let users control the build ID setting used by the linker. Pass `--build-id` to the linker by default, so that build IDs are enabled by default but using the linker's default type; if someone wishes to specify a particular option, they can do so using the new driver option. Also turn on build IDs when *building* the driver. rdar://116798309
Options.swift needs to be generated from the one in the Swift repo, not edited by hand. Based on the Options.td from swiftlang/swift#75435. rdar://116798309
955dd5a
to
87d48ea
Compare
@artemcm Hmmm. Looks like I'm not the only one that's edited |
@swift-ci Please test |
Add a
-build-id
option to the driver to let users control the build ID setting used by the linker. Pass--build-id
to the linker by default, so that build IDs are enabled by default but using the linker's default type; if someone wishes to specify a particular option, they can do so using the new driver option.Also turn on build IDs when building the driver.
rdar://116798309