Skip to content

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