Skip to content

Fix swift-symbolgraph-extract search paths #7621

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 4 commits into from
Jun 4, 2024

Conversation

rauhul
Copy link
Member

@rauhul rauhul commented Jun 1, 2024

Fixes an architecture and implementation bug where the include paths
for swift-symbolgraph-extract were being determined inside build plan
instead of by the target build description. This bug resulted in the
wrong set of paths being determined.

The new code moves the path determination logic into the proper target
build descriptions and releverages the already computed include paths.
The result of this is symbol graphs can be generated for Swift and C
targets properly now without duplicate module in the search paths and
with correct -fmodule usage.

@rauhul
Copy link
Member Author

rauhul commented Jun 1, 2024

builds on top of #7610

@rauhul rauhul force-pushed the swift-symbolgraph-extract-includes branch from 0cff9be to 359265e Compare June 3, 2024 17:59
Fixes and architecture and implementation bug where the include paths
for swift symbolgraph extract were being determined inside build plan
instead of by the target build description. This bug resulted in the
wrong set of paths being determined.

The new code moves the path determination logic into the proper target
build descriptions and releverages the already computed include paths.
The result of this is symbol graphs can be generated for Swift and C
targets properly now without duplicate module in the search paths and
with correct `-fmodule` usage.
@rauhul rauhul force-pushed the swift-symbolgraph-extract-includes branch from 359265e to 4f06914 Compare June 3, 2024 18:03
@rauhul
Copy link
Member Author

rauhul commented Jun 3, 2024

@swift-ci test

@rauhul
Copy link
Member Author

rauhul commented Jun 3, 2024

@swift-ci test windows

@rauhul
Copy link
Member Author

rauhul commented Jun 3, 2024

@swift-ci test

@rauhul rauhul added bug build system Changes to interactions with build systems labels Jun 3, 2024
@rauhul
Copy link
Member Author

rauhul commented Jun 4, 2024

@swift-ci test windows

@MaxDesiatov MaxDesiatov changed the title Fix swift-symbolgraph-extract search paths Fix swift-symbolgraph-extract search paths Jun 4, 2024
@rauhul rauhul merged commit b73aaa4 into main Jun 4, 2024
5 checks passed
@rauhul rauhul deleted the swift-symbolgraph-extract-includes branch June 4, 2024 15:56
rauhul added a commit that referenced this pull request Jun 12, 2024
Fixes an architecture and implementation bug where the include paths
for `swift-symbolgraph-extract` were being determined inside build plan
instead of by the target build description. This bug resulted in the
wrong set of paths being determined.

The new code moves the path determination logic into the proper target
build descriptions and releverages the already computed include paths.
The result of this is symbol graphs can be generated for Swift and C
targets properly now without duplicate module in the search paths and
with correct `-fmodule` usage.
rauhul added a commit that referenced this pull request Jun 13, 2024
Fixes an architecture and implementation bug where the include paths
for `swift-symbolgraph-extract` were being determined inside build plan
instead of by the target build description. This bug resulted in the
wrong set of paths being determined.

The new code moves the path determination logic into the proper target
build descriptions and releverages the already computed include paths.
The result of this is symbol graphs can be generated for Swift and C
targets properly now without duplicate module in the search paths and
with correct `-fmodule` usage.
rauhul added a commit that referenced this pull request Jun 13, 2024
Fixes an architecture and implementation bug where the include paths
for `swift-api-digester` were being determined inside build plan instead
of by the target build description.

This is effectively the same change as #7621 but for api-digester rather
than symbolgraph-extract.

This commit also leaves hooks in to enable api-digester on clang modules
as a future improvement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build system Changes to interactions with build systems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants