Conversation
0e1d972 to
3066829
Compare
| executable_name = executable_name + ".exe" | ||
| return ctx.actions.declare_file(executable_name) | ||
|
|
||
| def _create_windows_exe_launcher(ctx, executable, java_executable, classpath, main_class, jvm_flags_for_launcher, runfiles_enabled, coverage_main_class = None): |
There was a problem hiding this comment.
Is most of this impl. just copied over from the java rules? https://github.com/bazelbuild/rules_java/blob/aa0345c749ae24b4ff3e9ca92e52bbcd96bc135a/java/bazel/rules/bazel_java_binary.bzl#L280-L304
|
@agluszak this one has a bunch of merge conflicts in it, can you take a look at resolving these? |
|
@Bencodes merged master! |
| // Canonicalize the path for proper lookup (handles K2's forward-slash paths on Windows) | ||
| val canonicalJarPath = | ||
| try { | ||
| File(jarPath).canonicalPath |
There was a problem hiding this comment.
Does this fail on windows?
| # Toolchain type for the Windows launcher maker | ||
| _LAUNCHER_MAKER_TOOLCHAIN_TYPE = "@bazel_tools//tools/launcher:launcher_maker_toolchain_type" | ||
|
|
||
| def _is_windows(ctx): |
There was a problem hiding this comment.
These functions look like they are defined twice in this PR, was that intentional? I'm also seeing that _LAUNCHER_MAKER_TOOLCHAIN_TYPE is defined twice.
| .map { p -> Flag("--bazelrc=$p") } | ||
| .toList() | ||
| .takeIf { it.isNotEmpty() } | ||
| ?: listOf(Flag("--bazelrc=/dev/null")), |
There was a problem hiding this comment.
Removing this could allow any existing the .bazelrc to take effect.
What was the intent?
| load("//kotlin:jvm.bzl", "kt_jvm_library") | ||
|
|
||
| kt_jvm_binary( | ||
| java_binary( |
There was a problem hiding this comment.
Why the switch to java_binary, as it the other part of the pr is making kt_jvm_binary work?
609929f to
56ade49
Compare
|
GitHub seems to be having a hard time now :/ |
This change enables Windows builds and tests in the CI pipeline and fixes
various Windows compatibility issues throughout the codebase.
Platform-specific path handling:
Ktlint fixes:
Test infrastructure:
CI configuration: