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

[NFC] Add -enable-import-ptrauth-field-function-pointers as a no-op #74703

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

meg-gupta
Copy link
Contributor

rdar:https://129305855

@meg-gupta meg-gupta requested a review from tshortli as a code owner June 25, 2024 20:52
@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test

@meg-gupta meg-gupta enabled auto-merge June 25, 2024 20:52
Copy link
Contributor

@porglezomp porglezomp left a comment

Choose a reason for hiding this comment

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

I was the one who requested this because I was concerned about the migration path for people using this flag, since:

  • Swift 6.0 requires the flag to enable the feature, since it wasn't default-on there
  • Without this change, the flag would be immediately removed without it being default-on, so there was no compatible option across compilers

This looks good to me, but just commenting rather than approving because I don't feel qualified to review from the compiler-side PoV.

Comment on lines 1261 to 1263
def enable_import_ptrauth_field_function_pointers :
Flag<["-"], "enable-import-ptrauth-field-function-pointers">,
HelpText<"Enable import of custom ptrauth qualified field function pointers">;
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is defaulting on—do we want this hidden? (Or: I guess this is already in --help-hidden?)
Do we want the help message to mention it's default-on?

Copy link
Contributor Author

@meg-gupta meg-gupta Jun 25, 2024

Choose a reason for hiding this comment

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

Turns out it is in --help-hidden already. I can update the help message. Thanks

@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test

@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test

@meg-gupta meg-gupta merged commit 5815424 into swiftlang:main Jun 26, 2024
3 checks passed
@meg-gupta meg-gupta deleted the bringbackflag branch June 26, 2024 22:17
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

2 participants