Skip to content

[cxx-interop] Hook libcxxshim modulemap/header to sdk-overlay #62475

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 1 commit into from
Dec 9, 2022

Conversation

drodriguez
Copy link
Contributor

The modulemap and header files target was added to ALL, which works when invoking the build thru the build-script, but make some test fail when doing a manual configuration and later doing
check-swift-validation or similar, because the modulemap/header were not copied into the build directory.

Follow a pattern similar to the one in GlibC (which this file seemed to be prepared for, since the libcxxshim_modulemap_target_list variable was already there), create a global target for all the modulemap/headers of each SDK and add that global target as a dependency of sdk-overlay (which is a dependency of check-swift-validation and others).

The modulemap and header files target was added to `ALL`, which works
when invoking the build thru the `build-script`, but make some test fail
when doing a manual configuration and later doing
`check-swift-validation` or similar, because the modulemap/header were
not copied into the build directory.

Follow a pattern similar to the one in GlibC (which this file seemed to
be prepared for, since the `libcxxshim_modulemap_target_list` variable
was already there), create a global target for all the modulemap/headers
of each SDK and add that global target as a dependency of sdk-overlay
(which is a dependency of check-swift-validation and others).
@drodriguez drodriguez added the c++ interop Feature: Interoperability with C++ label Dec 8, 2022
@drodriguez
Copy link
Contributor Author

@swift-ci please test

@drodriguez drodriguez merged commit 0b05a1e into swiftlang:main Dec 9, 2022
@drodriguez drodriguez deleted the libcxxshim-dependency branch December 9, 2022 18:15
quinntaylor pushed a commit to quinntaylor/swift that referenced this pull request Dec 12, 2022
…ang#62475)

The modulemap and header files target was added to `ALL`, which works
when invoking the build thru the `build-script`, but make some test fail
when doing a manual configuration and later doing
`check-swift-validation` or similar, because the modulemap/header were
not copied into the build directory.

Follow a pattern similar to the one in GlibC (which this file seemed to
be prepared for, since the `libcxxshim_modulemap_target_list` variable
was already there), create a global target for all the modulemap/headers
of each SDK and add that global target as a dependency of sdk-overlay
(which is a dependency of check-swift-validation and others).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant