Skip to content

[Frontend] allow -emit-symbol-graph-dir and -supplementary-output-file-map at the same time #36500

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
Mar 19, 2021

Conversation

QuietMisdreavus
Copy link
Contributor

Resolves rdar://75155133

When the -emit-symbol-graph[-dir] flags were added, they were not completely integrated into the supplementary output file map structure. If a symbol graph is requested, these flags are passed to the frontend regardless of whether other supplementary outputs are collected into a file map. Because the frontend treats -emit-symbol-graph-dir and -supplementary-output-file-map as incompatible, this creates a situation where an error is reported through no fault of the user. This PR removes the check to disallow -emit-symbol-graph-dir, since this information is not being emitted in the file map right now.

A future PR will properly integrate -emit-symbol-graph-dir into the supplementary file map in the swift driver; this is meant as a stopgap for the meantime.

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please smoke test

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please build toolchain macOS platform

@swift-ci
Copy link
Contributor

macOS Toolchain
Download Toolchain
Git Sha - 94b3805

Install command
tar -zxf swift-PR-36500-917-osx.tar.gz --directory ~/

in some situations, enum element decls are being skipped when rendering
declaration fragments. this trips an assertion in the declaration
fragment renderer that ensures that it always renders something. by
always rendering enum elements, we can sidestep this issue.
@QuietMisdreavus
Copy link
Contributor Author

The toolchain hit an error when building symbol graphs in certain situations, so i've updated this PR with a fix to ensure that symbol graphs can still render when using supplementary file maps.

@swift-ci Please smoke test

@QuietMisdreavus
Copy link
Contributor Author

fatal: unable to access 'https://github.com/apple/swift-llbuild.git/': Could not resolve host: github.com

@swift-ci Please smoke test macOS platform

@QuietMisdreavus
Copy link
Contributor Author

Same error. Looks like that node is having issues...

@swift-ci Please smoke test macOS platform

@QuietMisdreavus QuietMisdreavus merged commit 13ab6ec into main Mar 19, 2021
@QuietMisdreavus QuietMisdreavus deleted the QuietMisdreavus/allow-symbol-graphs branch March 19, 2021 20:29
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.

4 participants