Skip to content

[TBDGen] Remove TBD options from FrontendOptions #18736

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
merged 2 commits into from
Aug 16, 2018

Conversation

harlanhaskins
Copy link
Contributor

@harlanhaskins harlanhaskins commented Aug 15, 2018

This patch removes the duplication between FrontendOptions and
TBDGenOptions by parsing the TBDGenOptions up front similarly to IRGen
and SIL options.

};

/// Compare the symbols in the IR against the TBD file we would generate.
TBDValidationMode ValidateTBDAgainstIR = TBDValidationMode::Default;
Copy link
Contributor

Choose a reason for hiding this comment

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

This one, actually, still seems like a Frontend option to me. After all, it requires both TBDGen and IRGen to run. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, yeah that's a good point. I suppose I should return that to FrontendOptions and actually add a diagnostic preventing you from passing that flag if IR isn't being generated.

Opts.InstallName = A->getValue();
}
if (Opts.InstallName.empty()) {
Opts.InstallName = ("lib" + Invocation.getModuleName() + ".dylib").str();
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this was already there, but honestly it doesn't seem like there's a reasonable default here at all. Empty might actually be better for platforms that don't use install names.

Harlan Haskins added 2 commits August 15, 2018 14:53
This patch removes the duplication between FrontendOptions and
TBDGenOptions by parsing the TBDGenOptions up front similarly to IRGen
and SIL options.
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins
Copy link
Contributor Author

LLDB build failure seems unrelated.

@swift-ci please smoke test

@harlanhaskins harlanhaskins merged commit c8f8afd into swiftlang:master Aug 16, 2018
@harlanhaskins harlanhaskins deleted the magic-eraser branch August 16, 2018 02:01
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.

2 participants