Skip to content

[JavaRuntime] Add module.modulemap #285

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
Jun 25, 2025
Merged

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 25, 2025

Fix a build error in 6.1 toolchain. Apparently some targets have both JavaRuntime-tool.build and JavaRuntime.build as the include paths. The auto generated module.modulemap in those directories cause the error error: redefinition of module 'JavaRuntime'. To avoid that, add module.modulemap in the source directory so it's not generated.

Fixes: #229

Fix a build error in 6.1 toolchain. Apparently some targets have both
`JavaRuntime-tool.build` and `JavaRuntime.build` as the include paths.
The auto generated `module.modulemap` in both directories cause the
error `error: redefinition of module 'JavaRuntime'`. To avoid that,
add `module.modulemap` in the source directory so it's not generated.

Fixes: swiftlang#229
@ktoso
Copy link
Collaborator

ktoso commented Jun 25, 2025

Nice!

This probably solves #183 as well

Resolves: #183

@rintaro rintaro merged commit f716099 into swiftlang:main Jun 25, 2025
49 of 51 checks passed
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.

Swift 6.1: JavaKitSampleApp fails with redefinition of module 'JavaRuntime'
2 participants