Skip to content

[JavaRuntime] Add module.modulemap#285

Merged
rintaro merged 1 commit into
swiftlang:mainfrom
rintaro:issue-229
Jun 25, 2025
Merged

[JavaRuntime] Add module.modulemap#285
rintaro merged 1 commit into
swiftlang:mainfrom
rintaro:issue-229

Conversation

@rintaro

@rintaro rintaro commented Jun 25, 2025

Copy link
Copy Markdown
Member

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

ktoso commented Jun 25, 2025

Copy link
Copy Markdown
Collaborator

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