From eb061447e8fb986eee22012dee2fefe636710e54 Mon Sep 17 00:00:00 2001 From: Martin Kuntz Jacobsen Date: Tue, 10 Nov 2026 03:14:56 +0100 Subject: [PATCH 1/2] layout: julia, zig, fortran, d to /defs.bzl and private/, delete their families (part of #10084) Closes #10099. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd --- .bcr/families/fortran/metadata.template.json | 14 - .bcr/families/fortran/presubmit.yml | 15 - .bcr/families/fortran/source.template.json | 5 - .bcr/families/julia/metadata.template.json | 14 - .bcr/families/julia/presubmit.yml | 15 - .bcr/families/julia/source.template.json | 5 - .bcr/families/zig/metadata.template.json | 14 - .bcr/families/zig/presubmit.yml | 15 - .bcr/families/zig/source.template.json | 5 - .github/workflows/ci.yml | 2 +- BUILD.bazel | 12 +- MODULE.bazel | 81 +- MODULE.bazel.lock | 2 +- cli/adopt/src/dependency_sets_tests.rs | 6 +- cli/cli/src/exec/unsupported.json | 2 +- cli/entrypoint/consumer_surface.txt | 6 +- cli/update/src/backend.rs | 2 +- cli/update/src/backend_tests.rs | 2 +- config/BUILD.bazel | 4 +- d/BUILD.bazel | 6 + d/README.md | 6 +- d/defs.bzl | 22 + d/extensions.bzl | 7 + d/lang.json | 4 +- d/{rules => private}/BUILD.bazel | 2 +- d/{rules => private}/defs.bzl | 2 +- d/{ => private}/dub/BUILD.bazel | 0 d/{ => private}/dub/extensions.bzl | 0 d/{ => private}/dub/lock.bzl | 0 d/{ => private}/dub/lock_tests.bzl | 12 +- d/{ => private}/dub/repos.bzl | 2 +- d/{rules => private}/kwargs.bzl | 4 +- d/{ => private}/toolchain/BUILD.bazel | 0 d/{ => private}/toolchain/extensions.bzl | 2 +- d/{ => private}/toolchain/metadata_tests.bzl | 0 d/{ => private}/toolchain/msvc_iso_stdio.c | 0 d/{ => private}/toolchain/pins.bzl | 6 +- d/{ => private}/toolchain/repos.bzl | 0 d/{ => private}/tools/BUILD.bazel | 0 d/{rules => private}/wrapper_tests.bzl | 0 d/tests/fixtures/bench/BUILD.bazel | 2 +- d/tests/fixtures/cc_interop/BUILD.bazel | 2 +- d/tests/fixtures/coverage/BUILD.bazel | 4 +- .../fixtures/d-app/diagnostics/BUILD.bazel | 4 +- d/tests/fixtures/d-app/source/BUILD.bazel | 2 +- .../fixtures/d-app/source/base/BUILD.bazel | 2 +- d/tests/fixtures/d-app/source/cli/BUILD.bazel | 2 +- d/tests/fixtures/fuzz/BUILD.bazel | 2 +- d/tests/fixtures/hello/BUILD.bazel | 4 +- deploy/rules/image_demo/BUILD.bazel | 2 +- docs/cli/commands/README.md | 41 +- docs/cli/commands/audit-update.md | 12 +- docs/cli/commands/bench.md | 2 +- docs/cli/commands/fuzz.md | 2 +- families/fortran/.bazeliskrc | 1 - families/fortran/.bazelrc | 23 - families/fortran/.bazelversion | 1 - families/fortran/.buildifier.json | 101 - families/fortran/.dx/BUILD.bazel | 85 - .../fortran/.dx/bazelrc/correctness.bazelrc | 79 - .../fortran/.dx/bazelrc/performance.bazelrc | 57 - .../fortran/.dx/bazelrc/resources.bazelrc | 42 - .../fortran/.dx/config/buildifier/base.json | 3 - families/fortran/.dx/config/taplo/base.toml | 4 - families/fortran/.dx/config/typos/base.toml | 5 - families/fortran/.dx/pins | 1 - families/fortran/BUILD.bazel | 50 - families/fortran/MODULE.bazel | 22 - families/fortran/MODULE.bazel.lock | 21937 ---------------- families/fortran/README.md | 6 - families/fortran/bcr_test_module/BUILD.bazel | 3 - families/fortran/bcr_test_module/MODULE.bazel | 4 - families/fortran/dx.toml | 2 - families/fortran/fortran/lang.json | 20 - families/fortran/starlark_docs_test.sh | 2 - .../third_party/rules_dx/.gitattributes | 2 - .../fortran/third_party/rules_dx/BUILD.bazel | 54 - .../aspect_rules_ts.typecheck_root_dir.patch | 24 - .../rules_dx/avro-cpp.iterator.patch | 57 - .../gcc_toolchain.native_include_layout.patch | 11 - .../rules_dx/gcc_toolchain.runtime_libs.patch | 36 - .../gcc_toolchain.sanitizer_spec.patch | 10 - ...gcc_toolchain.target_identity_config.patch | 31 - .../gcc_toolchain.target_identity_defs.patch | 39 - ..._toolchain.target_identity_extension.patch | 10 - ...ic_launcher.windows_arm64_toolchains.patch | 50 - .../llvm.aarch64_outline_atomics.patch | 13 - .../llvm.clang_cl_crt_default_lib.patch | 39 - .../rules_dx/llvm.libunwind_copy.patch | 11 - .../rules_dx/llvm.lse_atomic_sources.patch | 189 - .../llvm.msvc_source_directories.patch | 187 - .../llvm.stage0_runtime_features.patch | 165 - .../llvm.unwatched_overlay_inputs.patch | 68 - .../rules_dx/protobuf.no_crate_universe.patch | 32 - ...s_android.bundle_keystore_properties.patch | 21 - .../rules_dx/rules_dart.coverage.patch | 84 - .../rules_dart.external_pkgsrcs.patch | 27 - .../rules_dx/rules_dx.MODULE.bazel | 174 - .../rules_flutter.lock_extension.patch | 11 - .../rules_dx/rules_flutter.missing_font.patch | 16 - .../rules_flutter.registrant_javacopts.patch | 27 - ...les_julia.package_annotation_version.patch | 11 - .../rules_dx/rules_julia.package_name.patch | 76 - .../rules_julia.portable_cpu_target.patch | 28 - .../rules_julia.template_action_input.patch | 60 - ...s_kotlin.windows_coverage_test_suite.patch | 13 - .../rules_py.external_repo_pytest_paths.patch | 18 - ...es_py.host_interpreter_windows_arm64.patch | 10 - ...ules_py.native_sdist_toolchain_flags.patch | 220 - .../rules_dx/rules_py.pep517_msvc.patch | 334 - .../rules_py.py_cc_toolchain_platform.patch | 635 - .../rules_dx/rules_py.venv_bin_files.patch | 106 - .../rules_python.single_import_lib.patch | 34 - .../rules_rust.cargo_toml_env_vars_flag.patch | 103 - .../rules_rust.clippy_metadata_inputs.patch | 146 - ..._rust.crate_universe_lazy_host_tools.patch | 128 - ...ules_rust.crate_universe_root_lookup.patch | 17 - .../rules_rust.exec_cc_toolchain_env.patch | 85 - .../rules_dx/rules_rust.msvc_pdb_output.patch | 13 - .../rules_rust.pipelined_rmeta_path.patch | 35 - .../rules_rust.rust_lld_msvc_libpath.patch | 46 - .../rules_swift.non_root_toolchain.patch | 79 - .../rules_swift.toolchain_sysroot_env.patch | 240 - .../windows_support.dx_msvc_layout.patch | 174 - .../rules_dx/windows_support.host_tools.patch | 263 - .../windows_support.hostarm64_packages.patch | 85 - .../windows_support.rules_dx_hosts.patch | 45 - ...ows_support.source_directory_headers.patch | 146 - families/julia/.bazelrc | 23 - families/julia/.bazelversion | 1 - families/julia/.buildifier.json | 101 - families/julia/.dx/BUILD.bazel | 85 - .../julia/.dx/bazelrc/correctness.bazelrc | 91 - .../julia/.dx/bazelrc/performance.bazelrc | 57 - families/julia/.dx/bazelrc/resources.bazelrc | 42 - .../julia/.dx/config/buildifier/base.json | 3 - families/julia/.dx/config/taplo/base.toml | 4 - families/julia/.dx/config/typos/base.toml | 5 - families/julia/.dx/pins | 1 - families/julia/BUILD.bazel | 54 - families/julia/MODULE.bazel | 46 - families/julia/MODULE.bazel.lock | 21937 ---------------- families/julia/README.md | 7 - families/julia/bcr_test_module/BUILD.bazel | 1 - families/julia/bcr_test_module/MODULE.bazel | 3 - families/julia/dx.toml | 2 - families/julia/julia/lang.json | 27 - families/julia/starlark_docs_test.sh | 2 - .../julia/third_party/rules_dx/.gitattributes | 2 - .../julia/third_party/rules_dx/BUILD.bazel | 54 - .../aspect_rules_ts.typecheck_root_dir.patch | 24 - .../rules_dx/avro-cpp.iterator.patch | 57 - .../gcc_toolchain.native_include_layout.patch | 11 - .../rules_dx/gcc_toolchain.runtime_libs.patch | 36 - .../gcc_toolchain.sanitizer_spec.patch | 10 - ...gcc_toolchain.target_identity_config.patch | 31 - .../gcc_toolchain.target_identity_defs.patch | 39 - ..._toolchain.target_identity_extension.patch | 10 - ...ic_launcher.windows_arm64_toolchains.patch | 50 - .../llvm.aarch64_outline_atomics.patch | 13 - .../llvm.clang_cl_crt_default_lib.patch | 39 - .../rules_dx/llvm.libunwind_copy.patch | 11 - .../rules_dx/llvm.lse_atomic_sources.patch | 189 - .../llvm.msvc_source_directories.patch | 187 - .../llvm.stage0_runtime_features.patch | 165 - .../llvm.unwatched_overlay_inputs.patch | 68 - .../rules_dx/protobuf.no_crate_universe.patch | 32 - ...s_android.bundle_keystore_properties.patch | 21 - .../rules_dx/rules_dart.coverage.patch | 84 - .../rules_dart.external_pkgsrcs.patch | 27 - .../rules_dx/rules_dx.MODULE.bazel | 174 - .../rules_flutter.lock_extension.patch | 11 - .../rules_dx/rules_flutter.missing_font.patch | 16 - .../rules_flutter.registrant_javacopts.patch | 27 - ...les_julia.package_annotation_version.patch | 11 - .../rules_dx/rules_julia.package_name.patch | 76 - .../rules_julia.portable_cpu_target.patch | 28 - .../rules_julia.template_action_input.patch | 60 - ...s_kotlin.windows_coverage_test_suite.patch | 13 - .../rules_py.external_repo_pytest_paths.patch | 18 - ...es_py.host_interpreter_windows_arm64.patch | 10 - ...ules_py.native_sdist_toolchain_flags.patch | 220 - .../rules_dx/rules_py.pep517_msvc.patch | 334 - .../rules_py.py_cc_toolchain_platform.patch | 635 - .../rules_dx/rules_py.venv_bin_files.patch | 106 - .../rules_python.single_import_lib.patch | 34 - .../rules_rust.cargo_toml_env_vars_flag.patch | 103 - .../rules_rust.clippy_metadata_inputs.patch | 146 - ..._rust.crate_universe_lazy_host_tools.patch | 128 - ...ules_rust.crate_universe_root_lookup.patch | 17 - .../rules_rust.exec_cc_toolchain_env.patch | 85 - .../rules_dx/rules_rust.msvc_pdb_output.patch | 13 - .../rules_rust.pipelined_rmeta_path.patch | 35 - .../rules_rust.rust_lld_msvc_libpath.patch | 46 - .../rules_swift.non_root_toolchain.patch | 79 - .../rules_swift.toolchain_sysroot_env.patch | 240 - .../windows_support.dx_msvc_layout.patch | 174 - .../rules_dx/windows_support.host_tools.patch | 263 - .../windows_support.hostarm64_packages.patch | 85 - .../windows_support.rules_dx_hosts.patch | 45 - ...ows_support.source_directory_headers.patch | 146 - families/zig/.bazelrc | 23 - families/zig/.bazelversion | 1 - families/zig/.buildifier.json | 101 - families/zig/.dx/BUILD.bazel | 85 - families/zig/.dx/bazelrc/correctness.bazelrc | 91 - families/zig/.dx/bazelrc/performance.bazelrc | 57 - families/zig/.dx/bazelrc/resources.bazelrc | 42 - families/zig/.dx/config/buildifier/base.json | 3 - families/zig/.dx/config/taplo/base.toml | 4 - families/zig/.dx/config/typos/base.toml | 5 - families/zig/.dx/pins | 1 - families/zig/BUILD.bazel | 54 - families/zig/MODULE.bazel | 50 - families/zig/MODULE.bazel.lock | 21937 ---------------- families/zig/README.md | 7 - families/zig/bcr_test_module/BUILD.bazel | 1 - families/zig/bcr_test_module/MODULE.bazel | 3 - families/zig/dx.toml | 2 - families/zig/starlark_docs_test.sh | 2 - .../zig/third_party/rules_dx/.gitattributes | 2 - families/zig/third_party/rules_dx/BUILD.bazel | 54 - .../aspect_rules_ts.typecheck_root_dir.patch | 24 - .../rules_dx/avro-cpp.iterator.patch | 57 - .../gcc_toolchain.native_include_layout.patch | 11 - .../rules_dx/gcc_toolchain.runtime_libs.patch | 36 - .../gcc_toolchain.sanitizer_spec.patch | 10 - ...gcc_toolchain.target_identity_config.patch | 31 - .../gcc_toolchain.target_identity_defs.patch | 39 - ..._toolchain.target_identity_extension.patch | 10 - ...ic_launcher.windows_arm64_toolchains.patch | 50 - .../llvm.aarch64_outline_atomics.patch | 13 - .../llvm.clang_cl_crt_default_lib.patch | 39 - .../rules_dx/llvm.libunwind_copy.patch | 11 - .../rules_dx/llvm.lse_atomic_sources.patch | 189 - .../llvm.msvc_source_directories.patch | 187 - .../llvm.stage0_runtime_features.patch | 165 - .../llvm.unwatched_overlay_inputs.patch | 68 - .../rules_dx/protobuf.no_crate_universe.patch | 32 - ...s_android.bundle_keystore_properties.patch | 21 - .../rules_dx/rules_dart.coverage.patch | 84 - .../rules_dart.external_pkgsrcs.patch | 27 - .../rules_dx/rules_dx.MODULE.bazel | 174 - .../rules_flutter.lock_extension.patch | 11 - .../rules_dx/rules_flutter.missing_font.patch | 16 - .../rules_flutter.registrant_javacopts.patch | 27 - ...les_julia.package_annotation_version.patch | 11 - .../rules_dx/rules_julia.package_name.patch | 76 - .../rules_julia.portable_cpu_target.patch | 28 - .../rules_julia.template_action_input.patch | 60 - ...s_kotlin.windows_coverage_test_suite.patch | 13 - .../rules_py.external_repo_pytest_paths.patch | 18 - ...es_py.host_interpreter_windows_arm64.patch | 10 - ...ules_py.native_sdist_toolchain_flags.patch | 220 - .../rules_dx/rules_py.pep517_msvc.patch | 334 - .../rules_py.py_cc_toolchain_platform.patch | 635 - .../rules_dx/rules_py.venv_bin_files.patch | 106 - .../rules_python.single_import_lib.patch | 34 - .../rules_rust.cargo_toml_env_vars_flag.patch | 103 - .../rules_rust.clippy_metadata_inputs.patch | 146 - ..._rust.crate_universe_lazy_host_tools.patch | 128 - ...ules_rust.crate_universe_root_lookup.patch | 17 - .../rules_rust.exec_cc_toolchain_env.patch | 85 - .../rules_dx/rules_rust.msvc_pdb_output.patch | 13 - .../rules_rust.pipelined_rmeta_path.patch | 35 - .../rules_rust.rust_lld_msvc_libpath.patch | 46 - .../rules_swift.non_root_toolchain.patch | 79 - .../rules_swift.toolchain_sysroot_env.patch | 240 - .../windows_support.dx_msvc_layout.patch | 174 - .../rules_dx/windows_support.host_tools.patch | 263 - .../windows_support.hostarm64_packages.patch | 85 - .../windows_support.rules_dx_hosts.patch | 45 - ...ows_support.source_directory_headers.patch | 146 - families/zig/zig/lang.json | 25 - fortran/BUILD.bazel | 6 + fortran/README.md | 4 +- fortran/defs.bzl | 16 + fortran/extensions.bzl | 5 + fortran/lang.json | 4 +- fortran/{rules => private}/BUILD.bazel | 0 fortran/{rules => private}/defs.bzl | 4 +- fortran/{rules => private}/fpm_lock.bzl | 0 fortran/{rules => private}/kwargs.bzl | 6 +- fortran/{ => private}/toolchain/BUILD.bazel | 0 .../{ => private}/toolchain/extensions.bzl | 6 +- fortran/{ => private}/toolchain/flags.bzl | 0 .../toolchain/flang_rt.BUILD.bazel | 0 .../toolchain/metadata_tests.bzl | 2 +- fortran/{ => private}/toolchain/pins.bzl | 0 fortran/{ => private}/toolchain/repos.bzl | 4 +- fortran/{ => private}/toolchain/toolchain.bzl | 2 +- .../tests/fixtures/calc/BUILD.bazel | 4 +- .../tests/fixtures/calc/calc.f90 | 0 .../tests/fixtures/calc/calc_test.f90 | 0 .../tests/negative/BUILD.bazel | 2 +- .../tests/negative/base_dep.f90 | 0 .../tests/negative/consumer.f90 | 0 .../tests/negative/needs_dep.f90 | 0 .../tests/negative/negative_tests.bzl | 0 .../tests/negative/provider.f90 | 0 .../tests/runtime/BUILD.bazel | 2 +- .../fortran => fortran}/tests/runtime/c_add.c | 0 .../fortran => fortran}/tests/runtime/c_add.h | 0 .../tests/runtime/calls_c_test.f90 | 0 .../fortran => fortran}/tests/runtime/dot.f90 | 0 .../tests/runtime/dot_test.c | 0 .../tests/runtime/greet.f90 | 0 .../tests/runtime/io_test.F90 | 0 .../tests/runtime/kinds_a/BUILD.bazel | 2 +- .../tests/runtime/kinds_a/kinds.f90 | 0 .../tests/runtime/kinds_b/BUILD.bazel | 2 +- .../tests/runtime/kinds_b/kinds.f90 | 0 .../tests/runtime/main.f90 | 0 .../tests/runtime/same_basename_test.f90 | 0 .../tests/runtime/stats.f90 | 0 .../tests/runtime/stats_test.f90 | 0 gazelle/d/lang.go | 2 +- gazelle/d/testdata/d_app/source/BUILD.out | 2 +- .../d/testdata/d_app/source/base/BUILD.out | 2 +- gazelle/d/testdata/d_app/source/cli/BUILD.out | 2 +- .../d/testdata/dub_project/source/BUILD.out | 2 +- .../dub_project/source/mylib/BUILD.out | 2 +- gazelle/d/testdata/modules/app/BUILD.out | 2 +- gazelle/d/testdata/modules/flat/BUILD.out | 2 +- .../d/testdata/modules/lib/shapes/BUILD.out | 2 +- .../d/testdata/modules/src/app/cli/BUILD.out | 2 +- .../d/testdata/modules/src/app/core/BUILD.out | 2 +- gazelle/d/testdata/modules/src/keep/BUILD.in | 2 +- gazelle/d/testdata/modules/src/keep/BUILD.out | 2 +- gazelle/d/testdata/modules/strings/BUILD.out | 2 +- gazelle/d/testdata/modules/tested/BUILD.out | 2 +- gazelle/dispatch/conformance_test.go | 6 +- gazelle/julia/BUILD.bazel | 2 +- gazelle/julia/lang.go | 2 +- .../julia/testdata/packages/nested/BUILD.out | 2 +- .../packages/nested/src/sub/BUILD.out | 2 +- .../julia/testdata/packages/pkg/App/BUILD.out | 2 +- .../testdata/packages/pkg/Stats/BUILD.out | 2 +- .../julia/testdata/packages/stale/BUILD.in | 2 +- .../julia/testdata/packages/stale/BUILD.out | 2 +- .../julia/testdata/packages/starter/BUILD.in | 2 +- .../julia/testdata/packages/starter/BUILD.out | 2 +- gazelle/julia/testdata/root/BUILD.out | 2 +- gazelle/zig/lang.go | 2 +- .../zig/testdata/modules/pkg/app/BUILD.out | 2 +- .../zig/testdata/modules/pkg/greet/BUILD.out | 2 +- gazelle/zig/testdata/root/BUILD.out | 2 +- julia/BUILD.bazel | 5 + julia/README.md | 2 +- julia/defs.bzl | 16 + julia/lang.json | 2 +- julia/{rules => private}/BUILD.bazel | 0 julia/{ => private}/coverage/BUILD.bazel | 4 +- .../coverage/Manifest.bazel.json | 0 julia/{ => private}/coverage/Manifest.toml | 0 julia/{ => private}/coverage/Project.toml | 0 julia/{ => private}/coverage/coverage.bzl | 2 +- julia/{ => private}/coverage/runner.jl | 0 julia/{rules => private}/defs.bzl | 10 +- julia/{rules => private}/platforms.bzl | 0 julia/{rules => private}/precompile_tests.bzl | 0 julia/{ => private}/tools/BUILD.bazel | 2 +- julia/{ => private}/tools/Manifest.bazel.json | 0 julia/{ => private}/tools/Manifest.toml | 0 julia/{ => private}/tools/Project.toml | 0 julia/{ => private}/tools/docs/BUILD.bazel | 2 +- .../tools/docs/Manifest.bazel.json | 0 julia/{ => private}/tools/docs/Manifest.toml | 0 julia/{ => private}/tools/docs/Project.toml | 0 .../tools/docs/patches/BUILD.bazel | 0 .../tools/docs/patches/Documenter.patch | 0 .../tools/docs/patches/StructUtils.patch | 0 julia/{ => private}/tools/format.jl | 0 julia/{ => private}/tools/format_cli_test.rs | 0 julia/{ => private}/tools/jet/BUILD.bazel | 4 +- .../tools/jet/Manifest.bazel.json | 0 julia/{ => private}/tools/jet/Manifest.toml | 0 julia/{ => private}/tools/jet/Project.toml | 0 julia/{ => private}/tools/jet/jet.jl | 0 julia/{ => private}/tools/jet/jet_cli_test.rs | 2 +- .../tools/jet/patches/BUILD.bazel | 0 .../{ => private}/tools/jet/patches/JET.patch | 0 .../tools/jet/patches/JET_docs.patch | 0 .../tools/jet/patches/MacroTools.patch | 0 .../{ => private}/tools/jet/testdata/buggy.jl | 0 .../{ => private}/tools/jet/testdata/clean.jl | 0 julia/{ => private}/tools/julia_tool.bzl | 0 julia/{ => private}/tools/lint/BUILD.bazel | 4 +- .../tools/lint/Manifest.bazel.json | 0 julia/{ => private}/tools/lint/Manifest.toml | 0 julia/{ => private}/tools/lint/Project.toml | 0 julia/{ => private}/tools/lint/lint.jl | 0 .../{ => private}/tools/lint/lint_cli_test.rs | 2 +- .../tools/lint/patches/BUILD.bazel | 0 .../tools/lint/patches/CommonMark.patch | 0 .../lint/patches/ExceptionUnwrapping.patch | 0 .../tools/lint/patches/JSON.patch | 0 .../tools/lint/patches/JuliaWorkspaces.patch | 0 .../tools/lint/testdata/buggy.jl | 0 .../tools/lint/testdata/clean.jl | 0 .../tools/lint/testdata/unicode.jl | 0 julia/{ => private}/tools/patches/BUILD.bazel | 0 .../tools/patches/Preferences.patch | 0 julia/{ => private}/tools/pkg_update.jl | 0 julia/{rules => private}/wrapper_tests.bzl | 0 .../tests/fixtures/hello/BUILD.bazel | 6 +- .../tests/fixtures/hello/Project.toml | 0 .../tests/fixtures/hello/app/BUILD.bazel | 2 +- .../tests/fixtures/hello/app/Project.toml | 0 .../tests/fixtures/hello/app/src/HelloApp.jl | 0 .../tests/fixtures/hello/greet_test.jl | 0 .../tests/fixtures/hello/main.jl | 0 .../tests/fixtures/hello/negative/BUILD.bazel | 2 +- .../fixtures/hello/negative/src/Broken.jl | 0 .../fixtures/hello/negative/src/Missing.jl | 0 .../tests/fixtures/hello/relocate_test.rs | 0 .../tests/fixtures/hello/src/Greet.jl | 0 .../tests/fixtures/julia-app/BUILD.bazel | 0 .../tests/fixtures/julia-app/README.md | 2 +- .../fixtures/julia-app/archive/BUILD.bazel | 2 +- .../fixtures/julia-app/archive/Project.toml | 0 .../julia-app/archive/archive_test.jl | 0 .../fixtures/julia-app/archive/src/Archive.jl | 0 .../tests/fixtures/julia-app/cli/BUILD.bazel | 2 +- .../tests/fixtures/julia-app/cli/Project.toml | 0 .../tests/fixtures/julia-app/cli/cli_test.jl | 0 .../tests/fixtures/julia-app/cli/main.jl | 0 .../fixtures/julia-app/cli/report_test.jl | 0 .../fixtures/julia-app/cli/src/Report.jl | 0 .../tests/fixtures/julia-app/data/BUILD.bazel | 0 .../fixtures/julia-app/data/readings.tsv | 0 .../julia-app/diagnostics/BUILD.bazel | 6 +- .../fixtures/julia-app/diagnostics/clean.jl | 0 .../julia-app/diagnostics/diagnostics_test.rs | 0 .../julia-app/diagnostics/missing_dep.jl | 0 .../julia-app/diagnostics/runtime_error.jl | 0 .../julia-app/diagnostics/syntax_error.jl | 0 .../julia-app/diagnostics/unformatted.jl | 0 .../fixtures/julia-app/stats/BUILD.bazel | 2 +- .../fixtures/julia-app/stats/Project.toml | 0 .../fixtures/julia-app/stats/src/Stats.jl | 0 .../fixtures/julia-app/stats/stats_test.jl | 0 .../julia-app/third_party/BUILD.bazel | 2 +- .../julia-app/third_party/Manifest.bazel.json | 0 .../julia-app/third_party/Manifest.toml | 0 .../julia-app/third_party/Project.toml | 0 libs/families/BUILD.bazel | 16 +- libs/module_bazel/src/lib.rs | 12 +- libs/module_bazel/src/tests.rs | 2 +- libs/starlark/tests/cells_tests.bzl | 4 +- modules/families.json | 174 +- modules/versions_tests.bzl | 4 +- quality/BUILD.bazel | 4 +- quality/compile_check.bzl | 2 +- quality/families/julia.bzl | 4 +- quality/real_core.bzl | 6 +- quality/support_tests.bzl | 2 +- quality/taxonomy.bzl | 8 +- quality/testdata/BUILD.bazel | 8 +- quality/testdata/coverage_sources/BUILD.bazel | 6 +- quality/testdata/runner_matrix_structured.bzl | 8 +- quality/testdata/tool_override_tests.bzl | 6 +- tools/ci/BUILD.bazel | 18 +- tools/ci/pr_check.sh | 10 +- tools/ci/starlark_docs_test.rs | 12 +- tools/coverage/kcov/kcov_tests.bzl | 12 +- tools/docs/d/fixture/BUILD.bazel | 2 +- tools/docs/fortran/fixture/BUILD.bazel | 2 +- tools/docs/julia/BUILD.bazel | 4 +- tools/docs/julia/fixture/BUILD.bazel | 2 +- tools/docs/support_matrix/languages.bzl | 22 +- tools/docs/support_matrix/src/lib.rs | 3 - tools/docs/support_matrix/src/starlark.rs | 10 +- tools/docs/zig/dump/BUILD.bazel | 2 +- tools/docs/zig/fixture/BUILD.bazel | 2 +- tools/testing/hermetic/BUILD.bazel | 28 +- .../consumers/zig/apps/catalog.BUILD.bazel | 2 +- .../consumers/zig/apps/digest.BUILD.bazel | 2 +- tools/testing/starters/BUILD.bazel | 8 +- .../starters/fixtures/d/BUILD.bazel.fixture | 2 +- .../fixtures/fortran/BUILD.bazel.fixture | 2 +- .../fixtures/julia/BUILD.bazel.fixture | 2 +- .../starters/fixtures/zig/BUILD.bazel.fixture | 2 +- zig/BUILD.bazel | 6 + zig/README.md | 6 +- zig/defs.bzl | 16 + zig/extensions.bzl | 5 + zig/lang.json | 2 +- zig/{rules => private}/BUILD.bazel | 0 zig/{rules => private}/bench_run.sh | 0 zig/{rules => private}/defs.bzl | 12 +- zig/{ => private}/deps/BUILD.bazel | 0 zig/{ => private}/deps/extensions.bzl | 0 zig/{ => private}/deps/lock.bzl | 0 zig/{ => private}/deps/lock_tests.bzl | 2 +- zig/{ => private}/deps/repos.bzl | 2 +- zig/{ => private}/tools/BUILD.bazel | 0 zig/{ => private}/tools/zig_tool.bzl | 0 .../tests/fixtures/bench/BUILD.bazel | 6 +- .../zig => zig}/tests/fixtures/bench/main.zig | 0 .../tests/fixtures/bench/run_test.sh | 0 .../tests/fixtures/calc/BUILD.bazel | 6 +- .../zig => zig}/tests/fixtures/calc/calc.zig | 0 .../tests/fixtures/calc/calc_test.zig | 0 .../tests/fixtures/hello/BUILD.bazel | 2 +- .../tests/fixtures/hello/greet.zig | 0 .../zig => zig}/tests/fixtures/hello/main.zig | 0 .../tests/fixtures/zig-app/BUILD.bazel | 0 .../tests/fixtures/zig-app/README.md | 0 .../fixtures/zig-app/catalog/BUILD.bazel | 2 +- .../tests/fixtures/zig-app/catalog/VERSION | 0 .../fixtures/zig-app/catalog/catalog.zig | 0 .../fixtures/zig-app/catalog/catalog_test.zig | 0 .../tests/fixtures/zig-app/catalog/items.tsv | 0 .../tests/fixtures/zig-app/cli/BUILD.bazel | 2 +- .../tests/fixtures/zig-app/cli/exit_codes.sh | 0 .../tests/fixtures/zig-app/cli/main.zig | 0 .../tests/fixtures/zig-app/cli/report.zig | 0 .../fixtures/zig-app/cli/report_test.zig | 0 .../fixtures/zig-app/diagnostics/BUILD.bazel | 8 +- .../fixtures/zig-app/diagnostics/clean.zig | 0 .../zig-app/diagnostics/diagnostics_test.rs | 0 .../zig-app/diagnostics/syntax_error.zig | 0 .../zig-app/diagnostics/type_error.zig | 0 .../zig-app/diagnostics/unformatted.zig | 0 .../zig-app/diagnostics/unused_error.zig | 0 .../tests/fixtures/zig-app/digest/BUILD.bazel | 2 +- .../tests/fixtures/zig-app/digest/digest.c | 0 .../tests/fixtures/zig-app/digest/digest.h | 0 .../tests/fixtures/zig-app/digest/digest.zig | 0 .../fixtures/zig-app/digest/digest_test.zig | 0 .../tests/fixtures/zig-app/xxhash.BUILD.bazel | 0 532 files changed, 507 insertions(+), 81634 deletions(-) delete mode 100644 .bcr/families/fortran/metadata.template.json delete mode 100644 .bcr/families/fortran/presubmit.yml delete mode 100644 .bcr/families/fortran/source.template.json delete mode 100644 .bcr/families/julia/metadata.template.json delete mode 100644 .bcr/families/julia/presubmit.yml delete mode 100644 .bcr/families/julia/source.template.json delete mode 100644 .bcr/families/zig/metadata.template.json delete mode 100644 .bcr/families/zig/presubmit.yml delete mode 100644 .bcr/families/zig/source.template.json create mode 100644 d/BUILD.bazel create mode 100644 d/defs.bzl create mode 100644 d/extensions.bzl rename d/{rules => private}/BUILD.bazel (97%) rename d/{rules => private}/defs.bzl (99%) rename d/{ => private}/dub/BUILD.bazel (100%) rename d/{ => private}/dub/extensions.bzl (100%) rename d/{ => private}/dub/lock.bzl (100%) rename d/{ => private}/dub/lock_tests.bzl (93%) rename d/{ => private}/dub/repos.bzl (98%) rename d/{rules => private}/kwargs.bzl (65%) rename d/{ => private}/toolchain/BUILD.bazel (100%) rename d/{ => private}/toolchain/extensions.bzl (96%) rename d/{ => private}/toolchain/metadata_tests.bzl (100%) rename d/{ => private}/toolchain/msvc_iso_stdio.c (100%) rename d/{ => private}/toolchain/pins.bzl (97%) rename d/{ => private}/toolchain/repos.bzl (100%) rename d/{ => private}/tools/BUILD.bazel (100%) rename d/{rules => private}/wrapper_tests.bzl (100%) delete mode 100644 families/fortran/.bazeliskrc delete mode 100644 families/fortran/.bazelrc delete mode 100644 families/fortran/.bazelversion delete mode 100644 families/fortran/.buildifier.json delete mode 100644 families/fortran/.dx/BUILD.bazel delete mode 100644 families/fortran/.dx/bazelrc/correctness.bazelrc delete mode 100644 families/fortran/.dx/bazelrc/performance.bazelrc delete mode 100644 families/fortran/.dx/bazelrc/resources.bazelrc delete mode 100644 families/fortran/.dx/config/buildifier/base.json delete mode 100644 families/fortran/.dx/config/taplo/base.toml delete mode 100644 families/fortran/.dx/config/typos/base.toml delete mode 100644 families/fortran/.dx/pins delete mode 100644 families/fortran/BUILD.bazel delete mode 100644 families/fortran/MODULE.bazel delete mode 100644 families/fortran/MODULE.bazel.lock delete mode 100644 families/fortran/README.md delete mode 100644 families/fortran/bcr_test_module/BUILD.bazel delete mode 100644 families/fortran/bcr_test_module/MODULE.bazel delete mode 100644 families/fortran/dx.toml delete mode 100644 families/fortran/fortran/lang.json delete mode 100755 families/fortran/starlark_docs_test.sh delete mode 100644 families/fortran/third_party/rules_dx/.gitattributes delete mode 100644 families/fortran/third_party/rules_dx/BUILD.bazel delete mode 100644 families/fortran/third_party/rules_dx/aspect_rules_ts.typecheck_root_dir.patch delete mode 100644 families/fortran/third_party/rules_dx/avro-cpp.iterator.patch delete mode 100644 families/fortran/third_party/rules_dx/gcc_toolchain.native_include_layout.patch delete mode 100644 families/fortran/third_party/rules_dx/gcc_toolchain.runtime_libs.patch delete mode 100644 families/fortran/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch delete mode 100644 families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_config.patch delete mode 100644 families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch delete mode 100644 families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch delete mode 100644 families/fortran/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch delete mode 100644 families/fortran/third_party/rules_dx/llvm.aarch64_outline_atomics.patch delete mode 100644 families/fortran/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch delete mode 100644 families/fortran/third_party/rules_dx/llvm.libunwind_copy.patch delete mode 100644 families/fortran/third_party/rules_dx/llvm.lse_atomic_sources.patch delete mode 100644 families/fortran/third_party/rules_dx/llvm.msvc_source_directories.patch delete mode 100644 families/fortran/third_party/rules_dx/llvm.stage0_runtime_features.patch delete mode 100644 families/fortran/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch delete mode 100644 families/fortran/third_party/rules_dx/protobuf.no_crate_universe.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_android.bundle_keystore_properties.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_dart.coverage.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_dart.external_pkgsrcs.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_dx.MODULE.bazel delete mode 100644 families/fortran/third_party/rules_dx/rules_flutter.lock_extension.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_flutter.missing_font.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_flutter.registrant_javacopts.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_julia.package_annotation_version.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_julia.package_name.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_julia.portable_cpu_target.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_julia.template_action_input.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_py.pep517_msvc.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_py.venv_bin_files.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_python.single_import_lib.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_rust.msvc_pdb_output.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_swift.non_root_toolchain.patch delete mode 100644 families/fortran/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch delete mode 100644 families/fortran/third_party/rules_dx/windows_support.dx_msvc_layout.patch delete mode 100644 families/fortran/third_party/rules_dx/windows_support.host_tools.patch delete mode 100644 families/fortran/third_party/rules_dx/windows_support.hostarm64_packages.patch delete mode 100644 families/fortran/third_party/rules_dx/windows_support.rules_dx_hosts.patch delete mode 100644 families/fortran/third_party/rules_dx/windows_support.source_directory_headers.patch delete mode 100644 families/julia/.bazelrc delete mode 100644 families/julia/.bazelversion delete mode 100644 families/julia/.buildifier.json delete mode 100644 families/julia/.dx/BUILD.bazel delete mode 100644 families/julia/.dx/bazelrc/correctness.bazelrc delete mode 100644 families/julia/.dx/bazelrc/performance.bazelrc delete mode 100644 families/julia/.dx/bazelrc/resources.bazelrc delete mode 100644 families/julia/.dx/config/buildifier/base.json delete mode 100644 families/julia/.dx/config/taplo/base.toml delete mode 100644 families/julia/.dx/config/typos/base.toml delete mode 100644 families/julia/.dx/pins delete mode 100644 families/julia/BUILD.bazel delete mode 100644 families/julia/MODULE.bazel delete mode 100644 families/julia/MODULE.bazel.lock delete mode 100644 families/julia/README.md delete mode 100644 families/julia/bcr_test_module/BUILD.bazel delete mode 100644 families/julia/bcr_test_module/MODULE.bazel delete mode 100644 families/julia/dx.toml delete mode 100644 families/julia/julia/lang.json delete mode 100755 families/julia/starlark_docs_test.sh delete mode 100644 families/julia/third_party/rules_dx/.gitattributes delete mode 100644 families/julia/third_party/rules_dx/BUILD.bazel delete mode 100644 families/julia/third_party/rules_dx/aspect_rules_ts.typecheck_root_dir.patch delete mode 100644 families/julia/third_party/rules_dx/avro-cpp.iterator.patch delete mode 100644 families/julia/third_party/rules_dx/gcc_toolchain.native_include_layout.patch delete mode 100644 families/julia/third_party/rules_dx/gcc_toolchain.runtime_libs.patch delete mode 100644 families/julia/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch delete mode 100644 families/julia/third_party/rules_dx/gcc_toolchain.target_identity_config.patch delete mode 100644 families/julia/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch delete mode 100644 families/julia/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch delete mode 100644 families/julia/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch delete mode 100644 families/julia/third_party/rules_dx/llvm.aarch64_outline_atomics.patch delete mode 100644 families/julia/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch delete mode 100644 families/julia/third_party/rules_dx/llvm.libunwind_copy.patch delete mode 100644 families/julia/third_party/rules_dx/llvm.lse_atomic_sources.patch delete mode 100644 families/julia/third_party/rules_dx/llvm.msvc_source_directories.patch delete mode 100644 families/julia/third_party/rules_dx/llvm.stage0_runtime_features.patch delete mode 100644 families/julia/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch delete mode 100644 families/julia/third_party/rules_dx/protobuf.no_crate_universe.patch delete mode 100644 families/julia/third_party/rules_dx/rules_android.bundle_keystore_properties.patch delete mode 100644 families/julia/third_party/rules_dx/rules_dart.coverage.patch delete mode 100644 families/julia/third_party/rules_dx/rules_dart.external_pkgsrcs.patch delete mode 100644 families/julia/third_party/rules_dx/rules_dx.MODULE.bazel delete mode 100644 families/julia/third_party/rules_dx/rules_flutter.lock_extension.patch delete mode 100644 families/julia/third_party/rules_dx/rules_flutter.missing_font.patch delete mode 100644 families/julia/third_party/rules_dx/rules_flutter.registrant_javacopts.patch delete mode 100644 families/julia/third_party/rules_dx/rules_julia.package_annotation_version.patch delete mode 100644 families/julia/third_party/rules_dx/rules_julia.package_name.patch delete mode 100644 families/julia/third_party/rules_dx/rules_julia.portable_cpu_target.patch delete mode 100644 families/julia/third_party/rules_dx/rules_julia.template_action_input.patch delete mode 100644 families/julia/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch delete mode 100644 families/julia/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch delete mode 100644 families/julia/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch delete mode 100644 families/julia/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch delete mode 100644 families/julia/third_party/rules_dx/rules_py.pep517_msvc.patch delete mode 100644 families/julia/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch delete mode 100644 families/julia/third_party/rules_dx/rules_py.venv_bin_files.patch delete mode 100644 families/julia/third_party/rules_dx/rules_python.single_import_lib.patch delete mode 100644 families/julia/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch delete mode 100644 families/julia/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch delete mode 100644 families/julia/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch delete mode 100644 families/julia/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch delete mode 100644 families/julia/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch delete mode 100644 families/julia/third_party/rules_dx/rules_rust.msvc_pdb_output.patch delete mode 100644 families/julia/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch delete mode 100644 families/julia/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch delete mode 100644 families/julia/third_party/rules_dx/rules_swift.non_root_toolchain.patch delete mode 100644 families/julia/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch delete mode 100644 families/julia/third_party/rules_dx/windows_support.dx_msvc_layout.patch delete mode 100644 families/julia/third_party/rules_dx/windows_support.host_tools.patch delete mode 100644 families/julia/third_party/rules_dx/windows_support.hostarm64_packages.patch delete mode 100644 families/julia/third_party/rules_dx/windows_support.rules_dx_hosts.patch delete mode 100644 families/julia/third_party/rules_dx/windows_support.source_directory_headers.patch delete mode 100644 families/zig/.bazelrc delete mode 100644 families/zig/.bazelversion delete mode 100644 families/zig/.buildifier.json delete mode 100644 families/zig/.dx/BUILD.bazel delete mode 100644 families/zig/.dx/bazelrc/correctness.bazelrc delete mode 100644 families/zig/.dx/bazelrc/performance.bazelrc delete mode 100644 families/zig/.dx/bazelrc/resources.bazelrc delete mode 100644 families/zig/.dx/config/buildifier/base.json delete mode 100644 families/zig/.dx/config/taplo/base.toml delete mode 100644 families/zig/.dx/config/typos/base.toml delete mode 100644 families/zig/.dx/pins delete mode 100644 families/zig/BUILD.bazel delete mode 100644 families/zig/MODULE.bazel delete mode 100644 families/zig/MODULE.bazel.lock delete mode 100644 families/zig/README.md delete mode 100644 families/zig/bcr_test_module/BUILD.bazel delete mode 100644 families/zig/bcr_test_module/MODULE.bazel delete mode 100644 families/zig/dx.toml delete mode 100755 families/zig/starlark_docs_test.sh delete mode 100644 families/zig/third_party/rules_dx/.gitattributes delete mode 100644 families/zig/third_party/rules_dx/BUILD.bazel delete mode 100644 families/zig/third_party/rules_dx/aspect_rules_ts.typecheck_root_dir.patch delete mode 100644 families/zig/third_party/rules_dx/avro-cpp.iterator.patch delete mode 100644 families/zig/third_party/rules_dx/gcc_toolchain.native_include_layout.patch delete mode 100644 families/zig/third_party/rules_dx/gcc_toolchain.runtime_libs.patch delete mode 100644 families/zig/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch delete mode 100644 families/zig/third_party/rules_dx/gcc_toolchain.target_identity_config.patch delete mode 100644 families/zig/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch delete mode 100644 families/zig/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch delete mode 100644 families/zig/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch delete mode 100644 families/zig/third_party/rules_dx/llvm.aarch64_outline_atomics.patch delete mode 100644 families/zig/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch delete mode 100644 families/zig/third_party/rules_dx/llvm.libunwind_copy.patch delete mode 100644 families/zig/third_party/rules_dx/llvm.lse_atomic_sources.patch delete mode 100644 families/zig/third_party/rules_dx/llvm.msvc_source_directories.patch delete mode 100644 families/zig/third_party/rules_dx/llvm.stage0_runtime_features.patch delete mode 100644 families/zig/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch delete mode 100644 families/zig/third_party/rules_dx/protobuf.no_crate_universe.patch delete mode 100644 families/zig/third_party/rules_dx/rules_android.bundle_keystore_properties.patch delete mode 100644 families/zig/third_party/rules_dx/rules_dart.coverage.patch delete mode 100644 families/zig/third_party/rules_dx/rules_dart.external_pkgsrcs.patch delete mode 100644 families/zig/third_party/rules_dx/rules_dx.MODULE.bazel delete mode 100644 families/zig/third_party/rules_dx/rules_flutter.lock_extension.patch delete mode 100644 families/zig/third_party/rules_dx/rules_flutter.missing_font.patch delete mode 100644 families/zig/third_party/rules_dx/rules_flutter.registrant_javacopts.patch delete mode 100644 families/zig/third_party/rules_dx/rules_julia.package_annotation_version.patch delete mode 100644 families/zig/third_party/rules_dx/rules_julia.package_name.patch delete mode 100644 families/zig/third_party/rules_dx/rules_julia.portable_cpu_target.patch delete mode 100644 families/zig/third_party/rules_dx/rules_julia.template_action_input.patch delete mode 100644 families/zig/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch delete mode 100644 families/zig/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch delete mode 100644 families/zig/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch delete mode 100644 families/zig/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch delete mode 100644 families/zig/third_party/rules_dx/rules_py.pep517_msvc.patch delete mode 100644 families/zig/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch delete mode 100644 families/zig/third_party/rules_dx/rules_py.venv_bin_files.patch delete mode 100644 families/zig/third_party/rules_dx/rules_python.single_import_lib.patch delete mode 100644 families/zig/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch delete mode 100644 families/zig/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch delete mode 100644 families/zig/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch delete mode 100644 families/zig/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch delete mode 100644 families/zig/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch delete mode 100644 families/zig/third_party/rules_dx/rules_rust.msvc_pdb_output.patch delete mode 100644 families/zig/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch delete mode 100644 families/zig/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch delete mode 100644 families/zig/third_party/rules_dx/rules_swift.non_root_toolchain.patch delete mode 100644 families/zig/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch delete mode 100644 families/zig/third_party/rules_dx/windows_support.dx_msvc_layout.patch delete mode 100644 families/zig/third_party/rules_dx/windows_support.host_tools.patch delete mode 100644 families/zig/third_party/rules_dx/windows_support.hostarm64_packages.patch delete mode 100644 families/zig/third_party/rules_dx/windows_support.rules_dx_hosts.patch delete mode 100644 families/zig/third_party/rules_dx/windows_support.source_directory_headers.patch delete mode 100644 families/zig/zig/lang.json create mode 100644 fortran/BUILD.bazel create mode 100644 fortran/defs.bzl create mode 100644 fortran/extensions.bzl rename fortran/{rules => private}/BUILD.bazel (100%) rename fortran/{rules => private}/defs.bzl (98%) rename fortran/{rules => private}/fpm_lock.bzl (100%) rename fortran/{rules => private}/kwargs.bzl (86%) rename fortran/{ => private}/toolchain/BUILD.bazel (100%) rename fortran/{ => private}/toolchain/extensions.bzl (93%) rename fortran/{ => private}/toolchain/flags.bzl (100%) rename fortran/{ => private}/toolchain/flang_rt.BUILD.bazel (100%) rename fortran/{ => private}/toolchain/metadata_tests.bzl (98%) rename fortran/{ => private}/toolchain/pins.bzl (100%) rename fortran/{ => private}/toolchain/repos.bzl (95%) rename fortran/{ => private}/toolchain/toolchain.bzl (96%) rename {families/fortran/fortran => fortran}/tests/fixtures/calc/BUILD.bazel (83%) rename {families/fortran/fortran => fortran}/tests/fixtures/calc/calc.f90 (100%) rename {families/fortran/fortran => fortran}/tests/fixtures/calc/calc_test.f90 (100%) rename {families/fortran/fortran => fortran}/tests/negative/BUILD.bazel (96%) rename {families/fortran/fortran => fortran}/tests/negative/base_dep.f90 (100%) rename {families/fortran/fortran => fortran}/tests/negative/consumer.f90 (100%) rename {families/fortran/fortran => fortran}/tests/negative/needs_dep.f90 (100%) rename {families/fortran/fortran => fortran}/tests/negative/negative_tests.bzl (100%) rename {families/fortran/fortran => fortran}/tests/negative/provider.f90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/BUILD.bazel (93%) rename {families/fortran/fortran => fortran}/tests/runtime/c_add.c (100%) rename {families/fortran/fortran => fortran}/tests/runtime/c_add.h (100%) rename {families/fortran/fortran => fortran}/tests/runtime/calls_c_test.f90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/dot.f90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/dot_test.c (100%) rename {families/fortran/fortran => fortran}/tests/runtime/greet.f90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/io_test.F90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/kinds_a/BUILD.bazel (85%) rename {families/fortran/fortran => fortran}/tests/runtime/kinds_a/kinds.f90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/kinds_b/BUILD.bazel (86%) rename {families/fortran/fortran => fortran}/tests/runtime/kinds_b/kinds.f90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/main.f90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/same_basename_test.f90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/stats.f90 (100%) rename {families/fortran/fortran => fortran}/tests/runtime/stats_test.f90 (100%) create mode 100644 julia/BUILD.bazel create mode 100644 julia/defs.bzl rename julia/{rules => private}/BUILD.bazel (100%) rename julia/{ => private}/coverage/BUILD.bazel (92%) rename julia/{ => private}/coverage/Manifest.bazel.json (100%) rename julia/{ => private}/coverage/Manifest.toml (100%) rename julia/{ => private}/coverage/Project.toml (100%) rename julia/{ => private}/coverage/coverage.bzl (97%) rename julia/{ => private}/coverage/runner.jl (100%) rename julia/{rules => private}/defs.bzl (91%) rename julia/{rules => private}/platforms.bzl (100%) rename julia/{rules => private}/precompile_tests.bzl (100%) rename julia/{ => private}/tools/BUILD.bazel (97%) rename julia/{ => private}/tools/Manifest.bazel.json (100%) rename julia/{ => private}/tools/Manifest.toml (100%) rename julia/{ => private}/tools/Project.toml (100%) rename julia/{ => private}/tools/docs/BUILD.bazel (91%) rename julia/{ => private}/tools/docs/Manifest.bazel.json (100%) rename julia/{ => private}/tools/docs/Manifest.toml (100%) rename julia/{ => private}/tools/docs/Project.toml (100%) rename julia/{ => private}/tools/docs/patches/BUILD.bazel (100%) rename julia/{ => private}/tools/docs/patches/Documenter.patch (100%) rename julia/{ => private}/tools/docs/patches/StructUtils.patch (100%) rename julia/{ => private}/tools/format.jl (100%) rename julia/{ => private}/tools/format_cli_test.rs (100%) rename julia/{ => private}/tools/jet/BUILD.bazel (93%) rename julia/{ => private}/tools/jet/Manifest.bazel.json (100%) rename julia/{ => private}/tools/jet/Manifest.toml (100%) rename julia/{ => private}/tools/jet/Project.toml (100%) rename julia/{ => private}/tools/jet/jet.jl (100%) rename julia/{ => private}/tools/jet/jet_cli_test.rs (95%) rename julia/{ => private}/tools/jet/patches/BUILD.bazel (100%) rename julia/{ => private}/tools/jet/patches/JET.patch (100%) rename julia/{ => private}/tools/jet/patches/JET_docs.patch (100%) rename julia/{ => private}/tools/jet/patches/MacroTools.patch (100%) rename julia/{ => private}/tools/jet/testdata/buggy.jl (100%) rename julia/{ => private}/tools/jet/testdata/clean.jl (100%) rename julia/{ => private}/tools/julia_tool.bzl (100%) rename julia/{ => private}/tools/lint/BUILD.bazel (93%) rename julia/{ => private}/tools/lint/Manifest.bazel.json (100%) rename julia/{ => private}/tools/lint/Manifest.toml (100%) rename julia/{ => private}/tools/lint/Project.toml (100%) rename julia/{ => private}/tools/lint/lint.jl (100%) rename julia/{ => private}/tools/lint/lint_cli_test.rs (95%) rename julia/{ => private}/tools/lint/patches/BUILD.bazel (100%) rename julia/{ => private}/tools/lint/patches/CommonMark.patch (100%) rename julia/{ => private}/tools/lint/patches/ExceptionUnwrapping.patch (100%) rename julia/{ => private}/tools/lint/patches/JSON.patch (100%) rename julia/{ => private}/tools/lint/patches/JuliaWorkspaces.patch (100%) rename julia/{ => private}/tools/lint/testdata/buggy.jl (100%) rename julia/{ => private}/tools/lint/testdata/clean.jl (100%) rename julia/{ => private}/tools/lint/testdata/unicode.jl (100%) rename julia/{ => private}/tools/patches/BUILD.bazel (100%) rename julia/{ => private}/tools/patches/Preferences.patch (100%) rename julia/{ => private}/tools/pkg_update.jl (100%) rename julia/{rules => private}/wrapper_tests.bzl (100%) rename {families/julia/julia => julia}/tests/fixtures/hello/BUILD.bazel (85%) rename {families/julia/julia => julia}/tests/fixtures/hello/Project.toml (100%) rename {families/julia/julia => julia}/tests/fixtures/hello/app/BUILD.bazel (80%) rename {families/julia/julia => julia}/tests/fixtures/hello/app/Project.toml (100%) rename {families/julia/julia => julia}/tests/fixtures/hello/app/src/HelloApp.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/hello/greet_test.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/hello/main.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/hello/negative/BUILD.bazel (85%) rename {families/julia/julia => julia}/tests/fixtures/hello/negative/src/Broken.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/hello/negative/src/Missing.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/hello/relocate_test.rs (100%) rename {families/julia/julia => julia}/tests/fixtures/hello/src/Greet.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/BUILD.bazel (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/README.md (98%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/archive/BUILD.bazel (88%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/archive/Project.toml (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/archive/archive_test.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/archive/src/Archive.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/cli/BUILD.bazel (95%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/cli/Project.toml (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/cli/cli_test.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/cli/main.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/cli/report_test.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/cli/src/Report.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/data/BUILD.bazel (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/data/readings.tsv (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/diagnostics/BUILD.bazel (91%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/diagnostics/clean.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/diagnostics/diagnostics_test.rs (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/diagnostics/missing_dep.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/diagnostics/runtime_error.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/diagnostics/syntax_error.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/diagnostics/unformatted.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/stats/BUILD.bazel (88%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/stats/Project.toml (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/stats/src/Stats.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/stats/stats_test.jl (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/third_party/BUILD.bazel (92%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/third_party/Manifest.bazel.json (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/third_party/Manifest.toml (100%) rename {families/julia/julia => julia}/tests/fixtures/julia-app/third_party/Project.toml (100%) create mode 100644 zig/BUILD.bazel create mode 100644 zig/defs.bzl create mode 100644 zig/extensions.bzl rename zig/{rules => private}/BUILD.bazel (100%) rename zig/{rules => private}/bench_run.sh (100%) rename zig/{rules => private}/defs.bzl (95%) rename zig/{ => private}/deps/BUILD.bazel (100%) rename zig/{ => private}/deps/extensions.bzl (100%) rename zig/{ => private}/deps/lock.bzl (100%) rename zig/{ => private}/deps/lock_tests.bzl (97%) rename zig/{ => private}/deps/repos.bzl (98%) rename zig/{ => private}/tools/BUILD.bazel (100%) rename zig/{ => private}/tools/zig_tool.bzl (100%) rename {families/zig/zig => zig}/tests/fixtures/bench/BUILD.bazel (86%) rename {families/zig/zig => zig}/tests/fixtures/bench/main.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/bench/run_test.sh (100%) rename {families/zig/zig => zig}/tests/fixtures/calc/BUILD.bazel (79%) rename {families/zig/zig => zig}/tests/fixtures/calc/calc.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/calc/calc_test.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/hello/BUILD.bazel (90%) rename {families/zig/zig => zig}/tests/fixtures/hello/greet.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/hello/main.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/BUILD.bazel (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/README.md (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/catalog/BUILD.bazel (93%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/catalog/VERSION (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/catalog/catalog.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/catalog/catalog_test.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/catalog/items.tsv (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/cli/BUILD.bazel (93%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/cli/exit_codes.sh (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/cli/main.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/cli/report.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/cli/report_test.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/diagnostics/BUILD.bazel (88%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/diagnostics/clean.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/diagnostics/diagnostics_test.rs (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/diagnostics/syntax_error.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/diagnostics/type_error.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/diagnostics/unformatted.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/diagnostics/unused_error.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/digest/BUILD.bazel (93%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/digest/digest.c (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/digest/digest.h (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/digest/digest.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/digest/digest_test.zig (100%) rename {families/zig/zig => zig}/tests/fixtures/zig-app/xxhash.BUILD.bazel (100%) diff --git a/.bcr/families/fortran/metadata.template.json b/.bcr/families/fortran/metadata.template.json deleted file mode 100644 index eae5d2c221..0000000000 --- a/.bcr/families/fortran/metadata.template.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "homepage": "https://github.com/{OWNER}/{REPO}", - "maintainers": [ - { - "github": "devhusdk", - "name": "devhusdk" - } - ], - "repository": [ - "github:{OWNER}/{REPO}" - ], - "versions": [], - "yanked_versions": {} -} diff --git a/.bcr/families/fortran/presubmit.yml b/.bcr/families/fortran/presubmit.yml deleted file mode 100644 index a4011e2122..0000000000 --- a/.bcr/families/fortran/presubmit.yml +++ /dev/null @@ -1,15 +0,0 @@ -bcr_test_module: - module_path: "bcr_test_module" - matrix: - platform: - - debian11 - - ubuntu2204 - bazel: - - 9.x - tasks: - build_loads: - name: Load the Fortran rules - platform: ${{ platform }} - bazel: ${{ bazel }} - build_targets: - - "//:loads" diff --git a/.bcr/families/fortran/source.template.json b/.bcr/families/fortran/source.template.json deleted file mode 100644 index 4e9ff45580..0000000000 --- a/.bcr/families/fortran/source.template.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "integrity": "", - "strip_prefix": "rules_dx_fortran-{VERSION}", - "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_dx_fortran-{VERSION}.tar.gz" -} diff --git a/.bcr/families/julia/metadata.template.json b/.bcr/families/julia/metadata.template.json deleted file mode 100644 index eae5d2c221..0000000000 --- a/.bcr/families/julia/metadata.template.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "homepage": "https://github.com/{OWNER}/{REPO}", - "maintainers": [ - { - "github": "devhusdk", - "name": "devhusdk" - } - ], - "repository": [ - "github:{OWNER}/{REPO}" - ], - "versions": [], - "yanked_versions": {} -} diff --git a/.bcr/families/julia/presubmit.yml b/.bcr/families/julia/presubmit.yml deleted file mode 100644 index 7c01ce0be2..0000000000 --- a/.bcr/families/julia/presubmit.yml +++ /dev/null @@ -1,15 +0,0 @@ -bcr_test_module: - module_path: "bcr_test_module" - matrix: - platform: - - debian11 - - ubuntu2204 - bazel: - - 9.x - tasks: - build_loads: - name: Load the julia rules - platform: ${{ platform }} - bazel: ${{ bazel }} - build_targets: - - "//:loads" diff --git a/.bcr/families/julia/source.template.json b/.bcr/families/julia/source.template.json deleted file mode 100644 index 57cf42a398..0000000000 --- a/.bcr/families/julia/source.template.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "integrity": "", - "strip_prefix": "rules_dx_julia-{VERSION}", - "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_dx_julia-{VERSION}.tar.gz" -} diff --git a/.bcr/families/zig/metadata.template.json b/.bcr/families/zig/metadata.template.json deleted file mode 100644 index eae5d2c221..0000000000 --- a/.bcr/families/zig/metadata.template.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "homepage": "https://github.com/{OWNER}/{REPO}", - "maintainers": [ - { - "github": "devhusdk", - "name": "devhusdk" - } - ], - "repository": [ - "github:{OWNER}/{REPO}" - ], - "versions": [], - "yanked_versions": {} -} diff --git a/.bcr/families/zig/presubmit.yml b/.bcr/families/zig/presubmit.yml deleted file mode 100644 index bc77ee9507..0000000000 --- a/.bcr/families/zig/presubmit.yml +++ /dev/null @@ -1,15 +0,0 @@ -bcr_test_module: - module_path: "bcr_test_module" - matrix: - platform: - - debian11 - - ubuntu2204 - bazel: - - 9.x - tasks: - build_loads: - name: Load the zig rules - platform: ${{ platform }} - bazel: ${{ bazel }} - build_targets: - - "//:loads" diff --git a/.bcr/families/zig/source.template.json b/.bcr/families/zig/source.template.json deleted file mode 100644 index 193a409ec4..0000000000 --- a/.bcr/families/zig/source.template.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "integrity": "", - "strip_prefix": "rules_dx_zig-{VERSION}", - "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_dx_zig-{VERSION}.tar.gz" -} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9bec9f9e9..1be64d9e46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -703,7 +703,7 @@ jobs: # shellcheck disable=SC2086 set -- $BAZEL_CONFIG $BB_ARGS # shellcheck disable=SC2086 - bazel test --noshow_progress --nocache_test_results --test_output=all "$@" //tools/testing:preflight_smoke_test //cli/env:bootstrap_test //cc/tests/fixtures/hello:hello_test @rules_dx_powershell//tests/fixtures/hello:hello_test @rules_dx_zig//zig/tests/fixtures/zig-app/... @rules_dx_dart//dart/tests/fixtures/dart-app/... @rules_dx_dart//dart/tests/runtime:all //dart/tools:all @rules_dx_zig//zig/tests/fixtures/hello:all @rules_dx_julia//julia/tests/fixtures/hello:all @rules_dx_julia//julia/tests/fixtures/julia-app/... //julia/tools/... $QUALITY_TARGETS + bazel test --noshow_progress --nocache_test_results --test_output=all "$@" //tools/testing:preflight_smoke_test //cli/env:bootstrap_test //cc/tests/fixtures/hello:hello_test @rules_dx_powershell//tests/fixtures/hello:hello_test //zig/tests/fixtures/zig-app/... @rules_dx_dart//dart/tests/fixtures/dart-app/... @rules_dx_dart//dart/tests/runtime:all //dart/tools:all //zig/tests/fixtures/hello:all //julia/tests/fixtures/hello:all //julia/tests/fixtures/julia-app/... //julia/private/tools/... $QUALITY_TARGETS - name: Run the PyPI probe verification run: | # shellcheck disable=SC2086 diff --git a/BUILD.bazel b/BUILD.bazel index a6e0bf8781..30f4b1679d 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -176,17 +176,13 @@ exports_files([ "MODULE.bazel", "MODULE.bazel.lock", "README.md", - "d/README.md", - "fortran/README.md", "go/README.md", "lua/README.md", "ocaml/README.md", "perl/README.md", "php/README.md", "powershell/README.md", - "julia/README.md", "swift/README.md", - "zig/README.md", "cargo-bazel-lock.json", "package.json", "pnpm-lock.yaml", @@ -254,8 +250,8 @@ real_source_target( "CONTRIBUTING.md", "README.md", "SECURITY.md", - "d/README.md", - "fortran/README.md", + "//d:README.md", + "//fortran:README.md", "go/README.md", "//java:README.md", "//kotlin:README.md", @@ -266,10 +262,10 @@ real_source_target( "//patches:README.md", "powershell/README.md", "//python:README.md", - "julia/README.md", + "//julia:README.md", "//scala:README.md", "swift/README.md", - "zig/README.md", + "//zig:README.md", "CLAUDE.md", "RELEASING.md", "containers/README.md", diff --git a/MODULE.bazel b/MODULE.bazel index c8e6cfb5f6..41a9124438 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -291,12 +291,6 @@ local_path_override( path = "families/generation", ) -bazel_dep(name = "rules_dx_fortran", version = "0.0.0", dev_dependency = True) -local_path_override( - module_name = "rules_dx_fortran", - path = "families/fortran", -) - bazel_dep(name = "rules_dx_haskell", version = "0.0.0", dev_dependency = True) local_path_override( module_name = "rules_dx_haskell", @@ -339,24 +333,12 @@ local_path_override( path = "families/ruby", ) -bazel_dep(name = "rules_dx_zig", version = "0.0.0", dev_dependency = True) -local_path_override( - module_name = "rules_dx_zig", - path = "families/zig", -) - bazel_dep(name = "rules_dx_dart", version = "0.0.0", dev_dependency = True) local_path_override( module_name = "rules_dx_dart", path = "families/dart", ) -bazel_dep(name = "rules_dx_julia", version = "0.0.0", dev_dependency = True) -local_path_override( - module_name = "rules_dx_julia", - path = "families/julia", -) - bazel_dep(name = "rules_dx_lua", version = "0.0.0", dev_dependency = True) local_path_override( module_name = "rules_dx_lua", @@ -854,6 +836,19 @@ single_version_override( version = "0.17.0", ) +zig = use_extension("@rules_zig//zig:extensions.bzl", "zig") +zig.toolchain(zig_version = "0.17.0") + +_zig_http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +_zig_http_archive( + name = "zig_app_xxhash", + build_file = "//zig/tests/fixtures/zig-app:xxhash.BUILD.bazel", + sha256 = "aae608dfe8213dfd05d909a57718ef82f30722c392344583d3f39050c7f29a80", + strip_prefix = "xxHash-0.8.3", + urls = ["https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.3.tar.gz"], +) + # floor: equals tested bazel_dep(name = "rules_swift", version = "4.2.2") single_version_override( @@ -1069,74 +1064,84 @@ single_version_override( version = "0.8.0", ) +julia = use_extension("@rules_julia//julia:extensions.bzl", "julia") +julia.toolchain(version = "1.12.5") + +julia_pkg_dev = use_extension("@rules_julia//julia/pkg:extensions.bzl", "pkg", dev_dependency = True) +julia_pkg_dev.from_manifest( + name = "julia_app_pkgs", + lockfile = "//julia/tests/fixtures/julia-app/third_party:Manifest.bazel.json", +) +use_repo(julia_pkg_dev, julia_app_deps = "julia_app_pkgs") + julia_pkg = use_extension("@rules_julia//julia/pkg:extensions.bzl", "pkg") julia_pkg.from_manifest( name = "dx_julia_coverage", - lockfile = "//julia/coverage:Manifest.bazel.json", + lockfile = "//julia/private/coverage:Manifest.bazel.json", ) julia_pkg.from_manifest( name = "dx_julia_docs", - lockfile = "//julia/tools/docs:Manifest.bazel.json", + lockfile = "//julia/private/tools/docs:Manifest.bazel.json", ) julia_pkg.from_manifest( name = "dx_julia_format", - lockfile = "//julia/tools:Manifest.bazel.json", + lockfile = "//julia/private/tools:Manifest.bazel.json", ) julia_pkg.from_manifest( name = "dx_julia_jet", - lockfile = "//julia/tools/jet:Manifest.bazel.json", + lockfile = "//julia/private/tools/jet:Manifest.bazel.json", ) julia_pkg.from_manifest( name = "dx_julia_lint", - lockfile = "//julia/tools/lint:Manifest.bazel.json", + lockfile = "//julia/private/tools/lint:Manifest.bazel.json", ) julia_pkg.pkg_annotation( dep = "Preferences", patch_args = ["-p1"], - patches = ["//julia/tools/patches:Preferences.patch"], + patches = ["//julia/private/tools/patches:Preferences.patch"], ) julia_pkg.pkg_annotation( dep = "Documenter", patch_args = ["-p1"], - patches = ["//julia/tools/docs/patches:Documenter.patch"], + patches = ["//julia/private/tools/docs/patches:Documenter.patch"], ) julia_pkg.pkg_annotation( dep = "StructUtils", patch_args = ["-p1"], - patches = ["//julia/tools/docs/patches:StructUtils.patch"], + patches = ["//julia/private/tools/docs/patches:StructUtils.patch"], ) julia_pkg.pkg_annotation( dep = "JET", patch_args = ["-p1"], patches = [ - "//julia/tools/jet/patches:JET.patch", - "//julia/tools/jet/patches:JET_docs.patch", + "//julia/private/tools/jet/patches:JET.patch", + "//julia/private/tools/jet/patches:JET_docs.patch", ], ) julia_pkg.pkg_annotation( dep = "MacroTools", patch_args = ["-p1"], - patches = ["//julia/tools/jet/patches:MacroTools.patch"], + patches = ["//julia/private/tools/jet/patches:MacroTools.patch"], ) julia_pkg.pkg_annotation( dep = "ExceptionUnwrapping", patch_args = ["-p1"], - patches = ["//julia/tools/lint/patches:ExceptionUnwrapping.patch"], + patches = ["//julia/private/tools/lint/patches:ExceptionUnwrapping.patch"], ) julia_pkg.pkg_annotation( dep = "CommonMark@1.0.4", patch_args = ["-p1"], - patches = ["//julia/tools/lint/patches:CommonMark.patch"], + patches = ["//julia/private/tools/lint/patches:CommonMark.patch"], ) julia_pkg.pkg_annotation( dep = "JuliaWorkspaces", patch_args = ["-p1"], - patches = ["//julia/tools/lint/patches:JuliaWorkspaces.patch"], + patches = ["//julia/private/tools/lint/patches:JuliaWorkspaces.patch"], ) julia_pkg.pkg_annotation( dep = "JSON", patch_args = ["-p1"], - patches = ["//julia/tools/lint/patches:JSON.patch"], + patches = ["//julia/private/tools/lint/patches:JSON.patch"], ) use_repo(julia_pkg, "dx_julia_coverage", "dx_julia_docs", "dx_julia_format", "dx_julia_jet", "dx_julia_lint") @@ -1254,8 +1259,10 @@ ocaml.annotation( ) use_repo(ocaml, "dx_ocaml_dune", "dx_ocaml_toolchains", "ocaml_app", "ocaml_fuzz", "rules_ocaml") -fortran = use_extension("//fortran/toolchain:extensions.bzl", "fortran") -use_repo(fortran, "rules_fortran") +fortran = use_extension("//fortran:extensions.bzl", "fortran") +use_repo(fortran, "dx_fortran_toolchains", "rules_fortran") + +register_toolchains("@dx_fortran_toolchains//:all") # floor: equals tested bazel_dep(name = "lua", version = "5.4.6.bcr.1") @@ -1319,12 +1326,12 @@ haskell.lock( ) use_repo(haskell, "dx_ghc_windows_x86_64", "dx_haskell_toolchains", "haskell_app_hackage", "haskell_bench_hackage", "haskell_exe_hackage", "haskell_hlint_hackage", "haskell_nixfmt_hackage", "haskell_ormolu_hackage", "haskell_weeder_hackage", "rules_haskell") -d = use_extension("//d/toolchain:extensions.bzl", "d") +d = use_extension("//d:extensions.bzl", "d") use_repo(d, "dx_d_containers", "dx_d_dcd", "dx_d_inifiled", "dx_d_ldc_linux_x86_64", "dx_d_ldc_linux_arm64", "dx_d_ldc_macos_arm64", "dx_d_ldc_windows_x86_64", "dx_d_libddoc", "dx_d_libdparse", "dx_d_toolchains", "rules_d") register_toolchains("@dx_d_toolchains//:all") -dub = use_extension("//d/dub:extensions.bzl", "dub", dev_dependency = True) +dub = use_extension("//d:extensions.bzl", "dub", dev_dependency = True) dub.lock( name = "dub_fixture", digests = "//d/tests/fixtures/dub:dub.digests.json", diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 48f08587c3..e491a88109 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -91712,7 +91712,7 @@ "@@rules_zig+//zig:extensions.bzl%zig": { "general": { "bzlTransitiveDigest": "vTeQKV6Xl5RuIpCwuarKlx1FwNYsPvKFOklJop5h/mI=", - "usagesDigest": "4oZvnzHwYHB1wm8fYXArs6ws6rvpaUwaclTWOwYl3j4=", + "usagesDigest": "bF2Sv6TYex7RRDqZDZJEV3F6aMC2HV3YUh9tteoZSMI=", "recordedInputs": [ "REPO_MAPPING:rules_zig+,bazel_skylib bazel_skylib+", "REPO_MAPPING:rules_zig+,bazel_tools bazel_tools", diff --git a/cli/adopt/src/dependency_sets_tests.rs b/cli/adopt/src/dependency_sets_tests.rs index ceef36f7ba..11ba40d479 100644 --- a/cli/adopt/src/dependency_sets_tests.rs +++ b/cli/adopt/src/dependency_sets_tests.rs @@ -358,7 +358,7 @@ fn dub_workspace(digest_version: &str) -> (dx_test_scratch::TempDir, ResolvedSet #[test] fn dub_locks_become_dub_sets() { - let module = "dub = use_extension(\"@rules_dx//d/dub:extensions.bzl\", \"dub\")\ndub.lock(name = \"dub_deps\", lock = \"//d:dub.selections.json\", digests = \"//d:dub.digests.json\")\n"; + let module = "dub = use_extension(\"@rules_dx//d:extensions.bzl\", \"dub\")\ndub.lock(name = \"dub_deps\", lock = \"//d:dub.selections.json\", digests = \"//d:dub.digests.json\")\n"; let read = |path: &str| match path { "d/dub.sdl" => Ok(String::new()), _ => Err("none".to_owned()), @@ -374,7 +374,7 @@ fn dub_locks_become_dub_sets() { #[test] fn fpm_locks_become_fpm_sets() { - let module = "fortran = use_extension(\"@rules_dx//fortran/toolchain:extensions.bzl\", \"fortran\")\nfortran.fpm(name = \"fpm_deps\", lock = \"//f:fpm.lock\")\n"; + let module = "fortran = use_extension(\"@rules_dx//fortran:extensions.bzl\", \"fortran\")\nfortran.fpm(name = \"fpm_deps\", lock = \"//f:fpm.lock\")\n"; let read = |_: &str| Err("none".to_owned()); let registry = discover(module, &read) .expect("discovers") @@ -421,7 +421,7 @@ fn ansible_and_bicep_tags_become_sets() { #[test] fn zig_locks_become_zig_sets() { - let module = "zig = use_extension(\"@rules_dx//zig/deps:extensions.bzl\", \"zig_deps\")\nzig.lock(name = \"zig_pkgs\", lock = \"//app:build.zig.zon\", digests = \"//app:zig.digests.json\")\n"; + let module = "zig = use_extension(\"@rules_dx//zig:extensions.bzl\", \"zig_deps\")\nzig.lock(name = \"zig_pkgs\", lock = \"//app:build.zig.zon\", digests = \"//app:zig.digests.json\")\n"; let read = |_: &str| Err("none".to_owned()); let registry = discover(module, &read) .expect("discovers") diff --git a/cli/cli/src/exec/unsupported.json b/cli/cli/src/exec/unsupported.json index 7700ebcfea..bd84f35e10 100644 --- a/cli/cli/src/exec/unsupported.json +++ b/cli/cli/src/exec/unsupported.json @@ -17,7 +17,7 @@ }, "title": "Haskell" }, - "//julia/rules:unsupported": { + "//julia/private:unsupported": { "platforms": { "windows_arm64": "julialang.org and rules_julia 0.8.0 ship no Windows arm64 Julia build" }, diff --git a/cli/entrypoint/consumer_surface.txt b/cli/entrypoint/consumer_surface.txt index cf632f8bb8..3a22d0818d 100644 --- a/cli/entrypoint/consumer_surface.txt +++ b/cli/entrypoint/consumer_surface.txt @@ -6,7 +6,7 @@ bicep/rules:defs.bzl cc/rules:defs.bzl cloudformation/rules:defs.bzl cmake/rules:defs.bzl -d/rules:defs.bzl +d:defs.bzl deploy/offline:offline.bzl deploy/rules:archive.bzl deploy/rules:cloudflare.bzl @@ -28,7 +28,7 @@ go/rules:defs.bzl haskell/rules:defs.bzl java/private:defs.bzl javascript:defs.bzl -julia/rules:defs.bzl +julia:defs.bzl kotlin/private:defs.bzl kubernetes/rules:defs.bzl libs/web_server:server.bzl @@ -115,4 +115,4 @@ tools/docs/zig:defs.bzl tools/docs:aspect.bzl typescript:defs.bzl vue:defs.bzl -zig/rules:defs.bzl +zig:defs.bzl diff --git a/cli/update/src/backend.rs b/cli/update/src/backend.rs index 5c04a5bfac..c2b39c7663 100644 --- a/cli/update/src/backend.rs +++ b/cli/update/src/backend.rs @@ -938,7 +938,7 @@ pub fn plan_configured( }); }; let dir = set_dir(workspace, set)?; - let mut update = vec!["@rules_dx//julia/tools:pkg_update", "--", dir.as_str()]; + let mut update = vec!["@rules_dx//julia/private/tools:pkg_update", "--", dir.as_str()]; if let Selection::Packages(packages) = request { update.extend(packages.iter().map(String::as_str)); } diff --git a/cli/update/src/backend_tests.rs b/cli/update/src/backend_tests.rs index 99e05049d2..3db2e497c8 100644 --- a/cli/update/src/backend_tests.rs +++ b/cli/update/src/backend_tests.rs @@ -667,7 +667,7 @@ fn julia_update_runs_pkg_update_then_the_resolver() { assert_eq!( runs[0].argv[runs[0].argv.len() - 4..], [ - "@rules_dx//julia/tools:pkg_update", + "@rules_dx//julia/private/tools:pkg_update", "--", app.as_str(), "JSON" diff --git a/config/BUILD.bazel b/config/BUILD.bazel index 9190750518..373437d556 100644 --- a/config/BUILD.bazel +++ b/config/BUILD.bazel @@ -66,12 +66,12 @@ label_flag( label_flag( name = "tool_jet", - build_setting_default = "//julia/tools/jet:jet", + build_setting_default = "//julia/private/tools/jet:jet", ) label_flag( name = "tool_julialint", - build_setting_default = "//julia/tools/lint:julialint", + build_setting_default = "//julia/private/tools/lint:julialint", ) label_flag( diff --git a/d/BUILD.bazel b/d/BUILD.bazel new file mode 100644 index 0000000000..2c51b896e5 --- /dev/null +++ b/d/BUILD.bazel @@ -0,0 +1,6 @@ +exports_files([ + "README.md", + "defs.bzl", + "extensions.bzl", + "lang.json", +]) diff --git a/d/README.md b/d/README.md index 2d1d43c388..2f738d29a3 100644 --- a/d/README.md +++ b/d/README.md @@ -16,7 +16,7 @@ Run `dx init --apply demo-app` and add sources. The language is wired when its sources appear. ```python -load("@rules_dx//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_binary", "d_library", "d_test") +load("@rules_dx//d:defs.bzl", "D_COMPATIBLE_WITH", "d_binary", "d_library", "d_test") d_library( name = "greet", @@ -54,7 +54,7 @@ d_test( Windows x86_64 and Windows arm64. windows_arm64 runs the x64 LDC under emulation. Both Windows cells constrain on the `@llvm//constraints/windows/abi:msvc` ABI, because LDC's prebuilt runtime is MSVC-ABI. -- On Windows, D stdio uses ISO wide specifiers, matching cc. `//d/toolchain:msvc_iso_stdio` defines the +- On Windows, D stdio uses ISO wide specifiers, matching cc. `//d/private/toolchain:msvc_iso_stdio` defines the stdio functions druntime would otherwise take from `legacy_stdio_definitions.lib`; hermetic-llvm has no legacy mode (hermeticbuild/hermetic-llvm#871). D links the dynamic CRT (`-mscrtlib=msvcrt`). @@ -83,7 +83,7 @@ package from `code.dlang.org` through its repository cache; DUB never runs at fetch time and nothing is resolved. ```starlark -dub = use_extension("@rules_dx//d/dub:extensions.bzl", "dub") +dub = use_extension("@rules_dx//d:extensions.bzl", "dub") dub.lock( name = "dub_packages", digests = "//:dub.digests.json", diff --git a/d/defs.bzl b/d/defs.bzl new file mode 100644 index 0000000000..a2cb2f3ffc --- /dev/null +++ b/d/defs.bzl @@ -0,0 +1,22 @@ +"""Public D API.""" + +load( + "//d/private:defs.bzl", + _D_CELLS = "D_CELLS", + _D_COMPATIBLE_WITH = "D_COMPATIBLE_WITH", + _d_bench = "d_bench", + _d_binary = "d_binary", + _d_fuzz_test = "d_fuzz_test", + _d_library = "d_library", + _d_quality_srcs = "d_quality_srcs", + _d_test = "d_test", +) + +D_CELLS = _D_CELLS +D_COMPATIBLE_WITH = _D_COMPATIBLE_WITH +d_library = _d_library +d_binary = _d_binary +d_test = _d_test +d_fuzz_test = _d_fuzz_test +d_bench = _d_bench +d_quality_srcs = _d_quality_srcs diff --git a/d/extensions.bzl b/d/extensions.bzl new file mode 100644 index 0000000000..025c1523c0 --- /dev/null +++ b/d/extensions.bzl @@ -0,0 +1,7 @@ +"""Public D module extensions.""" + +load("//d/private/dub:extensions.bzl", _dub = "dub") +load("//d/private/toolchain:extensions.bzl", _d = "d") + +d = _d +dub = _dub diff --git a/d/lang.json b/d/lang.json index 2f232b5c43..7630bcda46 100644 --- a/d/lang.json +++ b/d/lang.json @@ -2,7 +2,7 @@ "$schema": "../modules/lang.schema.json", "name": "d", "title": "D", - "family": "d", + "family": "core", "ecosystems": [ "dub" ], @@ -14,7 +14,7 @@ "tools": [], "platforms": [], "pins": [ - "toolchain/pins.bzl" + "private/toolchain/pins.bzl" ], "entry_points": [ "d_quality_srcs", diff --git a/d/rules/BUILD.bazel b/d/private/BUILD.bazel similarity index 97% rename from d/rules/BUILD.bazel rename to d/private/BUILD.bazel index 09cea01a75..415f938ecd 100644 --- a/d/rules/BUILD.bazel +++ b/d/private/BUILD.bazel @@ -1,4 +1,4 @@ -load("//d/toolchain:pins.bzl", "LDC_CELLS") +load("//d/private/toolchain:pins.bzl", "LDC_CELLS") load("//libs/starlark:conformance.bzl", "dx_wrapper_contract_tests") load("//libs/starlark:defs.bzl", "expect_equal") load("//quality:fixtures.bzl", "real_source_target") diff --git a/d/rules/defs.bzl b/d/private/defs.bzl similarity index 99% rename from d/rules/defs.bzl rename to d/private/defs.bzl index c39fac7e79..e8b838023b 100644 --- a/d/rules/defs.bzl +++ b/d/private/defs.bzl @@ -102,7 +102,7 @@ def _string_srcs(name, kwargs): def _cover(kwargs): """Adds ldc's -cov to dopts under bazel coverage.""" return dx_append_flags(kwargs, "dopts", select({ - Label("//d/rules:coverage"): ["-cov"], + Label("//d/private:coverage"): ["-cov"], "//conditions:default": [], })) diff --git a/d/dub/BUILD.bazel b/d/private/dub/BUILD.bazel similarity index 100% rename from d/dub/BUILD.bazel rename to d/private/dub/BUILD.bazel diff --git a/d/dub/extensions.bzl b/d/private/dub/extensions.bzl similarity index 100% rename from d/dub/extensions.bzl rename to d/private/dub/extensions.bzl diff --git a/d/dub/lock.bzl b/d/private/dub/lock.bzl similarity index 100% rename from d/dub/lock.bzl rename to d/private/dub/lock.bzl diff --git a/d/dub/lock_tests.bzl b/d/private/dub/lock_tests.bzl similarity index 93% rename from d/dub/lock_tests.bzl rename to d/private/dub/lock_tests.bzl index c9c053a338..c667cad302 100644 --- a/d/dub/lock_tests.bzl +++ b/d/private/dub/lock_tests.bzl @@ -19,12 +19,12 @@ def _checks(): path_dep = analyze("hub", _selections({"a": {"path": "../a"}}), "") bad_version = parse_selections(json.encode({"fileVersion": 2, "versions": {}})) bad_sidecar = analyze("hub", _selections({}), "{\"version\": 1}") - build = spoke_build("a", {"stringImportPaths": ["views"]}, ["source", "views"], ["hub__b"], "//d/rules:defs.bzl") - custom = spoke_build("a", {"sourcePaths": ["lib/"], "importPaths": ["inc"]}, [], [], "//d/rules:defs.bzl") - files = spoke_build("a", {"sourceFiles": ["a.d"], "importPaths": ["."]}, [], [], "//d/rules:defs.bzl") - views_default = spoke_build("a", {}, ["source", "views"], [], "//d/rules:defs.bzl") - no_views = spoke_build("a", {}, ["source"], [], "//d/rules:defs.bzl") - explicit = spoke_build("a", {"stringImportPaths": ["res"]}, ["source", "views"], [], "//d/rules:defs.bzl") + build = spoke_build("a", {"stringImportPaths": ["views"]}, ["source", "views"], ["hub__b"], "//d/private:defs.bzl") + custom = spoke_build("a", {"sourcePaths": ["lib/"], "importPaths": ["inc"]}, [], [], "//d/private:defs.bzl") + files = spoke_build("a", {"sourceFiles": ["a.d"], "importPaths": ["."]}, [], [], "//d/private:defs.bzl") + views_default = spoke_build("a", {}, ["source", "views"], [], "//d/private:defs.bzl") + no_views = spoke_build("a", {}, ["source"], [], "//d/private:defs.bzl") + explicit = spoke_build("a", {"stringImportPaths": ["res"]}, ["source", "views"], [], "//d/private:defs.bzl") return [ expect_equal("a good selection has no errors", ok.errors, []), expect_equal("pinned packages carry the digest", ok.packages["b"].sha256, _SHA), diff --git a/d/dub/repos.bzl b/d/private/dub/repos.bzl similarity index 98% rename from d/dub/repos.bzl rename to d/private/dub/repos.bzl index 491c49315e..a803c8abc4 100644 --- a/d/dub/repos.bzl +++ b/d/private/dub/repos.bzl @@ -3,7 +3,7 @@ load("//libs/starlark:repo.bzl", "hub_repo") load(":lock.bzl", "analyze", "dependency_names", "hub_package_build", "hub_root_build", "pin_entry_json", "spoke_build") -_DEFS_BZL = str(Label("//d/rules:defs.bzl")) +_DEFS_BZL = str(Label("//d/private:defs.bzl")) def _package_impl(rctx): attrs = rctx.attr diff --git a/d/rules/kwargs.bzl b/d/private/kwargs.bzl similarity index 65% rename from d/rules/kwargs.bzl rename to d/private/kwargs.bzl index ddb3345c6d..4e26141804 100644 --- a/d/rules/kwargs.bzl +++ b/d/private/kwargs.bzl @@ -1,10 +1,10 @@ -load("//d/toolchain:pins.bzl", "LDC_CELLS") +load("//d/private/toolchain:pins.bzl", "LDC_CELLS") load("//libs/starlark:cells.bzl", "cells_compatible_with") load("//libs/starlark:wrapper.bzl", "dx_language_kwargs") D_CELLS = sorted(LDC_CELLS.keys()) -D_COMPATIBLE_WITH = cells_compatible_with(LDC_CELLS, "//d/toolchain", D_CELLS, unsupported = True) +D_COMPATIBLE_WITH = cells_compatible_with(LDC_CELLS, "//d/private/toolchain", D_CELLS, unsupported = True) def d_kwargs(kwargs): """Returns kwargs with the D platform guard appended.""" diff --git a/d/toolchain/BUILD.bazel b/d/private/toolchain/BUILD.bazel similarity index 100% rename from d/toolchain/BUILD.bazel rename to d/private/toolchain/BUILD.bazel diff --git a/d/toolchain/extensions.bzl b/d/private/toolchain/extensions.bzl similarity index 96% rename from d/toolchain/extensions.bzl rename to d/private/toolchain/extensions.bzl index c48b43cf6f..141844263a 100644 --- a/d/toolchain/extensions.bzl +++ b/d/private/toolchain/extensions.bzl @@ -1,4 +1,4 @@ -"""Module extension for d/toolchain.""" +"""Module extension for d/private/toolchain.""" load("//libs/starlark:repo.bzl", "hub_repo", "pinned_archive") load(":pins.bzl", "LDC_CELLS", "RULES_D_SHA256", "RULES_D_URL", "RULES_D_VERSION", "TOOL_SOURCES") diff --git a/d/toolchain/metadata_tests.bzl b/d/private/toolchain/metadata_tests.bzl similarity index 100% rename from d/toolchain/metadata_tests.bzl rename to d/private/toolchain/metadata_tests.bzl diff --git a/d/toolchain/msvc_iso_stdio.c b/d/private/toolchain/msvc_iso_stdio.c similarity index 100% rename from d/toolchain/msvc_iso_stdio.c rename to d/private/toolchain/msvc_iso_stdio.c diff --git a/d/toolchain/pins.bzl b/d/private/toolchain/pins.bzl similarity index 97% rename from d/toolchain/pins.bzl rename to d/private/toolchain/pins.bzl index 9a4a0eaf35..3616336ba2 100644 --- a/d/toolchain/pins.bzl +++ b/d/private/toolchain/pins.bzl @@ -19,7 +19,7 @@ _WINDOWS_ARCHIVE = "ldc2-" + LDC_VERSION + "-windows-x64.7z" _WINDOWS_SHA256 = "60ae3d5e34287aa25433c7550520060a52f9f212e3d5ff6472a9067d8d17e47e" -# druntime links legacy_stdio_definitions.lib; drop it and use //d/toolchain:msvc_iso_stdio instead (#6948). +# druntime links legacy_stdio_definitions.lib; drop it and use //d/private/toolchain:msvc_iso_stdio instead (#6948). _WINDOWS_LINKOPTS = ["/NODEFAULTLIB:legacy_stdio_definitions.lib"] _WINDOWS_ADDON = struct( @@ -96,7 +96,7 @@ LDC_CELLS = { linkopts = _WINDOWS_LINKOPTS, phobos = "lib-windows-arm64/phobos2-ldc.lib", runtime = [], - runtime_deps = ["//d/toolchain:msvc_iso_stdio"], + runtime_deps = ["//d/private/toolchain:msvc_iso_stdio"], sha256 = _WINDOWS_SHA256, strip_prefix = "ldc2-" + LDC_VERSION + "-windows-x64", wrapper = False, @@ -114,7 +114,7 @@ LDC_CELLS = { linkopts = _WINDOWS_LINKOPTS, phobos = "lib/phobos2-ldc.lib", runtime = [], - runtime_deps = ["//d/toolchain:msvc_iso_stdio"], + runtime_deps = ["//d/private/toolchain:msvc_iso_stdio"], sha256 = _WINDOWS_SHA256, strip_prefix = "ldc2-" + LDC_VERSION + "-windows-x64", wrapper = False, diff --git a/d/toolchain/repos.bzl b/d/private/toolchain/repos.bzl similarity index 100% rename from d/toolchain/repos.bzl rename to d/private/toolchain/repos.bzl diff --git a/d/tools/BUILD.bazel b/d/private/tools/BUILD.bazel similarity index 100% rename from d/tools/BUILD.bazel rename to d/private/tools/BUILD.bazel diff --git a/d/rules/wrapper_tests.bzl b/d/private/wrapper_tests.bzl similarity index 100% rename from d/rules/wrapper_tests.bzl rename to d/private/wrapper_tests.bzl diff --git a/d/tests/fixtures/bench/BUILD.bazel b/d/tests/fixtures/bench/BUILD.bazel index fde73b9637..f403792477 100644 --- a/d/tests/fixtures/bench/BUILD.bazel +++ b/d/tests/fixtures/bench/BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_shell//shell:sh_test.bzl", "sh_test") -load("//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_bench") +load("//d:defs.bzl", "D_COMPATIBLE_WITH", "d_bench") load("//libs/starlark:fuzz_bench_tests.bzl", "dx_runner_attr_test") package( diff --git a/d/tests/fixtures/cc_interop/BUILD.bazel b/d/tests/fixtures/cc_interop/BUILD.bazel index c092fbb33b..eb4190a343 100644 --- a/d/tests/fixtures/cc_interop/BUILD.bazel +++ b/d/tests/fixtures/cc_interop/BUILD.bazel @@ -1,5 +1,5 @@ load("//cc/rules:defs.bzl", "cc_library") -load("//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_binary") +load("//d:defs.bzl", "D_COMPATIBLE_WITH", "d_binary") load("//tools/testing:hello_output.bzl", "dx_hello_output_test") package( diff --git a/d/tests/fixtures/coverage/BUILD.bazel b/d/tests/fixtures/coverage/BUILD.bazel index dec0f3d143..e319305fb1 100644 --- a/d/tests/fixtures/coverage/BUILD.bazel +++ b/d/tests/fixtures/coverage/BUILD.bazel @@ -1,5 +1,5 @@ -load("//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_library", "d_test") -load("//d/rules:wrapper_tests.bzl", "d_coverage_env_test") +load("//d:defs.bzl", "D_COMPATIBLE_WITH", "d_library", "d_test") +load("//d/private:wrapper_tests.bzl", "d_coverage_env_test") load("//quality:fixtures.bzl", "real_source_target") package( diff --git a/d/tests/fixtures/d-app/diagnostics/BUILD.bazel b/d/tests/fixtures/d-app/diagnostics/BUILD.bazel index 8b4b801cb2..41258391d8 100644 --- a/d/tests/fixtures/d-app/diagnostics/BUILD.bazel +++ b/d/tests/fixtures/d-app/diagnostics/BUILD.bazel @@ -1,6 +1,6 @@ # gazelle:exclude *.d -load("//d/rules:defs.bzl", "D_COMPATIBLE_WITH") +load("//d:defs.bzl", "D_COMPATIBLE_WITH") load("//libs/starlark:cells.bzl", "cell_setting") load("//quality:fixtures.bzl", "real_source_target") load("//rust/rules:defs.bzl", "rust_test") @@ -19,7 +19,7 @@ alias( tags = ["manual"], testonly = True, actual = select( - {cell_setting("//d/toolchain", cell): "@dx_d_ldc_%s//:dmd" % cell for cell in _CELLS}, + {cell_setting("//d/private/toolchain", cell): "@dx_d_ldc_%s//:dmd" % cell for cell in _CELLS}, no_match_error = "the D diagnostics test runs on the pinned LDC cells", ), ) diff --git a/d/tests/fixtures/d-app/source/BUILD.bazel b/d/tests/fixtures/d-app/source/BUILD.bazel index 90bbf051be..e93260f774 100644 --- a/d/tests/fixtures/d-app/source/BUILD.bazel +++ b/d/tests/fixtures/d-app/source/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_binary") +load("@rules_dx//d:defs.bzl", "D_COMPATIBLE_WITH", "d_binary") load("@rules_dx//quality:fixtures.bzl", "real_source_target") load("@rules_dx//tools/testing:hello_output.bzl", "dx_hello_output_test") diff --git a/d/tests/fixtures/d-app/source/base/BUILD.bazel b/d/tests/fixtures/d-app/source/base/BUILD.bazel index 004aaaca72..0ddc5f6015 100644 --- a/d/tests/fixtures/d-app/source/base/BUILD.bazel +++ b/d/tests/fixtures/d-app/source/base/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_library", "d_test") +load("@rules_dx//d:defs.bzl", "D_COMPATIBLE_WITH", "d_library", "d_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") d_library( diff --git a/d/tests/fixtures/d-app/source/cli/BUILD.bazel b/d/tests/fixtures/d-app/source/cli/BUILD.bazel index 76ec400890..7de670a5e2 100644 --- a/d/tests/fixtures/d-app/source/cli/BUILD.bazel +++ b/d/tests/fixtures/d-app/source/cli/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_library", "d_test") +load("@rules_dx//d:defs.bzl", "D_COMPATIBLE_WITH", "d_library", "d_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") d_library( diff --git a/d/tests/fixtures/fuzz/BUILD.bazel b/d/tests/fixtures/fuzz/BUILD.bazel index 8e4e0d9957..1c6ed01c7b 100644 --- a/d/tests/fixtures/fuzz/BUILD.bazel +++ b/d/tests/fixtures/fuzz/BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_shell//shell:sh_test.bzl", "sh_test") -load("//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_fuzz_test") +load("//d:defs.bzl", "D_COMPATIBLE_WITH", "d_fuzz_test") load("//libs/starlark:fuzz_bench_tests.bzl", "dx_runner_attr_test") package( diff --git a/d/tests/fixtures/hello/BUILD.bazel b/d/tests/fixtures/hello/BUILD.bazel index 82af6bf8ae..1a59043879 100644 --- a/d/tests/fixtures/hello/BUILD.bazel +++ b/d/tests/fixtures/hello/BUILD.bazel @@ -1,5 +1,5 @@ -load("//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_binary", "d_library", "d_test") -load("//d/rules:wrapper_tests.bzl", "d_coverage_env_test") +load("//d:defs.bzl", "D_COMPATIBLE_WITH", "d_binary", "d_library", "d_test") +load("//d/private:wrapper_tests.bzl", "d_coverage_env_test") load("//quality:fixtures.bzl", "real_source_target") load("//tools/testing:hello_output.bzl", "dx_hello_output_test") diff --git a/deploy/rules/image_demo/BUILD.bazel b/deploy/rules/image_demo/BUILD.bazel index 387d8eb7bb..6df1fd71a1 100644 --- a/deploy/rules/image_demo/BUILD.bazel +++ b/deploy/rules/image_demo/BUILD.bazel @@ -7,7 +7,7 @@ load("//go/rules:defs.bzl", "go_binary") load("//java:defs.bzl", "java_binary") load("//python:defs.bzl", "python_binary") load("//rust/rules:defs.bzl", "rust_binary") -load("//zig/rules:defs.bzl", "zig_binary") +load("//zig:defs.bzl", "zig_binary") rust_binary( name = "hello", diff --git a/docs/cli/commands/README.md b/docs/cli/commands/README.md index d8b12881c0..0f0404a50d 100644 --- a/docs/cli/commands/README.md +++ b/docs/cli/commands/README.md @@ -226,7 +226,7 @@ Language rules: - `@rules_dx//dockerfile/rules:defs.bzl`: Dockerfiles. - `@rules_dx//make/rules:defs.bzl`: Makefiles. - `@rules_dx//cmake/rules:defs.bzl`: CMake files. -- `@rules_dx//d/rules:defs.bzl`: D. +- `@rules_dx//d:defs.bzl`: D. - `@rules_dx//elixir:defs.bzl`: Elixir. - `@rules_dx//erlang:defs.bzl`: Erlang. - `@rules_dx_dotnet//fsharp/rules:defs.bzl`: F#. @@ -237,7 +237,7 @@ Language rules: - `@rules_dx//ansible/rules:defs.bzl`: Ansible. - `@rules_dx//bicep/rules:defs.bzl`: Bicep. - `@rules_dx//cloudformation/rules:defs.bzl`: CloudFormation. -- `@rules_dx//julia/rules:defs.bzl`: Julia. +- `@rules_dx//julia:defs.bzl`: Julia. - `@rules_dx//kotlin:defs.bzl`: Kotlin. - `@rules_dx//lua/rules:defs.bzl`: Lua. - `@rules_dx//kubernetes/rules:defs.bzl`: Kubernetes. @@ -256,7 +256,7 @@ Language rules: - `@rules_dx//terraform/rules:defs.bzl`: Terraform. - `@rules_dx//typescript:defs.bzl`: TypeScript. - `@rules_dx//vue:defs.bzl`: Vue. -- `@rules_dx//zig/rules:defs.bzl`: Zig. +- `@rules_dx//zig:defs.bzl`: Zig. ### Rule names @@ -275,7 +275,7 @@ dx rule that wraps it. | `@rules_cc//cc:objc_library.bzl` | `objc_library` | `@rules_dx//cc/rules:defs.bzl` | `objc_library` | | `@rules_dotnet//dotnet:defs.bzl` | `csharp_binary`, `csharp_library`, `csharp_test` | `@rules_dx_dotnet//csharp/rules:defs.bzl` | `csharp_binary`, `csharp_library`, `csharp_test` | | `@rules_cuda//cuda:defs.bzl` | `cuda_library`, `cuda_objects` | `@rules_dx_cuda//rules:defs.bzl` | `cuda_library`, `cuda_objects` | -| `@rules_d//d:defs.bzl` | `d_binary`, `d_library`, `d_test` | `@rules_dx//d/rules:defs.bzl` | `d_binary`, `d_library`, `d_test` | +| `@rules_d//d:defs.bzl` | `d_binary`, `d_library`, `d_test` | `@rules_dx//d:defs.bzl` | `d_binary`, `d_library`, `d_test` | | `@rules_elixir//:elixir_app.bzl` | `elixir_app` | `@rules_dx//elixir:defs.bzl` | `elixir_app` | | `@rules_elixir//:ex_unit_test.bzl` | `ex_unit_test` | `@rules_dx//elixir:defs.bzl` | `elixir_test` | | `@rules_erlang//:erlang_app.bzl` | `erlang_app`, `test_erlang_app` | `@rules_dx//erlang:defs.bzl` | `erlang_app`, `erlang_test_app` | @@ -291,7 +291,7 @@ dx rule that wraps it. | `@aspect_rules_js//js:defs.bzl` | `js_library` | `@rules_dx//javascript:defs.bzl` | `javascript_library` | | `@aspect_rules_js//js:defs.bzl` | `js_test` | `@rules_dx//javascript:defs.bzl` | `javascript_test` | | `@aspect_rules_jest//jest:defs.bzl` | `jest_test` | `@rules_dx//javascript:defs.bzl` | `javascript_test` | -| `@rules_julia//julia:defs.bzl` | `julia_binary`, `julia_library`, `julia_test` | `@rules_dx//julia/rules:defs.bzl` | `julia_binary`, `julia_library`, `julia_test` | +| `@rules_julia//julia:defs.bzl` | `julia_binary`, `julia_library`, `julia_test` | `@rules_dx//julia:defs.bzl` | `julia_binary`, `julia_library`, `julia_test` | | `@rules_kotlin//kotlin:jvm.bzl` | `kt_jvm_binary`, `kt_jvm_library`, `kt_jvm_test` | `@rules_dx//kotlin:defs.bzl` | `kotlin_binary`, `kotlin_library`, `kotlin_test` | | `@rules_perl//perl:defs.bzl` | `perl_binary`, `perl_library`, `perl_test` | `@rules_dx//perl/rules:defs.bzl` | `perl_binary`, `perl_library`, `perl_test` | | `@rules_powershell//powershell:defs.bzl` | `pwsh_binary`, `pwsh_library`, `pwsh_test` | `@rules_dx//powershell/rules:defs.bzl` | `powershell_binary`, `powershell_library`, `powershell_test` | @@ -306,7 +306,7 @@ dx rule that wraps it. | `@aspect_rules_js//js:defs.bzl` | `js_test` | `@rules_dx//typescript:defs.bzl` | `typescript_test` | | `@aspect_rules_jest//jest:defs.bzl` | `jest_test` | `@rules_dx//typescript:defs.bzl` | `typescript_test` | | `@aspect_rules_js//js:defs.bzl` | `js_library` | `@rules_dx//vue:defs.bzl` | `vue_library` | -| `@rules_zig//zig:defs.bzl` | `zig_binary`, `zig_library`, `zig_test` | `@rules_dx//zig/rules:defs.bzl` | `zig_binary`, `zig_library`, `zig_test` | +| `@rules_zig//zig:defs.bzl` | `zig_binary`, `zig_library`, `zig_test` | `@rules_dx//zig:defs.bzl` | `zig_binary`, `zig_library`, `zig_test` | | | | `@rules_dx//ansible/rules:defs.bzl` | `ansible_library` | | | | `@rules_dx//api_spec/rules:defs.bzl` | `api_spec_library` | | | | `@rules_dx//appimage:defs.bzl` | `appimage_package` | @@ -329,9 +329,12 @@ dx rule that wraps it. | | | `@rules_dx//cc/rules:defs.bzl` | `cc_param_file_features` | | | | `@rules_dx//cloudformation/rules:defs.bzl` | `cloudformation_library` | | | | `@rules_dx//cmake/rules:defs.bzl` | `cmake_library` | -| | | `@rules_dx//d/rules:defs.bzl` | `d_bench` | -| | | `@rules_dx//d/rules:defs.bzl` | `d_fuzz_test` | -| | | `@rules_dx//d/rules:defs.bzl` | `d_quality_srcs` | +| | | `@rules_dx//d/private:defs.bzl` | `d_bench` | +| | | `@rules_dx//d/private:defs.bzl` | `d_binary` | +| | | `@rules_dx//d/private:defs.bzl` | `d_fuzz_test` | +| | | `@rules_dx//d/private:defs.bzl` | `d_library` | +| | | `@rules_dx//d/private:defs.bzl` | `d_quality_srcs` | +| | | `@rules_dx//d/private:defs.bzl` | `d_test` | | | | `@rules_dx//dart/rules:defs.bzl` | `dart_bench` | | | | `@rules_dx//dart/rules:defs.bzl` | `dart_binary` | | | | `@rules_dx//dart/rules:defs.bzl` | `dart_js_binary` | @@ -448,10 +451,10 @@ dx rule that wraps it. | | | `@rules_dx//flutter/rules:defs.bzl` | `flutter_test` | | | | `@rules_dx//flutter/rules:defs.bzl` | `flutter_web_app` | | | | `@rules_dx//flutter/rules:defs.bzl` | `flutter_web_bundle` | -| | | `@rules_dx//fortran/rules:defs.bzl` | `fortran_binary` | -| | | `@rules_dx//fortran/rules:defs.bzl` | `fortran_library` | -| | | `@rules_dx//fortran/rules:defs.bzl` | `fortran_test` | -| | | `@rules_dx//fortran/rules:defs.bzl` | `library_name` | +| | | `@rules_dx//fortran/private:defs.bzl` | `fortran_binary` | +| | | `@rules_dx//fortran/private:defs.bzl` | `fortran_library` | +| | | `@rules_dx//fortran/private:defs.bzl` | `fortran_test` | +| | | `@rules_dx//fortran/private:defs.bzl` | `library_name` | | | | `@rules_dx//go/rules:defs.bzl` | `go_bench` | | | | `@rules_dx//go/rules:defs.bzl` | `go_fuzz_test` | | | | `@rules_dx//haskell/rules:defs.bzl` | `haskell_bench` | @@ -471,7 +474,10 @@ dx rule that wraps it. | | | `@rules_dx//javascript/private:defs.bzl` | `javascript_test` | | | | `@rules_dx//javascript/private:defs.bzl` | `javascript_test_rejection` | | | | `@rules_dx//javascript/private:defs.bzl` | `javascript_wasm_bindgen_library` | -| | | `@rules_dx//julia/rules:defs.bzl` | `julia_standalone_binary` | +| | | `@rules_dx//julia/private:defs.bzl` | `julia_binary` | +| | | `@rules_dx//julia/private:defs.bzl` | `julia_library` | +| | | `@rules_dx//julia/private:defs.bzl` | `julia_standalone_binary` | +| | | `@rules_dx//julia/private:defs.bzl` | `julia_test` | | | | `@rules_dx//kotlin/private:defs.bzl` | `kotlin_bench` | | | | `@rules_dx//kotlin/private:defs.bzl` | `kotlin_binary` | | | | `@rules_dx//kotlin/private:defs.bzl` | `kotlin_fuzz_test` | @@ -666,8 +672,11 @@ dx rule that wraps it. | | | `@rules_dx//vue/private:defs.bzl` | `vue_build` | | | | `@rules_dx//vue/private:defs.bzl` | `vue_library` | | | | `@rules_dx//vue/private:defs.bzl` | `vue_test` | -| | | `@rules_dx//zig/rules:defs.bzl` | `zig_bench` | -| | | `@rules_dx//zig/rules:defs.bzl` | `zig_import_name` | +| | | `@rules_dx//zig/private:defs.bzl` | `zig_bench` | +| | | `@rules_dx//zig/private:defs.bzl` | `zig_binary` | +| | | `@rules_dx//zig/private:defs.bzl` | `zig_import_name` | +| | | `@rules_dx//zig/private:defs.bzl` | `zig_library` | +| | | `@rules_dx//zig/private:defs.bzl` | `zig_test` | Packaging and deploy: diff --git a/docs/cli/commands/audit-update.md b/docs/cli/commands/audit-update.md index 1727b5e18c..162a0e4756 100644 --- a/docs/cli/commands/audit-update.md +++ b/docs/cli/commands/audit-update.md @@ -448,9 +448,9 @@ Review a bump pull request by reading the diff of `.dx/pins` and the list of new | `go_deps.from_file` with `go_mod` | `go` | `go_mod` | `go.sum` beside it | | `ruby.bundle_fetch` | `name`, default `bundle` | `gemfile` | `gemfile_lock` | | `composer.lock` of `@rules_dx//php/composer:extensions.bzl` | `name` | `composer.json` beside the lock | `lock`, `digests` | -| `dub.lock` of `@rules_dx//d/dub:extensions.bzl` | `name` | `dub.json` or `dub.sdl` beside `lock` | `lock`, `digests` | -| `fortran.fpm` of `@rules_dx//fortran/toolchain:extensions.bzl` | `name` | `fpm.toml` beside the lock | `lock` | -| `zig_deps.lock` of `@rules_dx//zig/deps:extensions.bzl` | `name` | `build.zig.zon` beside `lock` | `digests` | +| `dub.lock` of `@rules_dx//d:extensions.bzl` | `name` | `dub.json` or `dub.sdl` beside `lock` | `lock`, `digests` | +| `fortran.fpm` of `@rules_dx//fortran:extensions.bzl` | `name` | `fpm.toml` beside the lock | `lock` | +| `zig_deps.lock` of `@rules_dx//zig:extensions.bzl` | `name` | `build.zig.zon` beside `lock` | `digests` | | `cpan.install` of `@rules_perl//perl/cpan:extensions.bzl` | `name` | `cpanfile` beside the lock | `cpanfile.snapshot` and the `lock` JSON | | `pub.from_lock` of `@rules_dart//dart/pub:extensions.bzl`, `flutter.pub` of rules_flutter | `name` | `pubspec.yaml` beside the lock | `pubspec.lock` | | Conan `BazelDeps` `conan_deps_module_extension.bzl` | `conan` | `conanfile.txt` or `conanfile.py` beside the .bzl or in its parent | `conan.lock` beside the conanfile | @@ -532,7 +532,7 @@ composer.lock( ### dub ```starlark -dub = use_extension("@rules_dx//d/dub:extensions.bzl", "dub") +dub = use_extension("@rules_dx//d:extensions.bzl", "dub") dub.lock( name = "dub_deps", digests = "//d:dub.digests.json", @@ -548,7 +548,7 @@ dub.lock( ### fpm ```starlark -fortran = use_extension("@rules_dx//fortran/toolchain:extensions.bzl", "fortran") +fortran = use_extension("@rules_dx//fortran:extensions.bzl", "fortran") fortran.fpm( name = "fpm_deps", lock = "//f:fpm.lock", @@ -562,7 +562,7 @@ fortran.fpm( ### zig ```starlark -zig_deps = use_extension("@rules_dx//zig/deps:extensions.bzl", "zig_deps") +zig_deps = use_extension("@rules_dx//zig:extensions.bzl", "zig_deps") zig_deps.lock( name = "zig_packages", digests = "//:zig.digests.json", diff --git a/docs/cli/commands/bench.md b/docs/cli/commands/bench.md index 907d5a1e7d..1a57502fb7 100644 --- a/docs/cli/commands/bench.md +++ b/docs/cli/commands/bench.md @@ -48,7 +48,7 @@ A target that passes but wrote no `dx-bench.json`, or wrote an invalid one, fail Scopes: same as `dx test`. With no scope, it runs `//...`. -D: `d_bench(name, srcs)` from `//d/rules:defs.bzl` is a `d_binary` that writes `dx-bench.json` itself, usually from `std.datetime.stopwatch.benchmark`. +D: `d_bench(name, srcs)` from `//d:defs.bzl` is a `d_binary` that writes `dx-bench.json` itself, usually from `std.datetime.stopwatch.benchmark`. Rust: `rust_bench` from `//rust/rules:defs.bzl` runs a criterion or `#[bench]` target with `--output-format bencher` and writes `dx-bench.json` in ns/iter. Gazelle turns `[[bench]]` entries with `harness = false` into `rust_bench` targets. diff --git a/docs/cli/commands/fuzz.md b/docs/cli/commands/fuzz.md index 2b01d9fc2a..da5fa983d1 100644 --- a/docs/cli/commands/fuzz.md +++ b/docs/cli/commands/fuzz.md @@ -18,7 +18,7 @@ Every `_fuzz_test` macro has the same shape. `` is the manual `dx-fu Go: `go_fuzz_test(name, target = "FuzzParse", srcs = ..., ...)` from `//go/rules:defs.bzl` declares the test, tags it and adds the `_run` runner. -D: `d_fuzz_test(name, srcs)` from `//d/rules:defs.bzl` builds with LDC's `-fsanitize=fuzzer,address` and the pinned LLVM's libFuzzer. `srcs` define `LLVMFuzzerTestOneInput`, for example through `ldc.libfuzzer`. +D: `d_fuzz_test(name, srcs)` from `//d:defs.bzl` builds with LDC's `-fsanitize=fuzzer,address` and the pinned LLVM's libFuzzer. `srcs` define `LLVMFuzzerTestOneInput`, for example through `ldc.libfuzzer`. Python: `python_fuzz_test(name, srcs, main, deps = ["@pypi//atheris"])` from `//python:defs.bzl` declares a binary that calls `atheris.Setup` and `atheris.Fuzz`, tags it and adds the `_run` runner. Manual and Linux x86_64 only: there is no atheris wheel for Windows. diff --git a/families/fortran/.bazeliskrc b/families/fortran/.bazeliskrc deleted file mode 100644 index c535fc04f7..0000000000 --- a/families/fortran/.bazeliskrc +++ /dev/null @@ -1 +0,0 @@ -BAZELISK_WRAPPER_DIRECTORY=../../tools/bazelisk/wrapper diff --git a/families/fortran/.bazelrc b/families/fortran/.bazelrc deleted file mode 100644 index 97c154f59a..0000000000 --- a/families/fortran/.bazelrc +++ /dev/null @@ -1,23 +0,0 @@ -# dx Bazel preset; comment out an import to drop that layer. -try-import %workspace%/.dx/bazelrc/correctness.bazelrc -try-import %workspace%/.dx/bazelrc/performance.bazelrc -try-import %workspace%/.dx/bazelrc/resources.bazelrc - -common --registry=https://bcr.bazel.build -common --check_direct_dependencies=error - -build --java_runtime_version=remotejdk_21 -build --tool_java_runtime_version=remotejdk_21 -build --tool_java_language_version=17 - -common:ci --remote_cache=grpcs://remote.buildbuddy.io -common:ci --remote_cache_compression -common:ci --remote_timeout=10m -common:ci --remote_local_fallback -common:ci --remote_retries=5 -common:ci-pr --noremote_upload_local_results -common:bb --remote_cache=grpcs://remote.buildbuddy.io -common:bb --remote_cache_compression -common:bb --remote_timeout=10m - -try-import %workspace%/user.bazelrc diff --git a/families/fortran/.bazelversion b/families/fortran/.bazelversion deleted file mode 100644 index 3b74042132..0000000000 --- a/families/fortran/.bazelversion +++ /dev/null @@ -1 +0,0 @@ -9.3.1 diff --git a/families/fortran/.buildifier.json b/families/fortran/.buildifier.json deleted file mode 100644 index 1d64e29305..0000000000 --- a/families/fortran/.buildifier.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "warningsList": [ - "allowed-symbol-load-locations", - "attr-applicable_licenses", - "attr-cfg", - "attr-license", - "attr-licenses", - "attr-non-empty", - "attr-output-default", - "attr-single-file", - "build-args-kwargs", - "bzl-visibility", - "canonical-repository", - "confusing-name", - "constant-glob", - "ctx-actions", - "ctx-args", - "deprecated-function", - "depset-items", - "depset-iteration", - "depset-union", - "dict-concatenation", - "dict-method-named-arg", - "duplicated-name", - "external-path", - "filetype", - "function-docstring", - "function-docstring-header", - "git-repository", - "http-archive", - "integer-division", - "keyword-positional-params", - "list-append", - "load", - "module-docstring", - "name-conventions", - "native-android", - "native-build", - "native-cc-binary", - "native-cc-common", - "native-cc-debug-package-info", - "native-cc-fdo-prefetch-hints", - "native-cc-fdo-profile", - "native-cc-import", - "native-cc-info", - "native-cc-library", - "native-cc-memprof-profile", - "native-cc-objc-import", - "native-cc-objc-library", - "native-cc-propeller-optimize", - "native-cc-proto", - "native-cc-shared-library", - "native-cc-shared-library-hint-info", - "native-cc-shared-library-info", - "native-cc-test", - "native-cc-toolchain", - "native-cc-toolchain-suite", - "native-java-binary", - "native-java-common", - "native-java-import", - "native-java-info", - "native-java-library", - "native-java-lite-proto", - "native-java-package-config", - "native-java-plugin", - "native-java-plugin-info", - "native-java-proto", - "native-java-runtime", - "native-java-test", - "native-java-toolchain", - "native-package", - "native-proto", - "native-proto-common", - "native-proto-info", - "native-proto-lang-toolchain", - "native-proto-lang-toolchain-info", - "native-py", - "native-sh-binary", - "native-sh-library", - "native-sh-test", - "no-effect", - "output-group", - "overly-nested-depset", - "package-name", - "package-on-top", - "positional-args", - "print", - "provider-params", - "redefined-variable", - "repository-name", - "return-value", - "rule-impl-return", - "skylark-comment", - "skylark-docstring", - "string-iteration", - "uninitialized", - "unnamed-macro", - "unreachable", - "unused-variable" - ] -} diff --git a/families/fortran/.dx/BUILD.bazel b/families/fortran/.dx/BUILD.bazel deleted file mode 100644 index b97b427b6c..0000000000 --- a/families/fortran/.dx/BUILD.bazel +++ /dev/null @@ -1,85 +0,0 @@ -# gazelle:ignore -# Generated by dx from dx.toml; dx generate rewrites this file. - -load("@rules_dx//quality:native_config.bzl", "buildifier_config") -load("@rules_dx//quality/private:generated_policy.bzl", "dx_generated_policy") - -package(default_visibility = ["//visibility:public"]) - -buildifier_config( - name = "buildifier", - src = "//:.buildifier.json", - data = ["config/buildifier/base.json"], -) - -dx_generated_policy( - name = "policy", - configs = [":buildifier"], - families = { - "cc": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["clang_format"], - "lint": [ - "clang_tidy", - "typos", - ], - }, - "json": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["biome"], - "lint": ["biome"], - }, - "markdown": { - "disabled": [ - "audit", - "format", - "typecheck", - ], - "lint": [ - "lychee", - "markdown_check", - "typos", - ], - }, - "starlark": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["buildifier"], - "lint": [ - "buildifier", - "typos", - ], - }, - "text": { - "disabled": [ - "audit", - "format", - "typecheck", - ], - "lint": [ - "keep_sorted", - "typos", - ], - }, - "toml": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["taplo"], - "lint": [ - "taplo", - "typos", - ], - }, - }, - tier = "strict", -) diff --git a/families/fortran/.dx/bazelrc/correctness.bazelrc b/families/fortran/.dx/bazelrc/correctness.bazelrc deleted file mode 100644 index 15815f4023..0000000000 --- a/families/fortran/.dx/bazelrc/correctness.bazelrc +++ /dev/null @@ -1,79 +0,0 @@ -# Vendored Bazel execution preset -- GENERATED, do not edit. -# Regenerate: `tools/dx init --apply`. -# Layer correctness: flags that change what a build or test produces. - -# Print the full command line of a failed action. -build --verbose_failures - -# Show the log of a failing test in the console. -test --test_output=errors - -# Apply the linux, macos and windows config lines on matching hosts. -common --enable_platform_specific_config - -# Make LLVM coverage write lcov data. -coverage --test_env=GENERATE_LLVM_LCOV=1 - -# Merge the coverage of every test into one lcov report. -coverage --combined_report=lcov - -# Skip tests tagged no-coverage during coverage runs. -coverage --test_tag_filters=-no-coverage - -# Coverage collectors read their inputs from a runfiles tree. -coverage --enable_runfiles - -# Instrument only targets in the main repository. -coverage --instrumentation_filter=^// - -# Instrument test targets so sources a test compiles itself are counted. -coverage --instrument_test_targets - -# On Windows, build runfiles trees only for actions that run. -build:windows --nobuild_runfile_links - -# On Windows, give tests a runfiles directory instead of only a manifest. -build:windows --enable_runfiles - -# On Windows, rustc links with rust-lld; clang-cl cannot drive a Rust link. -build:windows --@rules_dx//config:toolchain_linker_preference=rust - -# On Windows, build host tools on the MSVC-ABI host so rustc and clang-cl agree on the ABI. -common:windows --host_platform=@rules_dx//tools/platforms:windows_msvc_host - -# On Windows, prefer the MSVC-ABI host for actions and keep the plain host as a fallback. -common:windows --extra_execution_platforms=@rules_dx//tools/platforms:windows_msvc_host,@rules_dx//tools/platforms:host - -# Run Java targets on the downloaded JDK 21, not a host JDK. -build --java_runtime_version=remotejdk_21 - -# Run Java build tools on the downloaded JDK 21. -build --tool_java_runtime_version=remotejdk_21 - -# Compile Java build tools at language level 17. -build --tool_java_language_version=17 - -# Opt out of aspect_tools_telemetry usage reports. -common --repo_env=DO_NOT_TRACK=1 - -# Clippy findings are part of the build output, as in dx build. -build --@rules_dx//config:clippy_output_diagnostics=true - -# Rustc diagnostics are part of the build output, as in dx build. -build --@rules_dx//config:rustc_output_diagnostics=true - -# Under --config=ci, fail when MODULE.bazel.lock is out of date. -common:ci --lockfile_mode=error - -# Under --config=ci, skip probing the host JDK for @local_jdk. -common:ci --repo_env=JAVA_HOME=dx-no-local-jdk - -# Under --config=ci, build runfiles trees only for actions that run. -common:ci --nobuild_runfile_links - -# Compiler warnings fail the build under the strict profile. -common --@rules_dx//config:warnings_as_errors=true -common --@rules_dx//config:config_profile=strict - -# The workspace policy dx generates from dx.toml. -common --@rules_dx//config:workspace=//.dx:policy diff --git a/families/fortran/.dx/bazelrc/performance.bazelrc b/families/fortran/.dx/bazelrc/performance.bazelrc deleted file mode 100644 index eda0a0d8e8..0000000000 --- a/families/fortran/.dx/bazelrc/performance.bazelrc +++ /dev/null @@ -1,57 +0,0 @@ -# Vendored Bazel execution preset -- GENERATED, do not edit. -# Regenerate: `tools/dx init --apply`. -# Layer performance: build speed and the dx compilation configs. - -# Build host tools without optimization so builds finish sooner. -build --host_compilation_mode=fastbuild - -# The dx_build_debug config builds with debug symbols. -build:dx_build_debug --compilation_mode=dbg - -# The dx_build_dev config builds unoptimized for quick edit and test loops. -build:dx_build_dev --compilation_mode=fastbuild - -# The dx_build_release config builds optimized target code. -build:dx_build_release --compilation_mode=opt - -# The dx_build_release config also optimizes host tools. -build:dx_build_release --host_compilation_mode=opt - -# The dx_dev_remote config builds unoptimized on remote executors. -build:dx_dev_remote --compilation_mode=fastbuild - -# The dx_toolchain config builds toolchains unoptimized. -build:dx_toolchain --compilation_mode=fastbuild - -# With a remote cache set, also store fetched repositories there; without one this does nothing. Only use a remote cache you trust. -startup --experimental_remote_repo_contents_cache - -# Under --config=ci, run 64 actions at once, since remote cache hits hold job slots. -common:ci --jobs=64 - -# Under --config=ci, compress remote cache transfers. -common:ci --remote_cache_compression - -# Under --config=ci, send blobs under 100 bytes uncompressed. -common:ci --experimental_remote_cache_compression_threshold=100 - -# Under --config=ci, allow a remote cache call 10 minutes. -common:ci --remote_timeout=10m - -# Under --config=ci, build locally when the remote cache fails. -common:ci --remote_local_fallback - -# Under --config=ci, retry a failed remote cache call 5 times. -common:ci --remote_retries=5 - -# Under --config=ci, rebuild 5 times when the remote cache evicts an input. -common:ci --experimental_remote_cache_eviction_retries=5 - -# Under --config=ci, look up 32 repositories at once, since each remote contents cache lookup waits on the network. -common:ci --loading_phase_threads=32 - -# Under --config=ci, open up to 200 remote connections, since cache checks queue behind the default 100. -common:ci --remote_max_connections=200 - -# Under --config=ci-pr, read the remote cache without writing to it. -common:ci-pr --noremote_upload_local_results diff --git a/families/fortran/.dx/bazelrc/resources.bazelrc b/families/fortran/.dx/bazelrc/resources.bazelrc deleted file mode 100644 index aa74f07fb7..0000000000 --- a/families/fortran/.dx/bazelrc/resources.bazelrc +++ /dev/null @@ -1,42 +0,0 @@ -# Vendored Bazel execution preset -- GENERATED, do not edit. -# Regenerate: `tools/dx init --apply`. -# Layer resources: memory, CPU and cache limits for the host. - -# Let the Bazel server return unused heap to the system sooner. -startup --host_jvm_args=-XX:MaxHeapFreeRatio=30 - -# Keep little spare heap after a garbage collection. -startup --host_jvm_args=-XX:MinHeapFreeRatio=10 - -# Cap the Bazel server heap at a quarter of host memory. -startup --host_jvm_args=-XX:MaxRAMPercentage=25 - -# Schedule local actions within half of host memory. -common --local_resources=memory=HOST_RAM*.5 - -# Leave a quarter of the CPUs for the rest of the machine. -common --local_resources=cpu=HOST_CPUS*.75 - -# Stop a Bazel server after 15 idle minutes. -startup --max_idle_secs=900 - -# Stop an idle Bazel server when the host runs low on memory. -startup --shutdown_on_low_sys_mem - -# Drop disk cache entries unused for 14 days. -common --experimental_disk_cache_gc_max_age=14d - -# Keep the disk cache under 20 GB. -common --experimental_disk_cache_gc_max_size=20G - -# Drop repository contents cache entries unused for 60 days. -common --repo_contents_cache_gc_max_age=60d - -# Shrink persistent worker pools when memory runs low. -build --experimental_shrink_worker_pool - -# Cap the memory of all persistent workers together at 4 GB. -build --experimental_total_worker_memory_limit_mb=4096 - -# Under --config=ci, schedule local actions on every CPU. -common:ci --local_resources=cpu=HOST_CPUS diff --git a/families/fortran/.dx/config/buildifier/base.json b/families/fortran/.dx/config/buildifier/base.json deleted file mode 100644 index 833abf52c2..0000000000 --- a/families/fortran/.dx/config/buildifier/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "warnings": "all" -} diff --git a/families/fortran/.dx/config/taplo/base.toml b/families/fortran/.dx/config/taplo/base.toml deleted file mode 100644 index 1e9dea1b10..0000000000 --- a/families/fortran/.dx/config/taplo/base.toml +++ /dev/null @@ -1,4 +0,0 @@ -[formatting] -column_width = 80 -indent_string = " " -reorder_keys = false diff --git a/families/fortran/.dx/config/typos/base.toml b/families/fortran/.dx/config/typos/base.toml deleted file mode 100644 index 58f31584ba..0000000000 --- a/families/fortran/.dx/config/typos/base.toml +++ /dev/null @@ -1,5 +0,0 @@ -[default] -locale = "en" - -[files] -extend-exclude = ["*.lock", "*.min.js", "*.svg"] diff --git a/families/fortran/.dx/pins b/families/fortran/.dx/pins deleted file mode 100644 index 77d6f4ca23..0000000000 --- a/families/fortran/.dx/pins +++ /dev/null @@ -1 +0,0 @@ -0.0.0 diff --git a/families/fortran/BUILD.bazel b/families/fortran/BUILD.bazel deleted file mode 100644 index f0c9cbea49..0000000000 --- a/families/fortran/BUILD.bazel +++ /dev/null @@ -1,50 +0,0 @@ -load("@rules_dx//quality:fixtures.bzl", "real_source_target") -load("@rules_shell//shell:sh_test.bzl", "sh_test") - -# gazelle:exclude fortran - -package(default_visibility = ["//visibility:public"]) - -real_source_target( - name = "corpus_starlark", - starlark_srcs = ["BUILD.bazel"], - tags = ["corpus"], -) - -real_source_target( - name = "corpus_markdown", - aspect_hints = ["@rules_dx//quality:corpus_vale_config"], - markdown_srcs = ["README.md"], - tags = ["corpus"], -) - -sh_test( - name = "starlark_docs_test", - srcs = ["starlark_docs_test.sh"], - args = ["$(rootpath @rules_dx//tools/ci:starlark_docs_family_test)"], - data = [ - "//fortran/tests/fixtures/calc:corpus_starlark", - "//fortran/tests/negative:corpus_starlark", - "//fortran/tests/runtime:corpus_starlark", - "//fortran/tests/runtime/kinds_a:corpus_starlark", - "//fortran/tests/runtime/kinds_b:corpus_starlark", - "@rules_dx//tools/ci:starlark_docs_family_test", - ], - env = {"STARLARK_DOCS_PACKAGES": "fortran/tests/fixtures/calc,fortran/tests/negative,fortran/tests/runtime,fortran/tests/runtime/kinds_a,fortran/tests/runtime/kinds_b"}, -) - -filegroup( - name = "module_srcs", - srcs = glob( - ["**"], - exclude = ["**/tests/**"], - ), - visibility = ["//visibility:public"], -) - -# dx:begin exports -exports_files( - [".buildifier.json"], - visibility = ["//.dx:__pkg__"], -) -# dx:end exports diff --git a/families/fortran/MODULE.bazel b/families/fortran/MODULE.bazel deleted file mode 100644 index 6f83bfb23c..0000000000 --- a/families/fortran/MODULE.bazel +++ /dev/null @@ -1,22 +0,0 @@ -module( - name = "rules_dx_fortran", - version = "0.0.0", - bazel_compatibility = [">=9.2.0"], -) - -bazel_dep(name = "rules_dx", version = "0.0.0") -include("//third_party/rules_dx:rules_dx.MODULE.bazel") -local_path_override( - module_name = "rules_dx", - path = "../..", -) - -# floor: equals tested -bazel_dep(name = "bazel_skylib", version = "1.9.2") -bazel_dep(name = "platforms", version = "1.1.0") -bazel_dep(name = "rules_shell", version = "0.8.0") - -fortran = use_extension("@rules_dx//fortran/toolchain:extensions.bzl", "fortran") -use_repo(fortran, "dx_fortran_toolchains") - -register_toolchains("@dx_fortran_toolchains//:all") diff --git a/families/fortran/MODULE.bazel.lock b/families/fortran/MODULE.bazel.lock deleted file mode 100644 index e5bb805f75..0000000000 --- a/families/fortran/MODULE.bazel.lock +++ /dev/null @@ -1,21937 +0,0 @@ -{ - "lockFileVersion": 28, - "registryFileHashes": { - "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", - "https://bcr.bazel.build/modules/abseil-cpp/20230125.1/MODULE.bazel": "89047429cb0207707b2dface14ba7f8df85273d484c2572755be4bab7ce9c3a0", - "https://bcr.bazel.build/modules/abseil-cpp/20230802.0/MODULE.bazel": "d253ae36a8bd9ee3c5955384096ccb6baf16a1b1e93e858370da0a3b94f77c16", - "https://bcr.bazel.build/modules/abseil-cpp/20230802.1/MODULE.bazel": "fa92e2eb41a04df73cdabeec37107316f7e5272650f81d6cc096418fe647b915", - "https://bcr.bazel.build/modules/abseil-cpp/20240116.2/MODULE.bazel": "73939767a4686cd9a520d16af5ab440071ed75cec1a876bf2fcfaf1f71987a16", - "https://bcr.bazel.build/modules/abseil-cpp/20250127.1/MODULE.bazel": "c4a89e7ceb9bf1e25cf84a9f830ff6b817b72874088bf5141b314726e46a57c1", - "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/MODULE.bazel": "d209fdb6f36ffaf61c509fcc81b19e81b411a999a934a032e10cd009a0226215", - "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/MODULE.bazel": "51f2312901470cdab0dbdf3b88c40cd21c62a7ed58a3de45b365ddc5b11bcab2", - "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/source.json": "cea3901d7e299da7320700abbaafe57a65d039f10d0d7ea601c4a66938ea4b0c", - "https://bcr.bazel.build/modules/abseil-py/2.1.0/MODULE.bazel": "5ebe5bf853769c65707e5c28f216798f7a4b1042015e6a36e6d03094d94bec8a", - "https://bcr.bazel.build/modules/abseil-py/2.1.0/source.json": "0e8fc4f088ce07099c1cd6594c20c7ddbb48b4b3c0849b7d94ba94be88ff042b", - "https://bcr.bazel.build/modules/apple_support/1.11.1/MODULE.bazel": "1843d7cd8a58369a444fc6000e7304425fba600ff641592161d9f15b179fb896", - "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", - "https://bcr.bazel.build/modules/apple_support/1.21.1/MODULE.bazel": "5809fa3efab15d1f3c3c635af6974044bac8a4919c62238cce06acee8a8c11f1", - "https://bcr.bazel.build/modules/apple_support/1.24.1/MODULE.bazel": "f46e8ddad60aef170ee92b2f3d00ef66c147ceafea68b6877cb45bd91737f5f8", - "https://bcr.bazel.build/modules/apple_support/1.24.2/MODULE.bazel": "0e62471818affb9f0b26f128831d5c40b074d32e6dda5a0d3852847215a41ca4", - "https://bcr.bazel.build/modules/apple_support/2.11.0/MODULE.bazel": "0f1e56d2d03842cef48348321fa90768e239138956d605a8d2615cdcd2fc0732", - "https://bcr.bazel.build/modules/apple_support/2.11.0/source.json": "2f0c765c28dbb7f6485ad3fb7c0a365ea5a041948b5fe2fc600ab655f514c990", - "https://bcr.bazel.build/modules/apple_support/2.3.0/MODULE.bazel": "d48f824ae8eeea5f837eb3038cef3615075d996d3e82eb9187192c2820605a81", - "https://bcr.bazel.build/modules/apple_support/2.5.2/MODULE.bazel": "bb1b7081e390a8d3885f642cb0073dfcf8e7a36525e079fa8f5835af7079c0fe", - "https://bcr.bazel.build/modules/apple_support/2.5.4/MODULE.bazel": "964e9268b37edb64e9a0fa525e5b5e535ba56bf63cadc68375f92e69fcb734f6", - "https://bcr.bazel.build/modules/apple_support/2.8.0/MODULE.bazel": "c45f5176057092afba0be6c48a9ea02101666802f8be536947e099e94757f8ed", - "https://bcr.bazel.build/modules/apple_support/2.8.3/MODULE.bazel": "4afffdeb3a37825fdae637efb14ead4de27fe6310dbae96d071059e4e7b2e431", - "https://bcr.bazel.build/modules/apple_support/2.9.1/MODULE.bazel": "fb209b83ed172af587419acb3340389cfe3260669e5f1c05e1ac3974aca614e0", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.14.0/MODULE.bazel": "2b31ffcc9bdc8295b2167e07a757dbbc9ac8906e7028e5170a3708cecaac119f", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.19.2/MODULE.bazel": "30dfabbfae0139b1f0036e01c201dd4c0167da3017f0b7ef3820d78e07622989", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.19.3/MODULE.bazel": "253d739ba126f62a5767d832765b12b59e9f8d2bc88cc1572f4a73e46eb298ca", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.21.1/MODULE.bazel": "07e3ce3eaaa50dbd0be7fa0094e36890478937adc780ec53e77fd9fe543af8b1", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.22.5/MODULE.bazel": "004ba890363d05372a97248c37205ae64b6fa31047629cd2c0895a9d0c7779e8", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.22.5/source.json": "ac2c3213df8f985785f1d0aeb7f0f73d5324e6e67d593d9b9470fb74a25d4a9b", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.7.7/MODULE.bazel": "491f8681205e31bb57892d67442ce448cda4f472a8e6b3dc062865e29a64f89c", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.8.1/MODULE.bazel": "812d2dd42f65dca362152101fbec418029cc8fd34cbad1a2fde905383d705838", - "https://bcr.bazel.build/modules/aspect_rules_jest/0.26.0/MODULE.bazel": "b32a16d50f02d5c65f727a2c98a280739f7bccad3a5c691342503dbba8006312", - "https://bcr.bazel.build/modules/aspect_rules_jest/0.26.0/source.json": "e978f5f3f368a8fe4a56d3f01b2e77a53c7042ceb9cb6abad86193a9a19ba31a", - "https://bcr.bazel.build/modules/aspect_rules_js/2.0.0/MODULE.bazel": "b45b507574aa60a92796e3e13c195cd5744b3b8aff516a9c0cb5ae6a048161c5", - "https://bcr.bazel.build/modules/aspect_rules_js/3.0.1/MODULE.bazel": "130d15e83caf6fd46ba65a112686d93f20e6ee31e8171eb62f25b4eb11f663bf", - "https://bcr.bazel.build/modules/aspect_rules_js/3.5.2/MODULE.bazel": "9e8e4cc25b21a51cf9336aa7bd1a0d8c1c6b508b9f0ae663d617ac4223ebcdb9", - "https://bcr.bazel.build/modules/aspect_rules_js/3.5.2/source.json": "3d11af690a74823879b297ca0ae57c6e73a94ccd944a87fb1a82b1e53e6d8442", - "https://bcr.bazel.build/modules/aspect_rules_ts/3.10.1/MODULE.bazel": "035205a7834b0ed9724ed3c4790e12d1c779ef2520d72496ab234e6307715e6c", - "https://bcr.bazel.build/modules/aspect_rules_ts/3.10.1/source.json": "d42b6560206adb5524caad2abc40ae0b5b34478dd38184a9f6ea4a5fed848cd6", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.3.3/MODULE.bazel": "37c764292861c2f70314efa9846bb6dbb44fc0308903b3285da6528305450183", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.4.2/MODULE.bazel": "f31aa84151d31e98cffd43eb7217ccff5ec52bdd5f2d10db8f053aeb23342eca", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.5.1/MODULE.bazel": "9d94e5c22c0019995c0a3216a6abb1717dc3f35acccf4e6267a55d6df38367aa", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.5.2/MODULE.bazel": "c715a5fb6b13a0086c061618f00d033a4ab6d76cbd1083e38d7ca953b5e547f4", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.5.2/source.json": "4dd300d44767ad4860098b006dda614e67ab0409ae6ec6e133faad303fe9ede8", - "https://bcr.bazel.build/modules/avro-cpp/1.12.0.bcr.1/MODULE.bazel": "5a3ba733805370100b663a5e518aacbde8eed6a0d3fb927874fa47f8ed6ae0e8", - "https://bcr.bazel.build/modules/avro-cpp/1.12.0.bcr.1/source.json": "949a05d4ae35e198b2786e7b13a9cfbe462902ea1abbc20fb0af323e266b8907", - "https://bcr.bazel.build/modules/bazel_features/1.0.0/MODULE.bazel": "d7f022dc887efb96e1ee51cec7b2e48d41e36ff59a6e4f216c40e4029e1585bf", - "https://bcr.bazel.build/modules/bazel_features/1.1.0/MODULE.bazel": "cfd42ff3b815a5f39554d97182657f8c4b9719568eb7fded2b9135f084bf760b", - "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", - "https://bcr.bazel.build/modules/bazel_features/1.10.0/MODULE.bazel": "f75e8807570484a99be90abcd52b5e1f390362c258bcb73106f4544957a48101", - "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", - "https://bcr.bazel.build/modules/bazel_features/1.13.0/MODULE.bazel": "c14c33c7c3c730612bdbe14ebbb5e61936b6f11322ea95a6e91cd1ba962f94df", - "https://bcr.bazel.build/modules/bazel_features/1.17.0/MODULE.bazel": "039de32d21b816b47bd42c778e0454217e9c9caac4a3cf8e15c7231ee3ddee4d", - "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", - "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", - "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", - "https://bcr.bazel.build/modules/bazel_features/1.24.0/MODULE.bazel": "4796b4c25b47053e9bbffa792b3792d07e228ff66cd0405faef56a978708acd4", - "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", - "https://bcr.bazel.build/modules/bazel_features/1.28.0/MODULE.bazel": "4b4200e6cbf8fa335b2c3f43e1d6ef3e240319c33d43d60cc0fbd4b87ece299d", - "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", - "https://bcr.bazel.build/modules/bazel_features/1.32.0/MODULE.bazel": "095d67022a58cb20f7e20e1aefecfa65257a222c18a938e2914fd257b5f1ccdc", - "https://bcr.bazel.build/modules/bazel_features/1.33.0/MODULE.bazel": "8b8dc9d2a4c88609409c3191165bccec0e4cb044cd7a72ccbe826583303459f6", - "https://bcr.bazel.build/modules/bazel_features/1.34.0/MODULE.bazel": "e8475ad7c8965542e0c7aac8af68eb48c4af904be3d614b6aa6274c092c2ea1e", - "https://bcr.bazel.build/modules/bazel_features/1.36.0/MODULE.bazel": "596cb62090b039caf1cad1d52a8bc35cf188ca9a4e279a828005e7ee49a1bec3", - "https://bcr.bazel.build/modules/bazel_features/1.39.0/MODULE.bazel": "28739425c1fc283c91931619749c832b555e60bcd1010b40d8441ce0a5cf726d", - "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", - "https://bcr.bazel.build/modules/bazel_features/1.41.0/MODULE.bazel": "6e0f87fafed801273c371d41e22a15a6f8abf83fdd7f87d5e44ad317b94433d0", - "https://bcr.bazel.build/modules/bazel_features/1.42.0/MODULE.bazel": "e8ca15cb2639c5f12183db6dcb678735555d0cdd739b32a0418b6532b5e565f8", - "https://bcr.bazel.build/modules/bazel_features/1.42.1/MODULE.bazel": "275a59b5406ff18c01739860aa70ad7ccb3cfb474579411decca11c93b951080", - "https://bcr.bazel.build/modules/bazel_features/1.43.0/MODULE.bazel": "defa2226f06ba20550d6548c3a2ea2a7929634437a52973869c20c225450eb91", - "https://bcr.bazel.build/modules/bazel_features/1.48.1/MODULE.bazel": "8f43b2b90bd70402825ab07a85bf26079935271e2662a1df37fe0de969aa3ecf", - "https://bcr.bazel.build/modules/bazel_features/1.50.0/MODULE.bazel": "2083ef9c7a469f520890483ccf8e0189d6e71e2117e7752e15e6554433d5ae3e", - "https://bcr.bazel.build/modules/bazel_features/1.51.0/MODULE.bazel": "8e1310d09db6ee2e4f19f9994e360aca941ddc32083edc8d9bdc19c83c94cee4", - "https://bcr.bazel.build/modules/bazel_features/1.54.1/MODULE.bazel": "026b77134bd460e2ca0f44c57f4f3a3a8593f27a497b4ee98336e065047834f5", - "https://bcr.bazel.build/modules/bazel_features/1.54.1/source.json": "23ba6f9625d32f5f718393ae65f05ac70025448aed23543c238b1cffec08f28a", - "https://bcr.bazel.build/modules/bazel_features/1.9.0/MODULE.bazel": "885151d58d90d8d9c811eb75e3288c11f850e1d6b481a8c9f766adee4712358b", - "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", - "https://bcr.bazel.build/modules/bazel_lib/3.0.0-rc.0/MODULE.bazel": "d6e00979a98ac14ada5e31c8794708b41434d461e7e7ca39b59b765e6d233b18", - "https://bcr.bazel.build/modules/bazel_lib/3.0.0/MODULE.bazel": "22b70b80ac89ad3f3772526cd9feee2fa412c2b01933fea7ed13238a448d370d", - "https://bcr.bazel.build/modules/bazel_lib/3.1.0/MODULE.bazel": "6809765c14e3c766a9b9286c7b0ec56ed87a73326e48fe01749f0c0fdcfe3287", - "https://bcr.bazel.build/modules/bazel_lib/3.2.2/MODULE.bazel": "e2c890c8a515d6bca9c66d47718aa9e44b458fde64ec7204b8030bf2d349058c", - "https://bcr.bazel.build/modules/bazel_lib/3.3.1/MODULE.bazel": "732a0d516cf6400d9b3136e4356258aef1bf91de8d5240f87f0112f098920c1d", - "https://bcr.bazel.build/modules/bazel_lib/3.7.0/MODULE.bazel": "d7c10ed67f0f7f1fda179db8f86c22642581bd614882e1a50545fbe069525173", - "https://bcr.bazel.build/modules/bazel_lib/3.7.2/MODULE.bazel": "cbc920fff00a55b2fd663d40850560a6fb17fd5ef3a9f3d6cbf0d32908dd8a40", - "https://bcr.bazel.build/modules/bazel_lib/3.7.2/source.json": "7a9c2b06a113c4962d329bb68befdb90d0447788a19aabaa32b476a0458e7d28", - "https://bcr.bazel.build/modules/bazel_linux_packages/0.4.1/MODULE.bazel": "9bcd612b78aa98db07f01ca7edc3129148aced24d3726884bba1f321031e724d", - "https://bcr.bazel.build/modules/bazel_linux_packages/0.4.1/source.json": "f3bbbf0f046fbc692b5e00f317088c6163b1874213027f1047bf505a1b9c647b", - "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", - "https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e", - "https://bcr.bazel.build/modules/bazel_skylib/1.2.0/MODULE.bazel": "44fe84260e454ed94ad326352a698422dbe372b21a1ac9f3eab76eb531223686", - "https://bcr.bazel.build/modules/bazel_skylib/1.2.1/MODULE.bazel": "f35baf9da0efe45fa3da1696ae906eea3d615ad41e2e3def4aeb4e8bc0ef9a7a", - "https://bcr.bazel.build/modules/bazel_skylib/1.3.0/MODULE.bazel": "20228b92868bf5cfc41bda7afc8a8ba2a543201851de39d990ec957b513579c5", - "https://bcr.bazel.build/modules/bazel_skylib/1.4.0/MODULE.bazel": "2ab127ef8d56a739a99bb2ce00ec4c7d1ecc7977d4370c0ca6efd0d8f03d6d99", - "https://bcr.bazel.build/modules/bazel_skylib/1.4.1/MODULE.bazel": "a0dcb779424be33100dcae821e9e27e4f2901d9dfd5333efe5ac6a8d7ab75e1d", - "https://bcr.bazel.build/modules/bazel_skylib/1.4.2/MODULE.bazel": "3bd40978e7a1fac911d5989e6b09d8f64921865a45822d8b09e815eaa726a651", - "https://bcr.bazel.build/modules/bazel_skylib/1.5.0/MODULE.bazel": "32880f5e2945ce6a03d1fbd588e9198c0a959bb42297b2cfaf1685b7bc32e138", - "https://bcr.bazel.build/modules/bazel_skylib/1.6.1/MODULE.bazel": "8fdee2dbaace6c252131c00e1de4b165dc65af02ea278476187765e1a617b917", - "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/MODULE.bazel": "3120d80c5861aa616222ec015332e5f8d3171e062e3e804a2a0253e1be26e59b", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.0/MODULE.bazel": "2fb3fb53675f6adfc1ca5bfbd5cfb655ae350fba4706d924a8ec7e3ba945671c", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/MODULE.bazel": "88ade7293becda963e0e3ea33e7d54d3425127e0a326e0d17da085a5f1f03ff6", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.2/MODULE.bazel": "69ad6927098316848b34a9142bcc975e018ba27f08c4ff403f50c1b6e646ca67", - "https://bcr.bazel.build/modules/bazel_skylib/1.9.0/MODULE.bazel": "72997b29dfd95c3fa0d0c48322d05590418edef451f8db8db5509c57875fb4b7", - "https://bcr.bazel.build/modules/bazel_skylib/1.9.2/MODULE.bazel": "8c51259b0f4481475586dbfede7591e57b75702e637f840f6138eec80c34b270", - "https://bcr.bazel.build/modules/bazel_skylib/1.9.2/source.json": "41cbde7546542dee2f26e3f10bf1c4ac57909943194b7ac48cc5238a01893aa8", - "https://bcr.bazel.build/modules/bazel_worker_api/0.0.10/MODULE.bazel": "a426df551b40c3997c351d05f00f0d1f86b618ddb646012f1e9c72efce8ed939", - "https://bcr.bazel.build/modules/bazel_worker_api/0.0.11/MODULE.bazel": "fe09a8d3fb25c95414249f72cb0936201bf7e3c3f0e302175b2fc81e68bc6069", - "https://bcr.bazel.build/modules/bazel_worker_api/0.0.11/source.json": "7867c70965fccd202c57796de69fcbdf0555da34e3b09a14b06d74afb0f2f26d", - "https://bcr.bazel.build/modules/bazel_worker_java/0.0.11/MODULE.bazel": "1ee9e4c28ce455dbacdff8e007e133ea209e6f673a9e97cf20e99b161bc17548", - "https://bcr.bazel.build/modules/bazel_worker_java/0.0.11/source.json": "48b9b9c55f69cc360a54a712f47b889dd3d367ce2d45c3ccec242e9af86fe9cd", - "https://bcr.bazel.build/modules/bazelrc-preset.bzl/1.6.0/MODULE.bazel": "11bc946a2e1a9c1bea066e44a704091b482e6049164b75b2381e8419bf055cf1", - "https://bcr.bazel.build/modules/bazelrc-preset.bzl/1.6.0/source.json": "ad6cee6b42b5def78f6b3082c0bd7041a330003cbace330aaf1d3f94a122c48b", - "https://bcr.bazel.build/modules/boost.algorithm/1.87.0/MODULE.bazel": "d1c8f1466cc1a04a16eebeefe0f54a9508cc9f1a3c21d65d806acbc36593e204", - "https://bcr.bazel.build/modules/boost.algorithm/1.87.0/source.json": "9280ee3bfa6b9427aad20a450c33d74fabb93a69d81e201955098035a514f287", - "https://bcr.bazel.build/modules/boost.align/1.87.0/MODULE.bazel": "b9b08a94ac9db10fa17a58fc278a8c79fdb32c915de7a9133f6f01f6fe8887f7", - "https://bcr.bazel.build/modules/boost.align/1.87.0/source.json": "c41e1675e9686a3d82b130ccf496d5780fc4edf42ff2e91b2323fd05d3773e81", - "https://bcr.bazel.build/modules/boost.any/1.87.0/MODULE.bazel": "bd5e7c7abe254911ea9ee86877b2f9d72e5b01ba5e1d78224564d6919105e03a", - "https://bcr.bazel.build/modules/boost.any/1.87.0/source.json": "928d3773ee07be66fd2f1025cf63776bca9f80d7c57b705e994ed953cd17b6bb", - "https://bcr.bazel.build/modules/boost.array/1.87.0/MODULE.bazel": "beb11f5d659b17df58c07e039392edc9233e1be9565e5d4b1393fff9bf4457c4", - "https://bcr.bazel.build/modules/boost.array/1.87.0/source.json": "0583a9fd9d24a14e33b74b4342f94b4a4a3b539af11b0c12403a1a4da1f1548a", - "https://bcr.bazel.build/modules/boost.assert/1.87.0/MODULE.bazel": "8a950da6e19dd6d6427b95b1cfe1d2fc86eb598f6fb753345d925eb92d74a821", - "https://bcr.bazel.build/modules/boost.assert/1.87.0/source.json": "085a7c247d90bb4f8f5c3cc7eec1994f3d46d2a26af1947c85ff6f8ddd86ce59", - "https://bcr.bazel.build/modules/boost.atomic/1.87.0/MODULE.bazel": "7afe1354a8901637ba820edd6ec83a1602ba68f8af31d285d4704a1ec23a2fb6", - "https://bcr.bazel.build/modules/boost.atomic/1.87.0/source.json": "26badcfadd6846993f1ce2308da8af4f9477bc53587167229ec3cf0be4d2fdbf", - "https://bcr.bazel.build/modules/boost.bind/1.87.0/MODULE.bazel": "6d224cd013e45d15710476840fff34aa2da53389c3bfd252054e2efd893b0bf9", - "https://bcr.bazel.build/modules/boost.bind/1.87.0/source.json": "e93e696ab6140c1f07317357b04b4d0fcf0aefa61991b8fa8b65416d81677b44", - "https://bcr.bazel.build/modules/boost.chrono/1.87.0/MODULE.bazel": "ac035fc481cfaf6dd0b42c791938aa53d5ad7debba1a877c0169d1cc9deae874", - "https://bcr.bazel.build/modules/boost.chrono/1.87.0/source.json": "a050f84c8488008a3ac15550592259cbf90abf86ca31052f30f120f4e60de772", - "https://bcr.bazel.build/modules/boost.concept_check/1.87.0/MODULE.bazel": "6a935c9f5d739ad6d0401d1e5f71f4bfb538c66ccb1d3b8ac7a5a2b74bd207ff", - "https://bcr.bazel.build/modules/boost.concept_check/1.87.0/source.json": "45ffc4ae171c9b14bbe595e3d3e7d0a5065ceb18f949d1a2365d328ca89e1a1c", - "https://bcr.bazel.build/modules/boost.config/1.87.0/MODULE.bazel": "01da6517cb341d5abea9be54337bf85ba50132b3690a621f09be5890ecd12796", - "https://bcr.bazel.build/modules/boost.config/1.87.0/source.json": "9a00cd7c9afd6f58b349a806791c7aab040b1cd1a35464e59b79be724261a5ae", - "https://bcr.bazel.build/modules/boost.container/1.87.0/MODULE.bazel": "affb6e485eb13d3df0e9ee464f6a890175762526166da601a83f12d21b6c6950", - "https://bcr.bazel.build/modules/boost.container/1.87.0/source.json": "ddf180a658ad7743e081970719a184538945b9554be8278b55a67ba281ceede0", - "https://bcr.bazel.build/modules/boost.container_hash/1.87.0/MODULE.bazel": "a718ac13832c18ffc828f33e9cf8e566095d5ed8c80584bd1ad429c4ce91efa5", - "https://bcr.bazel.build/modules/boost.container_hash/1.87.0/source.json": "a7a90c4dfea2da1648ac530a838faebc093cbbaeab5e4f43a8532e5b76ff32d3", - "https://bcr.bazel.build/modules/boost.conversion/1.87.0/MODULE.bazel": "47bafdb6a14ec58feefe69a1367b537458563e0627e1986f377cc0b4e8ebd41e", - "https://bcr.bazel.build/modules/boost.conversion/1.87.0/source.json": "7aa865b11b0a699d15926eb87a21d17220d64265da3d280261a480b0d88b3dbb", - "https://bcr.bazel.build/modules/boost.core/1.87.0/MODULE.bazel": "33517eb46bb16f4b4f4a1bde61fe8b2475f45b5574bcd9f04c85f4bf3afe30d2", - "https://bcr.bazel.build/modules/boost.core/1.87.0/source.json": "9e2920b45c833a6a2cd42b16e17a5b97201bb73698a3902936cc90c1aa3de667", - "https://bcr.bazel.build/modules/boost.crc/1.87.0/MODULE.bazel": "99c5da72a920f6f8b86d2c2834ee132d39453e3d08892bf4ea231c6beeaac6c7", - "https://bcr.bazel.build/modules/boost.crc/1.87.0/source.json": "ca8e74014886ba5fa93808d59dd5541e1601994f000d05aca0c5f7920b63f8ed", - "https://bcr.bazel.build/modules/boost.describe/1.87.0/MODULE.bazel": "638752de4ad46348a7e3ac72910b699fde5a3c71d42fc69047d2aa8825411646", - "https://bcr.bazel.build/modules/boost.describe/1.87.0/source.json": "c260a5c38806ea88ce50b2d070484ae634941d2be7a1ddb0f959923ca8ef10d4", - "https://bcr.bazel.build/modules/boost.detail/1.87.0/MODULE.bazel": "64ed391c2b60b226263de4f486fad690414afc6a68d1a5e58eed70e4a63f2d80", - "https://bcr.bazel.build/modules/boost.detail/1.87.0/source.json": "dde910ab5e8ca18352cceaf4a922904b3de9ace042bf16f1a2015ca53776a568", - "https://bcr.bazel.build/modules/boost.dynamic_bitset/1.87.0/MODULE.bazel": "542b8afeb7534c248e9f28fdef589ba8a443d18c253a7ea06e283848bb06a237", - "https://bcr.bazel.build/modules/boost.dynamic_bitset/1.87.0/source.json": "5b15c2b7c3164175dd861bb7eba3af9d306858f267806743d0384ce32c51f404", - "https://bcr.bazel.build/modules/boost.exception/1.87.0/MODULE.bazel": "2bc7bfa2166bccb25c8b814ad8d5bf462448349ffd41e9541cfa7b849bd15ca8", - "https://bcr.bazel.build/modules/boost.exception/1.87.0/source.json": "987bb7df5cbf05e4c3349073fe889e33b8914ea9b9b0b5cf72bc742941343d8b", - "https://bcr.bazel.build/modules/boost.filesystem/1.87.0/MODULE.bazel": "a072d9c1d3f7dd251911224752998fa861eaaf0aee1911b1b3035cd0f290d154", - "https://bcr.bazel.build/modules/boost.filesystem/1.87.0/source.json": "3ceae891eb6db1970849731a0b84acbc6ac72fcfd351ca0267724d3f22ee71b6", - "https://bcr.bazel.build/modules/boost.function/1.87.0/MODULE.bazel": "d7ad93c26d0102b48cd6f781fcb68d16861fd6bf8772f784f034afabbabea391", - "https://bcr.bazel.build/modules/boost.function/1.87.0/source.json": "dd6765e2d9d902fc82da874f55061cf233a17affa66acb1641f478480b80d5d2", - "https://bcr.bazel.build/modules/boost.function_types/1.87.0/MODULE.bazel": "fed8aedff1fb01468a24e53a10793411330e36ebe29aeafaadeae00e25c20371", - "https://bcr.bazel.build/modules/boost.function_types/1.87.0/source.json": "c3a7fa0a172a109ae04a575eba033e133a38448005468dfddedab065d071dbbf", - "https://bcr.bazel.build/modules/boost.functional/1.87.0/MODULE.bazel": "5488597db90a4d8615505e9673806db23a98a4c73eadc16999478c7b1a6c1bc7", - "https://bcr.bazel.build/modules/boost.functional/1.87.0/source.json": "d39c98b1a9ae0a74da51ff049054fe6f77060d00c1768ea7eb6c629f3ac9eea5", - "https://bcr.bazel.build/modules/boost.fusion/1.87.0/MODULE.bazel": "2c28c212edcf35584dcf09089c51d6dcb2a01cf5d8d5c2b125dc91acb083a463", - "https://bcr.bazel.build/modules/boost.fusion/1.87.0/source.json": "35cb70a4a379e430e9efde27c9c2aa061791e9a1f693f7c85d2d4f1665ba2381", - "https://bcr.bazel.build/modules/boost.integer/1.87.0/MODULE.bazel": "2b862679c8595b6ecb3806ec5c7a1024c9e00fca94e5ee713d75ab022c6a7444", - "https://bcr.bazel.build/modules/boost.integer/1.87.0/source.json": "adce74ac44da997658d139f419f3c6a909fdc35d05566814c9c15e3ccb99fff6", - "https://bcr.bazel.build/modules/boost.intrusive/1.87.0/MODULE.bazel": "9dd904f7da54b7efa8476da8152e8cd60702e7b61bfae2689672f185458dc478", - "https://bcr.bazel.build/modules/boost.intrusive/1.87.0/source.json": "cc603911503905072f8596510bb6e95ce210a82564258d3fd319f9499f339cf6", - "https://bcr.bazel.build/modules/boost.io/1.87.0/MODULE.bazel": "30b1fbdc4a0463f727e2a78558550adf05c61e1fc209a6dcd35df03eaa4dafac", - "https://bcr.bazel.build/modules/boost.io/1.87.0/source.json": "b42dd52763c9bce54ed4a4c8ef48d560460f854bb53770f37c839180dba897e0", - "https://bcr.bazel.build/modules/boost.iostreams/1.87.0/MODULE.bazel": "c5cd8eb60e79c135185834e8727e1d1750cb6da2e6cb2c4d5f4b9418cd55ebe9", - "https://bcr.bazel.build/modules/boost.iostreams/1.87.0/source.json": "16dde1a58982ca8a2a63e710aacb149a6a85650acd227b83a3e3c3f90410a629", - "https://bcr.bazel.build/modules/boost.iterator/1.87.0/MODULE.bazel": "7e6ce23b059902c1709ba033dd1f4783b3de3f48ec4dc9f5e6ab82ddc699223e", - "https://bcr.bazel.build/modules/boost.iterator/1.87.0/source.json": "69d37225c6ffc3e8af0e7ea427ff51ccb04d84c6e7e361bbb8f1dc859b4412ea", - "https://bcr.bazel.build/modules/boost.lexical_cast/1.87.0/MODULE.bazel": "878478bbe6d3350cad171dd1b4558732dbee7021ab69e40a3c5bf9e59b37922c", - "https://bcr.bazel.build/modules/boost.lexical_cast/1.87.0/source.json": "80e0443943851508f2fa427c1c48b714690691c7022082ec65551dbe4680c82e", - "https://bcr.bazel.build/modules/boost.math/1.87.0/MODULE.bazel": "80f886ab97e394f8c106014a19a8c1de7a78b8fd7d5bfc89ac431896b26816b4", - "https://bcr.bazel.build/modules/boost.math/1.87.0/source.json": "8dd908b8e87cf8b2529b75e4571c4c772495f6e294ea7dc7fc36aeb8153ca1b9", - "https://bcr.bazel.build/modules/boost.move/1.87.0/MODULE.bazel": "5f26dacea41a8d617b6097219df961405c8a08a9315da14cefa8da15587a7fc5", - "https://bcr.bazel.build/modules/boost.move/1.87.0/source.json": "a95f9b258ddf918c3137c2b8d223b0b55cf9a17a52d4e19ccabfe650dcf118e3", - "https://bcr.bazel.build/modules/boost.mp11/1.87.0/MODULE.bazel": "af9644d2b668f3e014ac335a8a84ac74d9cb263454cd07cd5b84ce206f5dd81f", - "https://bcr.bazel.build/modules/boost.mp11/1.87.0/source.json": "fb17f9453d8e62a6425efccc3a827f29ddb4577aaffee68393c86bd21e517187", - "https://bcr.bazel.build/modules/boost.mpl/1.87.0/MODULE.bazel": "72eba3a8cc5711e15a852829d00482abbf7869ed2ee6f598b8f295261f3e5496", - "https://bcr.bazel.build/modules/boost.mpl/1.87.0/source.json": "81a99487d926f8a26dd5d80662e14baa0a6842b81a2a47f3f529064d0a36f36f", - "https://bcr.bazel.build/modules/boost.numeric_conversion/1.87.0/MODULE.bazel": "0164792509fbf8e6374eeb94a8e84ba8aa5e939620266177a112eac118e67f7c", - "https://bcr.bazel.build/modules/boost.numeric_conversion/1.87.0/source.json": "b19fe476ce051ee4b127f78b2ee4fcec917f60e2f0a06a26528c5666b355d623", - "https://bcr.bazel.build/modules/boost.optional/1.87.0/MODULE.bazel": "a12ca5b2394521bd60e432c9a98623d5a33edf9f7f891fb26c5d0840fb6b182e", - "https://bcr.bazel.build/modules/boost.optional/1.87.0/source.json": "38de88d9d67d2c7673a2c3a817a578c2ead946a11ae111f24f71859b401b0656", - "https://bcr.bazel.build/modules/boost.predef/1.87.0/MODULE.bazel": "4bb0cc9a326ea8ffde86044c2dbdf08b75d5e8fe7e4ea8c399b058262680a890", - "https://bcr.bazel.build/modules/boost.predef/1.87.0/source.json": "421162e76f175a64d22296b9cf3272441324fa994766acffd367182a777ad092", - "https://bcr.bazel.build/modules/boost.preprocessor/1.87.0/MODULE.bazel": "fdbcce15c585de47e4a5e9f6e2b9aa87f690a87e205eded400c5590f7e64535a", - "https://bcr.bazel.build/modules/boost.preprocessor/1.87.0/source.json": "ef9b9006890126f5880bb51ccbe8a97a95baf21606e2f30acdb1c30c0dd79758", - "https://bcr.bazel.build/modules/boost.program_options/1.87.0/MODULE.bazel": "186e44a5e01b9dedc91420141fba5b31cb73d04f374a6387f80ab53d725faafc", - "https://bcr.bazel.build/modules/boost.program_options/1.87.0/source.json": "53dacc9541ab7e68796c86cacb4d395b9a758a2a2fb2778f67ca5dcd1ef990e0", - "https://bcr.bazel.build/modules/boost.random/1.87.0/MODULE.bazel": "4e145cf085222598574e08e328867995b38d520f763d02a44f13cc0074762139", - "https://bcr.bazel.build/modules/boost.random/1.87.0/source.json": "d5ae4fbacf288a7b14984f2abddc87d9b98b3d6bb863ddf9e9a58b189bd18a5c", - "https://bcr.bazel.build/modules/boost.range/1.87.0/MODULE.bazel": "b1604553c080ca8620fb8e16267b397d4345986acae9ddd8277f36ad87236b60", - "https://bcr.bazel.build/modules/boost.range/1.87.0/source.json": "3477215270d2295f882b0b127347fddf69aecdb7cd77ba315e55199c36208661", - "https://bcr.bazel.build/modules/boost.ratio/1.87.0/MODULE.bazel": "c5a3695cd1bbb22d6a00a6df2c857be1f52f64f36fa3a89bd6835de94485fa60", - "https://bcr.bazel.build/modules/boost.ratio/1.87.0/source.json": "86662c1c2dd510741c8838c43b53a685183fd7ca793d04a8660f0d3f68317005", - "https://bcr.bazel.build/modules/boost.rational/1.87.0/MODULE.bazel": "421044b95b2db3ca1ae3a93ba12e235db938c9786c3a209a2b50754c3c0a07d7", - "https://bcr.bazel.build/modules/boost.rational/1.87.0/source.json": "876156ee5dacf41912b6f3516160ab70b07ee974321ec141f58f6caf99999630", - "https://bcr.bazel.build/modules/boost.regex/1.87.0/MODULE.bazel": "b91f176af90ce5ad96c8be6f83c4fb253fc8b391055e23a349f35e76e679e302", - "https://bcr.bazel.build/modules/boost.regex/1.87.0/source.json": "a887e4a0ac22ae2eb6203bbfbc2b6a9581edc1d65af0a8c392b30327a7688432", - "https://bcr.bazel.build/modules/boost.scope/1.87.0/MODULE.bazel": "7b2bbfc85dd0f19652bb08c4087ce1c09d766584d77d85d03ecea23f468bfe51", - "https://bcr.bazel.build/modules/boost.scope/1.87.0/source.json": "3ae2809ee428900a2941be74c9351a41b1c357aecd557fe1eff8df726a337492", - "https://bcr.bazel.build/modules/boost.smart_ptr/1.87.0/MODULE.bazel": "a2a2b804d33fd47e37b33bb0b47a66b07aab616c12083654f4d9b92ab1308470", - "https://bcr.bazel.build/modules/boost.smart_ptr/1.87.0/source.json": "ff2c2bc2620fd9f404ea1937f38c1776a6b88ae17516c440eda88366fbd14c91", - "https://bcr.bazel.build/modules/boost.static_assert/1.87.0/MODULE.bazel": "06e7170d6e4ec08d6a4a83d1f0bce3f7fdacd89e4dcaa93d508f971e4e363d4f", - "https://bcr.bazel.build/modules/boost.static_assert/1.87.0/source.json": "d5b3f81fba6382b83885ff2dfaef07a5788323ed82d472d2fd629fcbba04ec7a", - "https://bcr.bazel.build/modules/boost.system/1.87.0/MODULE.bazel": "fe98a0cf5cd04613f81b2b4338ccf22d75f4049875c294a35c0949c3c6e8cbc1", - "https://bcr.bazel.build/modules/boost.system/1.87.0/source.json": "470c81ca91d728f1410def4849789a329da81a9080acdca6e1dace58e30728bb", - "https://bcr.bazel.build/modules/boost.test/1.87.0/MODULE.bazel": "c4178121303e784ff5e783a4eee3bc71c6808796b9d0eee15e371127d6b38faf", - "https://bcr.bazel.build/modules/boost.test/1.87.0/source.json": "0bf69689bfc6bc71f7678907237d5c6056cd26d29d3c502962e106bd0cb01dbd", - "https://bcr.bazel.build/modules/boost.throw_exception/1.87.0/MODULE.bazel": "d02c1799ff6bc1bd0a9e7f149ac35a4851c89156be7d81805df9238d52047f02", - "https://bcr.bazel.build/modules/boost.throw_exception/1.87.0/source.json": "b52fb8b064d825ebb7047a72cf2c101a047dc60c1d0a89829b7ed8e39ff4fe6a", - "https://bcr.bazel.build/modules/boost.timer/1.87.0/MODULE.bazel": "ef942e1d3c04a65215e0bbddfeb60be5bf2f6d7c70a2563db7438713a5fe900e", - "https://bcr.bazel.build/modules/boost.timer/1.87.0/source.json": "1fee39edf29aa2e4777e9777c981faef4042d1c3687af45e1c829fc973444bf7", - "https://bcr.bazel.build/modules/boost.tokenizer/1.87.0/MODULE.bazel": "48ecacd7bf0fcb7cbf27b55a7d6bf82b988f308666bda2d51840450ea6d62401", - "https://bcr.bazel.build/modules/boost.tokenizer/1.87.0/source.json": "c39ec91706ad8eeab142528eac47737b6fc314b952ffdb9578ab95e5f3c690b4", - "https://bcr.bazel.build/modules/boost.tuple/1.87.0/MODULE.bazel": "94a17666a0d0e875a346b4e8db75ec05e3a1c9c7a681ac5eca80c18e68b5d547", - "https://bcr.bazel.build/modules/boost.tuple/1.87.0/source.json": "5f42023d26b3abefc034817a535d3d0ab06712f4740a93aa4e247287fba1cb47", - "https://bcr.bazel.build/modules/boost.type_index/1.87.0/MODULE.bazel": "a871d18870b21f00c89ba8dd469e027cd697363a9f3dd525176d91e837b8bb38", - "https://bcr.bazel.build/modules/boost.type_index/1.87.0/source.json": "fe14f80f9a857b92af204396d0e81bf57751113e37a77586b9610a7894407092", - "https://bcr.bazel.build/modules/boost.type_traits/1.87.0/MODULE.bazel": "8d2d44e992e85a59b6bd13b145ae27736d932a29e5aec743a0cfd014af5aee27", - "https://bcr.bazel.build/modules/boost.type_traits/1.87.0/source.json": "fd7434b8e36d19a1c8e9349e041ceaf19d0b98e90b6d4c7b86249735907cea34", - "https://bcr.bazel.build/modules/boost.typeof/1.87.0/MODULE.bazel": "c3cd122b8745c835229c58df8c46e81b944996b4bd3822f947873cb617374dd8", - "https://bcr.bazel.build/modules/boost.typeof/1.87.0/source.json": "ba36c7ce360efd31bf7ab5c1503b785de5c8db673056067ff8c7e3e94efccb68", - "https://bcr.bazel.build/modules/boost.unordered/1.87.0/MODULE.bazel": "bfee6daa324bb37c618fc073c50a0754985b9538e13de0e873381d41d634168c", - "https://bcr.bazel.build/modules/boost.unordered/1.87.0/source.json": "3b237fcd1dda18408dbdcb06984e50a13f0688fd0dca480a552f1ff37a6f50b5", - "https://bcr.bazel.build/modules/boost.utility/1.87.0/MODULE.bazel": "8ab710d4feac76acba004a1cac6d64823c812bfeefea18fb7b1a907c86a9ecf6", - "https://bcr.bazel.build/modules/boost.utility/1.87.0/source.json": "ab5744c8cc722dd83c96ae672e01010b944ad4e864e445de66f78164152a7a23", - "https://bcr.bazel.build/modules/boost.variant2/1.87.0/MODULE.bazel": "c0d8e1d486e3080200b74af21f50e4993b0d6dc649ae5700e42fc1d74e1f72b8", - "https://bcr.bazel.build/modules/boost.variant2/1.87.0/source.json": "d57a8992e410f6def5c2e876e53bb21d7907a0df1b9608f59ff90113a4879e67", - "https://bcr.bazel.build/modules/boost.winapi/1.87.0/MODULE.bazel": "b36870b9f3ebe56c1dadd0507fb6ee6b5a59e13c5c0b784baaa509722bd0ffba", - "https://bcr.bazel.build/modules/boost.winapi/1.87.0/source.json": "8e363a11b36f5f78b4d00a4543a8b181313d78abdcc5dec6e438a5c4b2fd2a7e", - "https://bcr.bazel.build/modules/buildozer/8.5.1/MODULE.bazel": "a35d9561b3fc5b18797c330793e99e3b834a473d5fbd3d7d7634aafc9bdb6f8f", - "https://bcr.bazel.build/modules/buildozer/8.5.1/source.json": "e3386e6ff4529f2442800dee47ad28d3e6487f36a1f75ae39ae56c70f0cd2fbd", - "https://bcr.bazel.build/modules/bzip2/1.0.8.bcr.2/MODULE.bazel": "43b570f55b7479bfa7c6675b227ccc3155d56377bb7782f178b2d1733196a435", - "https://bcr.bazel.build/modules/bzip2/1.0.8.bcr.3/MODULE.bazel": "29ecf4babfd3c762be00d7573c288c083672ab60e79c833ff7f49ee662e54471", - "https://bcr.bazel.build/modules/bzip2/1.0.8.bcr.3/source.json": "8be4a3ef2599693f759e5c0990a4cc5a246ac08db4c900a38f852ba25b5c39be", - "https://bcr.bazel.build/modules/elfutils/0.195/MODULE.bazel": "e76f1f423235a390e29c649f266a960a7563270cbffac9cdfb02136d449fc161", - "https://bcr.bazel.build/modules/elfutils/0.195/source.json": "3375293960b28396fc6e403ceebae20cca34537de22e1ad2acf586c3b8780c9f", - "https://bcr.bazel.build/modules/fmt/12.2.0.bcr.1/MODULE.bazel": "1f391c93affc305e3d32fa24024f132e465fcdeec3d39adfb01e7f3869b993a7", - "https://bcr.bazel.build/modules/fmt/12.2.0.bcr.1/source.json": "5a817473cfdd07162adbf555a3cd5c8a798f1f751b87a13a3464dc6d9370b0f3", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.1/MODULE.bazel": "cdf8cbe5ee750db04b78878c9633cc76e80dcf4416cbe982ac3a9222f80713c8", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.3/MODULE.bazel": "f1b7bb2dd53e8f2ef984b39485ec8a44e9076dda5c4b8efd2fb4c6a6e856a31d", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.7/MODULE.bazel": "1e5e03c383fa64ebbe0942a225c32168fd6ef6b270351bbec481d47d19d1b96d", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.7/source.json": "34a83d58ae2f1ef6731d1fc8a1b6f07825741aff3f5993b67b67ec21d2c2946e", - "https://bcr.bazel.build/modules/gazelle/0.32.0/MODULE.bazel": "b499f58a5d0d3537f3cf5b76d8ada18242f64ec474d8391247438bf04f58c7b8", - "https://bcr.bazel.build/modules/gazelle/0.33.0/MODULE.bazel": "a13a0f279b462b784fb8dd52a4074526c4a2afe70e114c7d09066097a46b3350", - "https://bcr.bazel.build/modules/gazelle/0.34.0/MODULE.bazel": "abdd8ce4d70978933209db92e436deb3a8b737859e9354fb5fd11fb5c2004c8a", - "https://bcr.bazel.build/modules/gazelle/0.36.0/MODULE.bazel": "e375d5d6e9a6ca59b0cb38b0540bc9a05b6aa926d322f2de268ad267a2ee74c0", - "https://bcr.bazel.build/modules/gazelle/0.47.0/MODULE.bazel": "b61bb007c4efad134aa30ee7f4a8e2a39b22aa5685f005edaa022fbd1de43ebc", - "https://bcr.bazel.build/modules/gazelle/0.51.3/MODULE.bazel": "618a729142f66de1e2cb776d026413763be5b80d5e3d29ffb9d3d90c5defde90", - "https://bcr.bazel.build/modules/gazelle/0.54.0/MODULE.bazel": "10620287bdf57c55c2321ed5a387ade11c7187aba444fdec583c9f21c3263f45", - "https://bcr.bazel.build/modules/gazelle/0.54.0/source.json": "6c9639ac87508c7edea37bd9d5380581c96defde056ca26518d201a8816805e4", - "https://bcr.bazel.build/modules/gcc_toolchain/0.13.0/MODULE.bazel": "8912be8684729c2814e922aa3555d163d1c6e7dbf620e72753fe44f3761250e4", - "https://bcr.bazel.build/modules/gcc_toolchain/0.13.0/source.json": "41e8693ad56244dde548f7711126deda72eeff630f66f5e2d8403227d4a78097", - "https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb", - "https://bcr.bazel.build/modules/google_benchmark/1.9.5/MODULE.bazel": "8a85cfd90b1e45e6e68f1aa2aa9efce3c04add57df732571d7fd54c07e7c5143", - "https://bcr.bazel.build/modules/google_benchmark/1.9.5/source.json": "0bd357fd9db30ee31d5eb4c78b1086ce3d79b4423ce76de19e8a2fa7b2fa2e10", - "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", - "https://bcr.bazel.build/modules/googletest/1.14.0/MODULE.bazel": "cfbcbf3e6eac06ef9d85900f64424708cc08687d1b527f0ef65aa7517af8118f", - "https://bcr.bazel.build/modules/googletest/1.15.2/MODULE.bazel": "6de1edc1d26cafb0ea1a6ab3f4d4192d91a312fd2d360b63adaa213cd00b2108", - "https://bcr.bazel.build/modules/googletest/1.17.0/MODULE.bazel": "dbec758171594a705933a29fcf69293d2468c49ec1f2ebca65c36f504d72df46", - "https://bcr.bazel.build/modules/googletest/1.17.0/source.json": "38e4454b25fc30f15439c0378e57909ab1fd0a443158aa35aec685da727cd713", - "https://bcr.bazel.build/modules/hermetic_launcher/0.0.17/MODULE.bazel": "afa67883ae04001c93578f80c39e5ec9231ae670978bc380778baf66e1936ad5", - "https://bcr.bazel.build/modules/hermetic_launcher/0.0.17/source.json": "46ee01ccb275e46f59a3c070f91be52eb113405efe577a99365dd69f168713ef", - "https://bcr.bazel.build/modules/jq.bzl/0.1.0/MODULE.bazel": "2ce69b1af49952cd4121a9c3055faa679e748ce774c7f1fda9657f936cae902f", - "https://bcr.bazel.build/modules/jq.bzl/0.4.0/MODULE.bazel": "a7b39b37589f2b0dad53fd6c1ccaabbdb290330caa920d7ef3e6aad068cd4ab2", - "https://bcr.bazel.build/modules/jq.bzl/0.4.0/source.json": "52ec7530c4618e03f634b30ff719814a68d7d39c235938b7aa2abbfe1eb1c52c", - "https://bcr.bazel.build/modules/jsoncpp/1.9.6.bcr.2/MODULE.bazel": "64f508885f907ac2518039b3d0c5c1703a8f6137d9f5d635067ba93d33c2670a", - "https://bcr.bazel.build/modules/jsoncpp/1.9.6.bcr.2/source.json": "13199fa0a267ca46814e9e6ab313a71890c8f1822e57376fdc23a2d2cd384051", - "https://bcr.bazel.build/modules/libpfm/4.11.0.bcr.1/MODULE.bazel": "e5362dadc90aab6724c83a2cc1e67cbed9c89a05d97fb1f90053c8deb1e445c8", - "https://bcr.bazel.build/modules/libpfm/4.11.0.bcr.1/source.json": "0646414d9037f8aad148781dd760bec90b0b25ac12fda5e03f8aadbd6b9c61e6", - "https://bcr.bazel.build/modules/libpfm/4.11.0/MODULE.bazel": "45061ff025b301940f1e30d2c16bea596c25b176c8b6b3087e92615adbd52902", - "https://bcr.bazel.build/modules/libxml2/2.15.3/MODULE.bazel": "a6bffafd8aa8b0c13eaa4bf25d55be188ec8548549395f03e98c39bab264adaa", - "https://bcr.bazel.build/modules/libxml2/2.15.4/MODULE.bazel": "8d0bca5635a3ba19dddd0fcf0578b032f3c127f597e7f6b24cec3462bf10b824", - "https://bcr.bazel.build/modules/libxml2/2.15.4/source.json": "8495e801060e7d4edb558fa1f02ccdbc4653e572e83103b4d723c9b80bfb53b6", - "https://bcr.bazel.build/modules/llvm/0.8.26/MODULE.bazel": "633a1076b1f20d4e6be387fa22f0b99a1b7e7d94d07b60a70c67f4f91f369423", - "https://bcr.bazel.build/modules/llvm/0.8.26/source.json": "2d6d463638dfec25acfcc8cefc56f8ad8fb215b7b1e699b3c2840590ce328fc1", - "https://bcr.bazel.build/modules/lua/5.4.6.bcr.1/MODULE.bazel": "8e3b950c34f8963eb57cca78fa4d37d81bc703aca155a9ca659f2643d38b8e94", - "https://bcr.bazel.build/modules/lua/5.4.6.bcr.1/source.json": "5b09c069b5837ba333df2aaa9f82ab987365f07b0845d4d1029216e23f3721cf", - "https://bcr.bazel.build/modules/mimalloc/3.5.3/MODULE.bazel": "d4555726ceff5240bef25b0ec38b1c80c68337eec2b4b5df20cf611df1383e6a", - "https://bcr.bazel.build/modules/mimalloc/3.5.3/source.json": "e94e4baf53f881236b86b16c436c6ab4a338b37135e370154802a7111c0dda28", - "https://bcr.bazel.build/modules/nlohmann_json/3.12.0.bcr.1/MODULE.bazel": "a1c8bb07b5b91d971727c635f449d05623ac9608f6fe4f5f04254ea12f08e349", - "https://bcr.bazel.build/modules/nlohmann_json/3.12.0.bcr.1/source.json": "93f82a5ae985eb935c539bfee95e04767187818189241ac956f3ccadbdb8fb02", - "https://bcr.bazel.build/modules/package_metadata/0.0.13/MODULE.bazel": "a9cc7e81640c1e7eaca5a465cdf4b63c88d416ca998fcded3680181b1602eee2", - "https://bcr.bazel.build/modules/package_metadata/0.0.13/source.json": "f488e4534468eac223f6417dfdf8d3b7299166d36536408d37c2493ca1e8539d", - "https://bcr.bazel.build/modules/package_metadata/0.0.2/MODULE.bazel": "fb8d25550742674d63d7b250063d4580ca530499f045d70748b1b142081ebb92", - "https://bcr.bazel.build/modules/package_metadata/0.0.3/MODULE.bazel": "77890552ecea9e284b5424c9de827a58099348763a4359e975c359a83d4faa83", - "https://bcr.bazel.build/modules/package_metadata/0.0.5/MODULE.bazel": "ef4f9439e3270fdd6b9fd4dbc3d2f29d13888e44c529a1b243f7a31dfbc2e8e4", - "https://bcr.bazel.build/modules/package_metadata/0.0.6/MODULE.bazel": "341dab6f417197494517d54c8e557c0baee1de7aec83543a4fbefe57900acb7e", - "https://bcr.bazel.build/modules/package_metadata/0.0.7/MODULE.bazel": "7adb03933fc8401f495800cf4eafcff0edc6da0ff55c7db223ef69d19f689486", - "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5", - "https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f", - "https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee", - "https://bcr.bazel.build/modules/platforms/0.0.5/MODULE.bazel": "5733b54ea419d5eaf7997054bb55f6a1d0b5ff8aedf0176fef9eea44f3acda37", - "https://bcr.bazel.build/modules/platforms/0.0.6/MODULE.bazel": "ad6eeef431dc52aefd2d77ed20a4b353f8ebf0f4ecdd26a807d2da5aa8cd0615", - "https://bcr.bazel.build/modules/platforms/0.0.7/MODULE.bazel": "72fd4a0ede9ee5c021f6a8dd92b503e089f46c227ba2813ff183b71616034814", - "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", - "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", - "https://bcr.bazel.build/modules/platforms/1.0.0/MODULE.bazel": "f05feb42b48f1b3c225e4ccf351f367be0371411a803198ec34a389fb22aa580", - "https://bcr.bazel.build/modules/platforms/1.1.0/MODULE.bazel": "1c0c09f5bdcf4b3f924720d2478a3711cb39f4977019ca5988685e5b7e18b3d2", - "https://bcr.bazel.build/modules/platforms/1.1.0/source.json": "fcf351c47596c939140ab0d333dfdd08ed1ea6ce33c2fe70c12493a301cf1344", - "https://bcr.bazel.build/modules/protobuf/36.2/MODULE.bazel": "7c2b9060f7770778a606e2147e69a17465e2a08c61bfb337eaf2da61aaf62b5f", - "https://bcr.bazel.build/modules/protobuf/36.2/source.json": "f9167721eeaa0f65b255aa30f1eb7d7655617d8d63823c3c48521159cf67672f", - "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1/MODULE.bazel": "88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e", - "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/MODULE.bazel": "e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34", - "https://bcr.bazel.build/modules/pybind11_bazel/3.0.0/MODULE.bazel": "a2bfa6020ed603a00d944161c63173c7f109774e99bee0c2cd8dbf24159f8134", - "https://bcr.bazel.build/modules/pybind11_bazel/3.0.0/source.json": "d8f5104d4c21d272bf327ebe44366fb0b4c036cdaa1f5cceb21a408ca4ef2ef8", - "https://bcr.bazel.build/modules/re2/2023-09-01/MODULE.bazel": "cb3d511531b16cfc78a225a9e2136007a48cf8a677e4264baeab57fe78a80206", - "https://bcr.bazel.build/modules/re2/2024-07-02.bcr.1/MODULE.bazel": "b4963dda9b31080be1905ef085ecd7dd6cd47c05c79b9cdf83ade83ab2ab271a", - "https://bcr.bazel.build/modules/re2/2024-07-02/MODULE.bazel": "0eadc4395959969297cbcf31a249ff457f2f1d456228c67719480205aa306daa", - "https://bcr.bazel.build/modules/re2/2025-11-05.bcr.1/MODULE.bazel": "3d9d4995833fc0334fc5c88b56a05288dd25d651544cd7b2233bbd6357bbeba0", - "https://bcr.bazel.build/modules/re2/2025-11-05.bcr.1/source.json": "7df1394aabda1c9bc188a302f5d54b1c657924edd04ebc57d2be29dbd7efd141", - "https://bcr.bazel.build/modules/rules_android/0.8.0/MODULE.bazel": "92961a7a1218694a31fa748eba164db2721f5c42f2d7ed3325c52b19d00ae2f5", - "https://bcr.bazel.build/modules/rules_android/0.8.0/source.json": "efec84c34a78d0b6a23b7a07d51e810942428a5b980857284806d0a59762591f", - "https://bcr.bazel.build/modules/rules_apple/4.1.0/MODULE.bazel": "76e10fd4a48038d3fc7c5dc6e63b7063bbf5304a2e3bd42edda6ec660eebea68", - "https://bcr.bazel.build/modules/rules_apple/5.2.0/MODULE.bazel": "9b46da6889ba44e1b61dda2b4456f69606064cf38a95c1aacab5ae408f2aa735", - "https://bcr.bazel.build/modules/rules_apple/5.4.0/MODULE.bazel": "35332c590fdb8e03f208e200b6077856b2504ef8fd52aebca729d1a4e2ced010", - "https://bcr.bazel.build/modules/rules_apple/5.4.0/source.json": "7dd022593cf2800dc16c7e581a0fc45743f0e6c7ea52bbf125bc42f0295657ba", - "https://bcr.bazel.build/modules/rules_batch/0.1.1/MODULE.bazel": "d86a3773a3aed23878baaf7263917ea7dd71d2100934e989d2f303246389fdcb", - "https://bcr.bazel.build/modules/rules_batch/0.1.1/source.json": "7280584357144d887d386f436ea0e8f9629a68d6396458f65f5fb4e49d8a185d", - "https://bcr.bazel.build/modules/rules_cc/0.0.1/MODULE.bazel": "cb2aa0747f84c6c3a78dad4e2049c154f08ab9d166b1273835a8174940365647", - "https://bcr.bazel.build/modules/rules_cc/0.0.10/MODULE.bazel": "ec1705118f7eaedd6e118508d3d26deba2a4e76476ada7e0e3965211be012002", - "https://bcr.bazel.build/modules/rules_cc/0.0.15/MODULE.bazel": "6704c35f7b4a72502ee81f61bf88706b54f06b3cbe5558ac17e2e14666cd5dcc", - "https://bcr.bazel.build/modules/rules_cc/0.0.17/MODULE.bazel": "2ae1d8f4238ec67d7185d8861cb0a2cdf4bc608697c331b95bf990e69b62e64a", - "https://bcr.bazel.build/modules/rules_cc/0.0.2/MODULE.bazel": "6915987c90970493ab97393024c156ea8fb9f3bea953b2f3ec05c34f19b5695c", - "https://bcr.bazel.build/modules/rules_cc/0.0.6/MODULE.bazel": "abf360251023dfe3efcef65ab9d56beefa8394d4176dd29529750e1c57eaa33f", - "https://bcr.bazel.build/modules/rules_cc/0.0.8/MODULE.bazel": "964c85c82cfeb6f3855e6a07054fdb159aced38e99a5eecf7bce9d53990afa3e", - "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel": "836e76439f354b89afe6a911a7adf59a6b2518fafb174483ad78a2a2fde7b1c5", - "https://bcr.bazel.build/modules/rules_cc/0.1.1/MODULE.bazel": "2f0222a6f229f0bf44cd711dc13c858dad98c62d52bd51d8fc3a764a83125513", - "https://bcr.bazel.build/modules/rules_cc/0.1.2/MODULE.bazel": "557ddc3a96858ec0d465a87c0a931054d7dcfd6583af2c7ed3baf494407fd8d0", - "https://bcr.bazel.build/modules/rules_cc/0.1.5/MODULE.bazel": "88dfc9361e8b5ae1008ac38f7cdfd45ad738e4fa676a3ad67d19204f045a1fd8", - "https://bcr.bazel.build/modules/rules_cc/0.2.0/MODULE.bazel": "b5c17f90458caae90d2ccd114c81970062946f49f355610ed89bebf954f5783c", - "https://bcr.bazel.build/modules/rules_cc/0.2.13/MODULE.bazel": "eecdd666eda6be16a8d9dc15e44b5c75133405e820f620a234acc4b1fdc5aa37", - "https://bcr.bazel.build/modules/rules_cc/0.2.14/MODULE.bazel": "353c99ed148887ee89c54a17d4100ae7e7e436593d104b668476019023b58df8", - "https://bcr.bazel.build/modules/rules_cc/0.2.15/MODULE.bazel": "6a0a4a75a57aa6dc888300d848053a58c6b12a29f89d4304e1c41448514ec6e8", - "https://bcr.bazel.build/modules/rules_cc/0.2.16/MODULE.bazel": "9242fa89f950c6ef7702801ab53922e99c69b02310c39fb6e62b2bd30df2a1d4", - "https://bcr.bazel.build/modules/rules_cc/0.2.17/MODULE.bazel": "1849602c86cb60da8613d2de887f9566a6d354a6df6d7009f9d04a14402f9a84", - "https://bcr.bazel.build/modules/rules_cc/0.2.18/MODULE.bazel": "4460ec36adc8f722a6a2a4ac9374cb91f2acebadaa93fc37966129afb3dece87", - "https://bcr.bazel.build/modules/rules_cc/0.2.20/MODULE.bazel": "f5c07bce5ddcb99be21a0812ff5aadb439e688b7449c6542152363b2fd859c1a", - "https://bcr.bazel.build/modules/rules_cc/0.2.25/MODULE.bazel": "4a3d4f3606d3b3190be495dbc497acca552807d1d5540661ef0d1658472882e3", - "https://bcr.bazel.build/modules/rules_cc/0.2.26/MODULE.bazel": "a9f7b7f4a52747910965bddb1f58fc1fef50604ed1980ebdd16ea6f446d92249", - "https://bcr.bazel.build/modules/rules_cc/0.2.27/MODULE.bazel": "99483699eeba3ec1159e938d724134762e748e8dc16dd0d8cbcc3d01a3d19440", - "https://bcr.bazel.build/modules/rules_cc/0.2.27/source.json": "a1e5e45c8a56ec19fadf109ef34abb06979982badf55a504d3f82a1258d83e3f", - "https://bcr.bazel.build/modules/rules_cc/0.2.4/MODULE.bazel": "1ff1223dfd24f3ecf8f028446d4a27608aa43c3f41e346d22838a4223980b8cc", - "https://bcr.bazel.build/modules/rules_cc/0.2.8/MODULE.bazel": "f1df20f0bf22c28192a794f29b501ee2018fa37a3862a1a2132ae2940a23a642", - "https://bcr.bazel.build/modules/rules_cc/0.2.9/MODULE.bazel": "34263f1dca62ea664265438cef714d7db124c03e1ed55ebb4f1dc860164308d1", - "https://bcr.bazel.build/modules/rules_dart/0.8.1/MODULE.bazel": "33619834fd31d962818d096d9a39195a8c656752e0734237e159254df9b3dc79", - "https://bcr.bazel.build/modules/rules_dart/0.8.1/source.json": "ef64102b1100ed61c1eb00e11ee049265523d8469d624e7e8a4484cac55a321f", - "https://bcr.bazel.build/modules/rules_flutter/0.0.8/MODULE.bazel": "8066f31443a0dcc2b198ce64149d60569f13cb2b497e94095c3a16420bd0ac9d", - "https://bcr.bazel.build/modules/rules_flutter/0.0.8/source.json": "c932c3f0d3e84b433e914e9057c5188b32539f6fe68f620699081a7c40e8dc0e", - "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", - "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel": "55861d8e8bb0e62cbd2896f60ff303f62ffcb0eddb74ecb0e5c0cbe36fc292c8", - "https://bcr.bazel.build/modules/rules_go/0.42.0/MODULE.bazel": "8cfa875b9aa8c6fce2b2e5925e73c1388173ea3c32a0db4d2b4804b453c14270", - "https://bcr.bazel.build/modules/rules_go/0.46.0/MODULE.bazel": "3477df8bdcc49e698b9d25f734c4f3a9f5931ff34ee48a2c662be168f5f2d3fd", - "https://bcr.bazel.build/modules/rules_go/0.53.0/MODULE.bazel": "a4ed760d3ac0dbc0d7b967631a9a3fd9100d28f7d9fcf214b4df87d4bfff5f9a", - "https://bcr.bazel.build/modules/rules_go/0.59.0/MODULE.bazel": "b7e43e7414a3139a7547d1b4909b29085fbe5182b6c58cbe1ed4c6272815aeae", - "https://bcr.bazel.build/modules/rules_go/0.62.0/MODULE.bazel": "8ee616065c3d2b2f7ac0880108316ce8d0c332b3a30aad24e95c0bc124ec853e", - "https://bcr.bazel.build/modules/rules_go/0.64.2/MODULE.bazel": "178287400ec88bc4e20c048b5cf9b8e619d9879eb6118592f8572e49d5342c74", - "https://bcr.bazel.build/modules/rules_go/0.65.0/MODULE.bazel": "9aedb8cc7186d99881b438b545334e6c8ea38619a43b79b4240d1181d5e88abe", - "https://bcr.bazel.build/modules/rules_go/0.65.0/source.json": "36eb4ae1387d5f910968c277de3f8d91627c7b3a321f3b3de166ea7014fd00f3", - "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", - "https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86", - "https://bcr.bazel.build/modules/rules_java/6.0.0/MODULE.bazel": "8a43b7df601a7ec1af61d79345c17b31ea1fedc6711fd4abfd013ea612978e39", - "https://bcr.bazel.build/modules/rules_java/6.3.0/MODULE.bazel": "a97c7678c19f236a956ad260d59c86e10a463badb7eb2eda787490f4c969b963", - "https://bcr.bazel.build/modules/rules_java/7.12.2/MODULE.bazel": "579c505165ee757a4280ef83cda0150eea193eed3bef50b1004ba88b99da6de6", - "https://bcr.bazel.build/modules/rules_java/7.3.2/MODULE.bazel": "50dece891cfdf1741ea230d001aa9c14398062f2b7c066470accace78e412bc2", - "https://bcr.bazel.build/modules/rules_java/7.4.0/MODULE.bazel": "a592852f8a3dd539e82ee6542013bf2cadfc4c6946be8941e189d224500a8934", - "https://bcr.bazel.build/modules/rules_java/7.6.0/MODULE.bazel": "14cd36d05b60aa53c345b5b436c1c4a1f1dec58e82e480ffb9657038e323d330", - "https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe", - "https://bcr.bazel.build/modules/rules_java/8.6.0/MODULE.bazel": "9c064c434606d75a086f15ade5edb514308cccd1544c2b2a89bbac4310e41c71", - "https://bcr.bazel.build/modules/rules_java/8.6.1/MODULE.bazel": "f4808e2ab5b0197f094cabce9f4b006a27766beb6a9975931da07099560ca9c2", - "https://bcr.bazel.build/modules/rules_java/8.9.0/MODULE.bazel": "e17c876cb53dcd817b7b7f0d2985b710610169729e8c371b2221cacdcd3dce4a", - "https://bcr.bazel.build/modules/rules_java/9.1.0/MODULE.bazel": "ee63f27e36a3fada80342869361182f120a9819c74320e8e65b1e04ba0cd7a9d", - "https://bcr.bazel.build/modules/rules_java/9.3.0/MODULE.bazel": "f657c72d65ac449caae9abf2e68e66c0d36f9416848c4c4903d0b3234229e7f2", - "https://bcr.bazel.build/modules/rules_java/9.9.0/MODULE.bazel": "6b2092957b4849ffcbb84d5c7fe0d5a4582f5e3062bc84d607122ac4ef832e55", - "https://bcr.bazel.build/modules/rules_java/9.9.0/source.json": "9c4e694db18812d19b5c1e279ba9dffc1adc3fcac163896829f374a7c426fe12", - "https://bcr.bazel.build/modules/rules_julia/0.8.0/MODULE.bazel": "8d0283ad5e93092dcf7f1c6320c844b30cae1e1b52c7a15c221da090a98f02d4", - "https://bcr.bazel.build/modules/rules_julia/0.8.0/source.json": "8911ab3baabdf30d74a36423ab2890d9d6b32b0174afd1807b7ba7bfaee06a8b", - "https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036", - "https://bcr.bazel.build/modules/rules_jvm_external/6.1/MODULE.bazel": "75b5fec090dbd46cf9b7d8ea08cf84a0472d92ba3585b476f44c326eda8059c4", - "https://bcr.bazel.build/modules/rules_jvm_external/6.2/MODULE.bazel": "36a6e52487a855f33cb960724eb56547fa87e2c98a0474c3acad94339d7f8e99", - "https://bcr.bazel.build/modules/rules_jvm_external/6.7/MODULE.bazel": "e717beabc4d091ecb2c803c2d341b88590e9116b8bf7947915eeb33aab4f96dd", - "https://bcr.bazel.build/modules/rules_jvm_external/6.8/MODULE.bazel": "b5afe861e867e4c8e5b88e401cb7955bd35924258f97b1862cc966cbcf4f1a62", - "https://bcr.bazel.build/modules/rules_jvm_external/6.9/MODULE.bazel": "07c5db05527db7744a54fcffd653e1550d40e0540207a7f7e6d0a4de5bef8274", - "https://bcr.bazel.build/modules/rules_jvm_external/7.1/MODULE.bazel": "e151b1beaa45bfc9e5de4df637d980e27039eb2b1092a95972bf2adbf99ac1a0", - "https://bcr.bazel.build/modules/rules_jvm_external/7.2/MODULE.bazel": "e4f60a972780ca22128d5377d6131b4f9c000854e8bc89e212202676e41e78ce", - "https://bcr.bazel.build/modules/rules_jvm_external/7.2/source.json": "b0e87d55b9c5dd01852ad75641e62f16e5bcbaedd40cb43fc2a2738840e678ff", - "https://bcr.bazel.build/modules/rules_kotlin/2.4.21/MODULE.bazel": "a7f6b1c34486c5112c2d461ce70e14d07421a01519580ba825ef4ade4218b131", - "https://bcr.bazel.build/modules/rules_kotlin/2.4.21/source.json": "c42c737b7acef4e695ce40c68aec5cb6f5f8ed14b1863f2bb3236345e547cf70", - "https://bcr.bazel.build/modules/rules_license/0.0.3/MODULE.bazel": "627e9ab0247f7d1e05736b59dbb1b6871373de5ad31c3011880b4133cafd4bd0", - "https://bcr.bazel.build/modules/rules_license/0.0.7/MODULE.bazel": "088fbeb0b6a419005b89cf93fe62d9517c0a2b8bb56af3244af65ecfe37e7d5d", - "https://bcr.bazel.build/modules/rules_license/1.0.0/MODULE.bazel": "a7fda60eefdf3d8c827262ba499957e4df06f659330bbe6cdbdb975b768bb65c", - "https://bcr.bazel.build/modules/rules_license/1.0.0/source.json": "a52c89e54cc311196e478f8382df91c15f7a2bfdf4c6cd0e2675cc2ff0b56efb", - "https://bcr.bazel.build/modules/rules_m4/0.3.1/MODULE.bazel": "dcfb70aa14ba4ab99bcda9605d6fd0c8de4531a74bf854fb76ecd9f93a6f1e7e", - "https://bcr.bazel.build/modules/rules_m4/0.3.1/source.json": "43e9093a7921c709a70395f4af26da7af6e1419c8e9d76726bce1ea9d90557fd", - "https://bcr.bazel.build/modules/rules_nodejs/6.2.0/MODULE.bazel": "ec27907f55eb34705adb4e8257952162a2d4c3ed0f0b3b4c3c1aad1fac7be35e", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.3/MODULE.bazel": "c22a48b2a0dbf05a9dc5f83837bbc24c226c1f6e618de3c3a610044c9f336056", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.4/MODULE.bazel": "e6a241a55c82e999145553d2e00a08fc6ebadf62b63d108fb5e984696ffd0bd2", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.7/MODULE.bazel": "e80c95eebba3e38fa28ea0553ec580e4bffbbe8d0e8fa892457fa0e6b616f3d8", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.7/source.json": "60081c2448d70db3c5c0e75f55c0a55a22b2144646c21977c46c4986dacacdb6", - "https://bcr.bazel.build/modules/rules_oci/2.3.0/MODULE.bazel": "49075197960c924c0a4d759b7c765c3d00a41d2fdd4a943b42823c1d016ab4ec", - "https://bcr.bazel.build/modules/rules_oci/2.3.0/source.json": "47710c28446211b5e61a24015a4669c50c6862d5f91e6bdbc710de8d750cf613", - "https://bcr.bazel.build/modules/rules_perl/1.5.0/MODULE.bazel": "7a7cb1197e01287cded2c7c46a11e921ab5eb4a3a3b834dcf734740a5d656b02", - "https://bcr.bazel.build/modules/rules_perl/1.5.0/source.json": "d7d3504a77bb226609e4258033973b58d8ccc84acde048a08d825da84df5b197", - "https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff", - "https://bcr.bazel.build/modules/rules_pkg/1.3.0/MODULE.bazel": "ae0bdefbacc990c91f843206c90cf0f4be620639a5bf22119043599ba86d51a3", - "https://bcr.bazel.build/modules/rules_pkg/1.3.0/source.json": "58ae84c545141762f7c434c0ce78bfb55ef0be08d84863e7f0503fff135fe4e2", - "https://bcr.bazel.build/modules/rules_proto/4.0.0/MODULE.bazel": "a7a7b6ce9bee418c1a760b3d84f83a299ad6952f9903c67f19e4edd964894e06", - "https://bcr.bazel.build/modules/rules_proto/6.0.0/MODULE.bazel": "b531d7f09f58dce456cd61b4579ce8c86b38544da75184eadaf0a7cb7966453f", - "https://bcr.bazel.build/modules/rules_proto/6.0.2/MODULE.bazel": "ce916b775a62b90b61888052a416ccdda405212b6aaeb39522f7dc53431a5e73", - "https://bcr.bazel.build/modules/rules_proto/7.0.2/MODULE.bazel": "bf81793bd6d2ad89a37a40693e56c61b0ee30f7a7fdbaf3eabbf5f39de47dea2", - "https://bcr.bazel.build/modules/rules_proto/7.1.0/MODULE.bazel": "002d62d9108f75bb807cd56245d45648f38275cb3a99dcd45dfb864c5d74cb96", - "https://bcr.bazel.build/modules/rules_proto/7.1.0/source.json": "39f89066c12c24097854e8f57ab8558929f9c8d474d34b2c00ac04630ad8940e", - "https://bcr.bazel.build/modules/rules_python/2.4.6/MODULE.bazel": "edd87d5af3d4cc3c6e233c4450209bad2f4d6124d24c647670ee8062cfdf822e", - "https://bcr.bazel.build/modules/rules_python/2.4.6/source.json": "2e5154205999e263cdee7399111b09acfb9361a205f29e95af93f9423be674d6", - "https://bcr.bazel.build/modules/rules_robolectric/4.14.1.2/MODULE.bazel": "d44fec647d0aeb67b9f3b980cf68ba634976f3ae7ccd6c07d790b59b87a4f251", - "https://bcr.bazel.build/modules/rules_robolectric/4.14.1.2/source.json": "37c10335f2361c337c5c1f34ed36d2da70534c23088062b33a8bdaab68aa9dea", - "https://bcr.bazel.build/modules/rules_rust/0.75.0/MODULE.bazel": "77452ad75faf65400abc8d0956033d5732c68d39478c9ac064288d3f484f6e34", - "https://bcr.bazel.build/modules/rules_rust/0.75.0/source.json": "6205a2156646606f99828f217931f4cd5c68f3ada35916dab6601020358bfc63", - "https://bcr.bazel.build/modules/rules_rust_prost/0.75.0/MODULE.bazel": "352c97c54b4938acaae4f5be9cf380845d56ce6f062cf161f78059764f7d901a", - "https://bcr.bazel.build/modules/rules_rust_prost/0.75.0/source.json": "fdd8bb6bd5fca6d0f672a2438312016e91c8010fdd9c9355a8eec4f503aa5ac5", - "https://bcr.bazel.build/modules/rules_rust_wasm_bindgen/0.75.0/MODULE.bazel": "2da21af41a035b2c603b2b8fe768d63746df1bae69fadd2d762c0436cd601ac8", - "https://bcr.bazel.build/modules/rules_rust_wasm_bindgen/0.75.0/source.json": "f0ce711d9162d4fda731e58d2939358d70bc35ac641c9890f998e6852842cec2", - "https://bcr.bazel.build/modules/rules_scala/7.4.1/MODULE.bazel": "74174791015794a463fb0f1e5b68d281dbb64d0afea01a539b21abe922eab79d", - "https://bcr.bazel.build/modules/rules_scala/7.4.1/source.json": "6d44092458477113b4f1b0e2eaad2475afbb13ecad97ac04a5ee5112be55b1fe", - "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", - "https://bcr.bazel.build/modules/rules_shell/0.3.0/MODULE.bazel": "de4402cd12f4cc8fda2354fce179fdb068c0b9ca1ec2d2b17b3e21b24c1a937b", - "https://bcr.bazel.build/modules/rules_shell/0.4.1/MODULE.bazel": "00e501db01bbf4e3e1dd1595959092c2fadf2087b2852d3f553b5370f5633592", - "https://bcr.bazel.build/modules/rules_shell/0.6.1/MODULE.bazel": "72e76b0eea4e81611ef5452aa82b3da34caca0c8b7b5c0c9584338aa93bae26b", - "https://bcr.bazel.build/modules/rules_shell/0.7.1/MODULE.bazel": "257dd8d667371de804918dfceb86f6ddd2e1b5e025f5d9322878d4a73dc8aa58", - "https://bcr.bazel.build/modules/rules_shell/0.8.0/MODULE.bazel": "f6a89f1d6a669a26f28fe814503857055d76306b79cfc11d12399af08d0b80ae", - "https://bcr.bazel.build/modules/rules_shell/0.8.0/source.json": "eb53cc815bc503c6683c5fe12d943f98883f81fc22f51403ec8a95610cba4195", - "https://bcr.bazel.build/modules/rules_swift/4.2.2/MODULE.bazel": "dce65c0c22c5880dc0060b525dbbb7c44ede24e317e27509064512aa92fe237e", - "https://bcr.bazel.build/modules/rules_swift/4.2.2/source.json": "4d8348d47ac5495a40a86235fff26202f9e578188fae00dec806b7c6d9d73487", - "https://bcr.bazel.build/modules/rules_zig/0.17.0/MODULE.bazel": "2c1c08adc986cfdb5fee97e21982cac846f8a20a6a8054ae9cab8b02721c2011", - "https://bcr.bazel.build/modules/rules_zig/0.17.0/source.json": "488f71f57c596ed9b7635ebeb28066b23c6fc1802c30749d06bdad261d7b04a2", - "https://bcr.bazel.build/modules/sqlite3/3.53.4/MODULE.bazel": "1827a71c19204893597a5cd8450d4ca0a64ddea87641522499051407f9c13b77", - "https://bcr.bazel.build/modules/sqlite3/3.53.4/source.json": "3e645ccf3ad53c308491605be7dbf5259b4bdf8274bf186c8e739a18ab2f4eb2", - "https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c", - "https://bcr.bazel.build/modules/stardoc/0.5.4/MODULE.bazel": "6569966df04610b8520957cb8e97cf2e9faac2c0309657c537ab51c16c18a2a4", - "https://bcr.bazel.build/modules/stardoc/0.5.6/MODULE.bazel": "c43dabc564990eeab55e25ed61c07a1aadafe9ece96a4efabb3f8bf9063b71ef", - "https://bcr.bazel.build/modules/stardoc/0.6.2/MODULE.bazel": "7060193196395f5dd668eda046ccbeacebfd98efc77fed418dbe2b82ffaa39fd", - "https://bcr.bazel.build/modules/stardoc/0.7.0/MODULE.bazel": "05e3d6d30c099b6770e97da986c53bd31844d7f13d41412480ea265ac9e8079c", - "https://bcr.bazel.build/modules/stardoc/0.7.1/MODULE.bazel": "3548faea4ee5dda5580f9af150e79d0f6aea934fc60c1cc50f4efdd9420759e7", - "https://bcr.bazel.build/modules/stardoc/0.7.1/source.json": "b6500ffcd7b48cd72c29bb67bcac781e12701cc0d6d55d266a652583cfcdab01", - "https://bcr.bazel.build/modules/swift_argument_parser/1.7.0/MODULE.bazel": "40d4e44950e44973dcf8590bcee637591de196b5dbe3696d07eb342b74d53672", - "https://bcr.bazel.build/modules/swift_argument_parser/1.7.0/source.json": "b9b952cba0c748083b9b891e6ac46d347c92d37e8a92ead96d2a54b966bacd87", - "https://bcr.bazel.build/modules/tar.bzl/0.10.1/MODULE.bazel": "bf5fda5b5ccef8c3c4a5f4886144377386e0baa382972f257acb42dcf40ea908", - "https://bcr.bazel.build/modules/tar.bzl/0.10.4/MODULE.bazel": "e8f9ff79199e8d9eaad7f1b0a77ad74b30bb82d794b87d8ca942bead5de83ae9", - "https://bcr.bazel.build/modules/tar.bzl/0.10.9/MODULE.bazel": "4636f5f6a7c34d3d0653634ed95a34560426d548c5301c6c5924c885ef737b46", - "https://bcr.bazel.build/modules/tar.bzl/0.10.9/source.json": "30a5cf0a8281adce53ab1c5a4291e88b2c161e2df1feb6cba4ee50556f1748d7", - "https://bcr.bazel.build/modules/tar.bzl/0.2.1/MODULE.bazel": "52d1c00a80a8cc67acbd01649e83d8dd6a9dc426a6c0b754a04fe8c219c76468", - "https://bcr.bazel.build/modules/tar.bzl/0.5.1/MODULE.bazel": "7c2eb3dcfc53b0f3d6f9acdfd911ca803eaf92aadf54f8ca6e4c1f3aee288351", - "https://bcr.bazel.build/modules/tar.bzl/0.6.0/MODULE.bazel": "a3584b4edcfafcabd9b0ef9819808f05b372957bbdff41601429d5fd0aac2e7c", - "https://bcr.bazel.build/modules/tar.bzl/0.7.0/MODULE.bazel": "cc1acd85da33c80e430b65219a620d54d114628df24a618c3a5fa0b65e988da9", - "https://bcr.bazel.build/modules/toml.bzl/0.3.0/MODULE.bazel": "5016e5dd1ad2200e119a4b28b2b3935e276c4b480f2fe3e952bea7eeba88f578", - "https://bcr.bazel.build/modules/toml.bzl/0.4.1/MODULE.bazel": "6bc0b938f03ade8d58c2fca0ad5c3fa12b4764e1e1927ad50b0c860286db2167", - "https://bcr.bazel.build/modules/toml.bzl/0.5.0/MODULE.bazel": "29c04b37a3f50c8dfcdc0c742eec7561ecb3d0cfea353bdb445ad8f6e0c81370", - "https://bcr.bazel.build/modules/toml.bzl/0.5.0/source.json": "a80e38d7d03cee9de004f49f0b817943332fc357ec0ca9b123a334ac6e9722ca", - "https://bcr.bazel.build/modules/windows_support/0.4.1/MODULE.bazel": "2287f95ac65c48ea05197f626a9b5711ea3c88cea61f2a5782882bdd55fdeb51", - "https://bcr.bazel.build/modules/windows_support/0.4.1/source.json": "bdb72e6717b00135e0a4a8512b3f6b626df0baea0bde74bf7312c7484f791287", - "https://bcr.bazel.build/modules/with_cfg.bzl/0.12.0/MODULE.bazel": "b573395fe63aef4299ba095173e2f62ccfee5ad9bbf7acaa95dba73af9fc2b38", - "https://bcr.bazel.build/modules/with_cfg.bzl/0.12.0/source.json": "3f3fbaeafecaf629877ad152a2c9def21f8d330d91aa94c5dc75bbb98c10b8b8", - "https://bcr.bazel.build/modules/xctestrunner/0.2.16-20260212-4c6f493/MODULE.bazel": "df9d74c77698e7dbc52a65ebdd6de5727044e98121ac309b5d046f2d04121d56", - "https://bcr.bazel.build/modules/xctestrunner/0.2.16-20260212-4c6f493/source.json": "73a5421c8ef51cd455a572dee5bb9415351ab5acbcb65d4efa56a574790bd2f2", - "https://bcr.bazel.build/modules/yaml.bzl/0.1.2/MODULE.bazel": "bd9b2434761c3b1ee41e77fcda787af3bcd7874513d1a5eba4a7395cbd5ed618", - "https://bcr.bazel.build/modules/yaml.bzl/0.1.2/source.json": "fc9af4a6e1ebc109f7d9d85cd75f112d495b448a8defa88af9c2a2148be0498a", - "https://bcr.bazel.build/modules/yq.bzl/0.1.1/MODULE.bazel": "9039681f9bcb8958ee2c87ffc74bdafba9f4369096a2b5634b88abc0eaefa072", - "https://bcr.bazel.build/modules/yq.bzl/0.3.2/MODULE.bazel": "0384efa70e8033d842ea73aa4b7199fa099709e236a7264345c03937166670b6", - "https://bcr.bazel.build/modules/yq.bzl/0.3.4/MODULE.bazel": "d3a270662f5d766cd7229732d65a5a5bc485240c3007343dd279edfb60c9ae27", - "https://bcr.bazel.build/modules/yq.bzl/0.3.4/source.json": "786dafdc2843722da3416e4343ee1a05237227f068590779a6e8496a2064c0f9", - "https://bcr.bazel.build/modules/zlib-ng/2.3.3.bcr.2/MODULE.bazel": "86130924115bf8dfc4aba286fb49a2ec8d32430a21771db9ccf5381acf0d10cc", - "https://bcr.bazel.build/modules/zlib-ng/2.3.3.bcr.2/source.json": "7aa4112eb2fbb99757e97cf0b7a4e2bdb3464b2b3cfb351bc807ffcb34bd349f", - "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", - "https://bcr.bazel.build/modules/zlib/1.3.2.bcr.3/MODULE.bazel": "0b6a197b824f4882f97f6717d81e09b10c7562023370bf7e9da6380238e9c212", - "https://bcr.bazel.build/modules/zlib/1.3.2.bcr.3/source.json": "00797abf23e06df10af2d7b78cff7d3360349e72c434329faeb532f9c358449b", - "https://bcr.bazel.build/modules/zlib/1.3.2/MODULE.bazel": "7303cb87d80e438f313194fc640e38475a8d337b8c70ff6a0725f55236566a33", - "https://bcr.bazel.build/modules/zstd/1.5.7.bcr.1/MODULE.bazel": "c5977176dd8555be7a9d598512ae0cae11831259c06f00a5e5e0037d5db4e3f5", - "https://bcr.bazel.build/modules/zstd/1.5.7.bcr.1/source.json": "aa95e0b5aac9d80195b9047d223beaf26b1948be55d49f0e803e180e9ccc6e75", - "https://bcr.bazel.build/modules/zstd/1.5.7/MODULE.bazel": "f5780cdbd6f4c5bb985a20f839844316fe48fb5e463056f372dbc37cfabdf450" - }, - "selectedYankedVersions": {}, - "moduleExtensions": { - "@@aspect_tools_telemetry+//:extension.bzl%telemetry": { - "general": { - "bzlTransitiveDigest": "ihzLOoAnQP6Y5iSYOhEjvb6uxEbA6ZgH8Qikau2lGRU=", - "usagesDigest": "9jD5ypNZfOa8PCtqb7zh2LhW4lsg4BaSkXHt/JHi9rk=", - "recordedInputs": [ - "REPO_MAPPING:aspect_tools_telemetry+,bazel_lib bazel_lib+", - "REPO_MAPPING:aspect_tools_telemetry+,bazel_skylib bazel_skylib+", - "ENV:ASPECT_TOOLS_TELEMETRY_TEST \\0" - ], - "generatedRepoSpecs": { - "aspect_tools_telemetry_report": { - "repoRuleId": "@@aspect_tools_telemetry+//:extension.bzl%tel_repository", - "attributes": { - "deps": { - "aspect_rules_js": "3.5.2", - "aspect_rules_ts": "3.10.1", - "aspect_rules_jest": "0.26.0", - "aspect_tools_telemetry": "0.5.2" - }, - "last_notice": 0 - } - } - }, - "moduleExtensionMetadata": { - "useAllRepos": "NO", - "reproducible": false - } - } - }, - "@@gcc_toolchain+//:internal.bzl%non_bazel_dependencies": { - "general": { - "bzlTransitiveDigest": "2lJ032c8fOuugvP5l8O9QCbfJ0bax+IIqOgaFwlNDec=", - "usagesDigest": "sKYmx+ooOsbnANJqjmba+8IeuYjA9CbwKfQETYhyNuU=", - "recordedInputs": [ - "REPO_MAPPING:gcc_toolchain+,bazel_tools bazel_tools", - "REPO_MAPPING:gcc_toolchain+,lapack gcc_toolchain++non_bazel_dependencies+lapack" - ], - "generatedRepoSpecs": { - "openssl": { - "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", - "attributes": { - "build_file_content": "filegroup(\n name = \"srcs\",\n srcs = glob(\n include = [\"**\"],\n exclude = [\"**/* *\"],\n ),\n visibility = [\"//visibility:public\"],\n)\n", - "sha256": "40dceb51a4f6a5275bde0e6bf20ef4b91bfc32ed57c0552e2e8e15463372b17a", - "strip_prefix": "openssl-1.1.1n", - "url": "https://www.openssl.org/source/openssl-1.1.1n.tar.gz" - } - }, - "lapack": { - "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", - "attributes": { - "build_file_content": "filegroup(\n name = \"srcs\",\n srcs = glob(\n include = [\"**\"],\n exclude = [\"**/* *\"],\n ),\n visibility = [\"//visibility:public\"],\n)\n", - "patch_cmds": [ - "cat > make.inc < - #include - - namespace avro { -diff --git a/include/avro/buffer/detail/BufferDetail.hh b/include/avro/buffer/detail/BufferDetail.hh ---- a/include/avro/buffer/detail/BufferDetail.hh -+++ b/include/avro/buffer/detail/BufferDetail.hh -@@ -31,6 +31,7 @@ - #include - #include - #include -+#include - - /** - * \file BufferDetail.hh -diff --git a/include/avro/Layout.hh b/include/avro/Layout.hh ---- a/include/avro/Layout.hh -+++ b/include/avro/Layout.hh -@@ -20,6 +20,8 @@ - #define avro_Layout_hh__ - - #include "Config.hh" -+#include -+#include - #include - - /// \file Layout.hh -diff --git a/include/avro/Node.hh b/include/avro/Node.hh ---- a/include/avro/Node.hh -+++ b/include/avro/Node.hh -@@ -24,6 +24,7 @@ - #include - #include - #include -+#include - #include - - #include "CustomAttributes.hh" -diff --git a/include/avro/Exception.hh b/include/avro/Exception.hh ---- a/include/avro/Exception.hh -+++ b/include/avro/Exception.hh -@@ -20,7 +20,7 @@ - #define avro_Exception_hh__ - - #include "Config.hh" --#include -+#include - #include - - namespace avro { diff --git a/families/fortran/third_party/rules_dx/gcc_toolchain.native_include_layout.patch b/families/fortran/third_party/rules_dx/gcc_toolchain.native_include_layout.patch deleted file mode 100644 index 274d949843..0000000000 --- a/families/fortran/third_party/rules_dx/gcc_toolchain.native_include_layout.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -109,7 +109,7 @@ - ] - - cxx_builtin_includes = [] -- if target_arch == ARCHS.x86_64: -+ if target_arch == ARCHS.x86_64 or not rctx.path("{}include/c++".format(include_prefix)).exists: - cxx_builtin_includes.extend([ - include.format( - gcc_version = rctx.attr.gcc_version, diff --git a/families/fortran/third_party/rules_dx/gcc_toolchain.runtime_libs.patch b/families/fortran/third_party/rules_dx/gcc_toolchain.runtime_libs.patch deleted file mode 100644 index df5d4a6995..0000000000 --- a/families/fortran/third_party/rules_dx/gcc_toolchain.runtime_libs.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -982,6 +982,8 @@ - strip_files = ":strip_files", - coverage_files = ":coverage_files", - supports_param_files = {supports_param_files}, -+ dynamic_runtime_lib = ":dx_dynamic_runtime_lib", -+ static_runtime_lib = ":dx_static_runtime_lib", - toolchain_config = ":cc_toolchain_config", - toolchain_identifier = "gcc-toolchain", - ) -@@ -1001,6 +1003,24 @@ - ) - - filegroup( -+ name = "dx_dynamic_runtime_lib", -+ srcs = glob( -+ include = [ -+ "lib64/libstdc++.so.6", -+ "lib64/libgcc_s.so.1", -+ "*/lib64/libstdc++.so.6", -+ "*/lib64/libgcc_s.so.1", -+ ], -+ allow_empty = True, -+ ), -+) -+ -+filegroup( -+ name = "dx_static_runtime_lib", -+ srcs = [], -+) -+ -+filegroup( - name = "all_files", - srcs = [ - ":ar_files", diff --git a/families/fortran/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch b/families/fortran/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch deleted file mode 100644 index b1e88ba100..0000000000 --- a/families/fortran/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -1081,6 +1081,7 @@ - "**/*.la", - "**/*.o", - "**/*.lo", -+ "**/lib*/libsanitizer.spec", - ], - exclude = ["lib*/**/*python*/**"], - allow_empty = True, diff --git a/families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_config.patch b/families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_config.patch deleted file mode 100644 index be5fc75deb..0000000000 --- a/families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_config.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/toolchain/cc_toolchain_config.bzl -+++ b/toolchain/cc_toolchain_config.bzl -@@ -587,7 +587,7 @@ - - return [ - cc_common.create_cc_toolchain_config_info( -- abi_libc_version = "local", -+ abi_libc_version = ctx.attr.target_libc, - abi_version = "local", - action_configs = action_configs, - artifact_name_patterns = [], -@@ -599,8 +599,8 @@ - host_system_name = "local", - make_variables = [], - target_cpu = "local", -- target_libc = "local", -- target_system_name = "local", -+ target_libc = ctx.attr.target_libc, -+ target_system_name = ctx.attr.target_system_name, - tool_paths = [ - tool_path(name = name, path = path) - for name, path in tool_paths.items() -@@ -614,6 +614,8 @@ - attrs = { - "cxx_builtin_include_directories": attr.string_list(mandatory = True), - "enable_fortran": attr.bool(mandatory = True), -+ "target_libc": attr.string(default = "local"), -+ "target_system_name": attr.string(default = "local"), - "extra_cflags": attr.string_list(mandatory = True), - "extra_cxxflags": attr.string_list(mandatory = True), - "extra_enabled_features": attr.label_list(mandatory = True), diff --git a/families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch b/families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch deleted file mode 100644 index 5d9ee89d29..0000000000 --- a/families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -269,6 +269,8 @@ - - # cc_toolchain attributes - supports_param_files = 1 if rctx.attr.supports_param_files else 0, -+ target_libc = rctx.attr.target_libc, -+ target_system_name = "{}-linux-gnu".format(rctx.attr.target_arch), - - # Fortran, if enabled - **_fortran_vars( -@@ -490,6 +492,10 @@ - doc = "The target architecture this toolchain produces. E.g. x86_64.", - mandatory = True, - ), -+ "target_libc": attr.string( -+ doc = "The libc name and version reported in the cc toolchain identity. E.g. glibc_2.28.", -+ default = "local", -+ ), - } - - # Attributes of the `toolchain` declarations, which live in the hub rather than in the repository -@@ -674,6 +680,7 @@ - "extra_target_compatible_with", - "extra_target_settings", - "supports_param_files", -+ "target_libc", - ] - } - -@@ -997,6 +1004,8 @@ - extra_fflags = {extra_fflags}, - extra_ldflags = {extra_ldflags}, - extra_asmflags = {extra_asmflags}, -+ target_libc = "{target_libc}", -+ target_system_name = "{target_system_name}", - extra_enabled_features = {extra_enabled_features}, - extra_known_features = {extra_known_features}, - tool_paths = tool_paths, diff --git a/families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch b/families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch deleted file mode 100644 index 206afb59a8..0000000000 --- a/families/fortran/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/toolchain/module_extensions.bzl -+++ b/toolchain/module_extensions.bzl -@@ -25,6 +25,7 @@ - extra_target_compatible_with = declare.extra_target_compatible_with, - extra_target_settings = declare.extra_target_settings, - supports_param_files = declare.supports_param_files, -+ target_libc = declare.target_libc, - ) - - # Since we know that for each gcc toolchain repository we'll generate the same files, we mark the rule as reproducible. diff --git a/families/fortran/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch b/families/fortran/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch deleted file mode 100644 index 0599d7222f..0000000000 --- a/families/fortran/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch +++ /dev/null @@ -1,50 +0,0 @@ -diff -ru a/launcher/private/prebuilt/BUILD.bazel b/launcher/private/prebuilt/BUILD.bazel ---- a/launcher/private/prebuilt/BUILD.bazel -+++ b/launcher/private/prebuilt/BUILD.bazel -@@ -11,6 +11,7 @@ - finalizers = { - "aarch64_linux": "@finalize_stub_aarch64_linux//file", - "aarch64_macos": "@finalize_stub_aarch64_macos//file", -+ "aarch64_windows": "@finalize_stub_aarch64_windows//file", - "s390x_linux": "@finalize_stub_s390x_linux//file", - "x86_64_linux": "@finalize_stub_x86_64_linux//file", - "x86_64_macos": "@finalize_stub_x86_64_macos//file", -@@ -19,6 +20,7 @@ - templates = { - "aarch64_linux": "@runfiles_stub_aarch64_linux//file", - "aarch64_macos": "@runfiles_stub_aarch64_macos//file", -+ "aarch64_windows": "@runfiles_stub_aarch64_windows//file", - "s390x_linux": "@runfiles_stub_s390x_linux//file", - "x86_64_linux": "@runfiles_stub_x86_64_linux//file", - "x86_64_macos": "@runfiles_stub_x86_64_macos//file", -diff -ru a/launcher/private/toolchains.bzl b/launcher/private/toolchains.bzl ---- a/launcher/private/toolchains.bzl -+++ b/launcher/private/toolchains.bzl -@@ -22,14 +22,14 @@ - attrs = {"src": attr.label(mandatory = True)}, - ) - --# The platforms toolchains are registered for. Windows/aarch64 ships for --# standalone use but has no auto-registered Bazel toolchain (see README --# "Supported platforms"). -+# The platforms toolchains are registered for. A platform missing from the -+# templates or finalizers dict of a stub source is skipped for that source. - # - # (name, cpu, os) - PLATFORMS = [ - ("aarch64_linux", "aarch64", "linux"), - ("aarch64_macos", "aarch64", "macos"), -+ ("aarch64_windows", "aarch64", "windows"), - ("s390x_linux", "s390x", "linux"), - ("x86_64_linux", "x86_64", "linux"), - ("x86_64_macos", "x86_64", "macos"), -@@ -56,6 +56,9 @@ - target_settings = ["//launcher/private:stub_source_" + name] - - for (platform, cpu, os) in PLATFORMS: -+ if platform not in templates or platform not in finalizers: -+ continue -+ - constraints = [ - "@platforms//cpu:" + cpu, - "@platforms//os:" + os, diff --git a/families/fortran/third_party/rules_dx/llvm.aarch64_outline_atomics.patch b/families/fortran/third_party/rules_dx/llvm.aarch64_outline_atomics.patch deleted file mode 100644 index 436a00ebeb..0000000000 --- a/families/fortran/third_party/rules_dx/llvm.aarch64_outline_atomics.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -@@ -751,6 +751,10 @@ - "//conditions:default": [], - }), - deps = select({ -+ # Clang only defaults to outline atomics on Linux-like targets, so -+ # nothing calls the __aarch64_* helpers on macOS or Windows. -+ "@llvm//platforms/config:macos_aarch64": [], -+ "@llvm//platforms/config:windows_aarch64": [], - "@platforms//cpu:aarch64": [ - ":builtins_aarch64_atomic", - ], diff --git a/families/fortran/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch b/families/fortran/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch deleted file mode 100644 index 5df92a2b33..0000000000 --- a/families/fortran/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff -ruN a/toolchain/args/windows/msvc/BUILD.bazel b/toolchain/args/windows/msvc/BUILD.bazel ---- a/toolchain/args/windows/msvc/BUILD.bazel 2026-11-06 03:26:58.926919250 +0100 -+++ b/toolchain/args/windows/msvc/BUILD.bazel 2026-11-06 03:26:58.932824171 +0100 -@@ -219,6 +219,24 @@ - ) - - cc_args( -+ name = "dynamic_crt_default_lib", -+ actions = ["@rules_cc//cc/toolchains/actions:link_actions"], -+ args = [ -+ "/clang:-Xlinker", -+ "/clang:/DEFAULTLIB:msvcrt.lib", -+ ], -+) -+ -+cc_args( -+ name = "static_crt_default_lib", -+ actions = ["@rules_cc//cc/toolchains/actions:link_actions"], -+ args = [ -+ "/clang:-Xlinker", -+ "/clang:/DEFAULTLIB:libcmt.lib", -+ ], -+) -+ -+cc_args( - name = "sdk_library_search_paths", - actions = [ - "@rules_cc//cc/toolchains/actions:link_actions", -@@ -279,8 +297,8 @@ - "common_support_library_search_paths", - "com_support_library_search_paths", - ] + select({ -- "//toolchain/features/msvc:static_crt_config": ["static_crt_library_search_paths"], -- "//conditions:default": ["dynamic_crt_library_search_paths"], -+ "//toolchain/features/msvc:static_crt_config": ["static_crt_library_search_paths", "static_crt_default_lib"], -+ "//conditions:default": ["dynamic_crt_library_search_paths", "dynamic_crt_default_lib"], - }) + select({ - # Hosted C construction tools need the target CRT and SDK, but do not - # consume the C++ standard library. diff --git a/families/fortran/third_party/rules_dx/llvm.libunwind_copy.patch b/families/fortran/third_party/rules_dx/llvm.libunwind_copy.patch deleted file mode 100644 index 527a5b3ccc..0000000000 --- a/families/fortran/third_party/rules_dx/llvm.libunwind_copy.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -ruN a/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel b/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel ---- a/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel -@@ -176,7 +176,6 @@ - name = "libunwind.static.gnu_link_name", - src = "libunwind.static", - out = "libunwind.a", -- allow_symlink = True, - visibility = ["//visibility:public"], - ) - diff --git a/families/fortran/third_party/rules_dx/llvm.lse_atomic_sources.patch b/families/fortran/third_party/rules_dx/llvm.lse_atomic_sources.patch deleted file mode 100644 index f3c913e6fe..0000000000 --- a/families/fortran/third_party/rules_dx/llvm.lse_atomic_sources.patch +++ /dev/null @@ -1,189 +0,0 @@ -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel b/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel -index 454cd22..c9ad737 100644 ---- a/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel -@@ -9,10 +9,13 @@ bzl_library( - name = "targets", - srcs = ["targets.bzl"], - visibility = ["//visibility:public"], -- deps = [ -- "@bazel_lib//lib:copy_file", -- "@rules_cc//cc:core_rules", -- ], -+ deps = ["@rules_cc//cc:core_rules"], -+) -+ -+bzl_library( -+ name = "lse_variants", -+ srcs = ["lse_variants.bzl"], -+ visibility = ["//visibility:public"], - ) - - bzl_library( -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel b/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -index 0fa0744..3c53c15 100644 ---- a/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -@@ -5,6 +5,7 @@ load("@bazel_skylib//rules/directory:directory.bzl", "directory") - load("@bazel_skylib//rules/directory:subdirectory.bzl", "subdirectory") - load("@llvm//:sh_script.bzl", "sh_script") - load("@llvm//3rd_party/llvm-project/x.x/compiler-rt:filter_builtin_sources.bzl", "filter_builtin_sources") -+load("@llvm//3rd_party/llvm-project/x.x/compiler-rt:lse_variants.bzl", "LSE_ATOMIC_VARIANTS") - load("@llvm//3rd_party/llvm-project/x.x/compiler-rt:targets.bzl", "atomic_helper_cc_library") - load( - "@llvm//3rd_party/llvm-project/x.x/compiler-rt:weak_symbols.bzl", -@@ -512,29 +513,7 @@ builtins_aarch64_atomic_deps = [ - model = model, - pat = pat, - ) -- for pat in [ -- "cas", -- "swp", -- "ldadd", -- "ldclr", -- "ldeor", -- "ldset", -- ] -- for size in [ -- 1, -- 2, -- 4, -- 8, -- 16, -- ] -- for model in [ -- 1, -- 2, -- 3, -- 4, -- 5, -- ] -- if pat == "cas" or size != 16 -+ for pat, size, model in LSE_ATOMIC_VARIANTS - ] - - cc_library( -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/lse_variants.bzl b/3rd_party/llvm-project/x.x/compiler-rt/lse_variants.bzl -new file mode 100644 -index 0000000..b275140 ---- /dev/null -+++ b/3rd_party/llvm-project/x.x/compiler-rt/lse_variants.bzl -@@ -0,0 +1,33 @@ -+""" -+The aarch64 outline atomic helpers built from lib/builtins/aarch64/lse.S. -+ -+Each (pat, size, model) gets its own lse___.S copy, written -+when llvm-project is fetched, so cc_static_library sees distinct object names. -+""" -+ -+LSE_ATOMIC_VARIANTS = [ -+ (pat, size, model) -+ for pat in [ -+ "cas", -+ "swp", -+ "ldadd", -+ "ldclr", -+ "ldeor", -+ "ldset", -+ ] -+ for size in [ -+ 1, -+ 2, -+ 4, -+ 8, -+ 16, -+ ] -+ for model in [ -+ 1, -+ 2, -+ 3, -+ 4, -+ 5, -+ ] -+ if pat == "cas" or size != 16 -+] -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl b/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl -index 541c39a..0be33c6 100644 ---- a/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl -+++ b/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl -@@ -2,7 +2,6 @@ - Helper functions for defining targets. - """ - --load("@bazel_lib//lib:copy_file.bzl", "copy_file") - load("@rules_cc//cc:cc_library.bzl", "cc_library") - - def atomic_helper_cc_library(name, pat, size, model): -@@ -10,17 +9,11 @@ def atomic_helper_cc_library(name, pat, size, model): - - # cc_library will always produce an archive file containing lse.o. - # Because those end up in a static library, cc_static_library will complain -- # that the archive has lse.o specified multiple times. -- copy_file( -- name = unique_filename, -- src = "lib/builtins/aarch64/lse.S", -- out = "{}.S".format(unique_filename), -- allow_symlink = True, -- ) -- -+ # that the archive has lse.o specified multiple times. The renamed copies -+ # are written when llvm-project is fetched (see lse_variants.bzl). - cc_library( - name = name, -- srcs = [unique_filename], -+ srcs = ["lib/builtins/aarch64/{}.S".format(unique_filename)], - copts = select({ - # The clang-cl hermetic compilation policy already supplies both - # options with its required /clang: spelling. -diff --git a/private/BUILD.bazel b/private/BUILD.bazel -index 4e70eeb..3b366e2 100644 ---- a/private/BUILD.bazel -+++ b/private/BUILD.bazel -@@ -13,6 +13,7 @@ bzl_library( - deps = [ - ":llvm_project_common", - "//:http_bsdtar_archive", -+ "//3rd_party/llvm-project/x.x/compiler-rt:lse_variants", - "@bazel_lib//lib:repo_utils", - "@bazel_skylib//lib:paths", - "@bazel_tools//tools/build_defs/repo:cache.bzl", -diff --git a/private/llvm_project_archive.bzl b/private/llvm_project_archive.bzl -index 366dd80..7855a24 100644 ---- a/private/llvm_project_archive.bzl -+++ b/private/llvm_project_archive.bzl -@@ -12,6 +12,7 @@ load( - "update_attrs", - ) - load("//:http_bsdtar_archive.bzl", "download_remote_files") -+load("//3rd_party/llvm-project/x.x/compiler-rt:lse_variants.bzl", "LSE_ATOMIC_VARIANTS") - load(":llvm_project_common.bzl", "LLVM_PROJECT_OVERLAY", "write_llvm_project_files") - - _DEFAULT_OVERLAY_FILES = { -@@ -177,6 +178,19 @@ def _copy_files(rctx, module_root): - fail("Input {} does not exist".format(label)) - rctx.file(path, rctx.read(source, watch = "no"), executable = False) - -+def _write_lse_atomic_sources(rctx): -+ # One copy of lse.S per atomic helper, so the objects get distinct names -+ # without a copy or symlink action each. Only the compiler-rt BUILD file -+ # in overlay_files uses them. -+ content = rctx.read("compiler-rt/lib/builtins/aarch64/lse.S") -+ for pat, size, model in LSE_ATOMIC_VARIANTS: -+ rctx.file( -+ "compiler-rt/lib/builtins/aarch64/lse_{}_{}_{}.S".format(pat, size, model), -+ content, -+ executable = False, -+ legacy_utf8 = False, -+ ) -+ - def _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info): - overrides = {} - if not rctx.attr.sha256 and not rctx.attr.integrity: -@@ -216,6 +230,7 @@ def _llvm_project_archive_impl(rctx): - module_root = _watch_llvm_project_inputs(rctx) - remote_patches_info = _patch(rctx, module_root) - _copy_files(rctx, module_root) -+ _write_lse_atomic_sources(rctx) - write_llvm_project_files(rctx) - - return _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info) diff --git a/families/fortran/third_party/rules_dx/llvm.msvc_source_directories.patch b/families/fortran/third_party/rules_dx/llvm.msvc_source_directories.patch deleted file mode 100644 index 95a77ef740..0000000000 --- a/families/fortran/third_party/rules_dx/llvm.msvc_source_directories.patch +++ /dev/null @@ -1,187 +0,0 @@ -diff --git a/runtimes/msvc/BUILD.bazel b/runtimes/msvc/BUILD.bazel ---- a/runtimes/msvc/BUILD.bazel -+++ b/runtimes/msvc/BUILD.bazel -@@ -1,71 +1,7 @@ --load("@bazel_lib//lib:copy_to_directory.bzl", "copy_to_directory") - load("//:case_insensitive_vfs.bzl", "case_insensitive_vfs_overlay") --load("//:directory.bzl", "directory_info") - - package(default_visibility = ["//visibility:public"]) - --# These archives do not select a CRT mode. Their directives may request other --# support archives or SDK libraries, so expose the complete native closure. --_MSVC_COMMON_SUPPORT_LIBRARIES = [ -- "exe_initialize_mta.lib", -- "iso_stdio_wide_specifiers.lib", -- "legacy_stdio_definitions.lib", -- "legacy_stdio_wide_specifiers.lib", -- "oldnames.lib", --] -- --_MSVC_DYNAMIC_RUNTIME_LIBRARIES = [ -- "msvcprt.lib", -- "msvcrt.lib", -- "vcruntime.lib", --] -- --_MSVC_STATIC_RUNTIME_LIBRARIES = [ -- "libcmt.lib", -- "libcpmt.lib", -- "libvcruntime.lib", --] -- --# Keep LLVM's COM compiler-support dependency separate from the Microsoft STL. --# new.h is already provided by the selected UCRT include tree. --_MSVC_COM_SUPPORT_HEADERS = [ -- "comdef.h", -- "comdefsp.h", -- "comip.h", -- "comutil.h", --] -- --_MSVC_COM_SUPPORT_LIBRARIES = [ -- "comsupp.lib", -- "comsuppw.lib", --] -- --# Keep Layer 1's VCRuntime ABI surface separate from Microsoft STL. These are --# the compiler/exception runtime headers required by clang-cl and libc++; the --# selected C++ standard-library headers still come exclusively from libc++. --_MSVC_VCRUNTIME_HEADERS = [ -- "CodeAnalysis/sourceannotations.h", -- "concurrencysal.h", -- "crtdefs.h", -- "eh.h", -- "ehdata.h", -- "ehdata_forceinclude.h", -- "ehdata_values.h", -- "excpt.h", -- "sal.h", -- "setjmp.h", -- "setjmpex.h", -- "threads.h", -- "vadefs.h", -- "vcruntime.h", -- "vcruntime_exception.h", -- "vcruntime_new.h", -- "vcruntime_new_debug.h", -- "vcruntime_string.h", -- "vcruntime_startup.h", -- "vcruntime_typeinfo.h", --] -- - alias( - name = "msvc_include", - actual = "@msvc_runtime//:msvc_include", -@@ -104,30 +40,26 @@ - actual = "@msvc_runtime//:msvc_lib_x64", - ) - --copy_to_directory( -+# @msvc_runtime copies these subsets when it is fetched, so they are not -+# build actions. -+alias( - name = "msvc_vcruntime_headers_source", -- srcs = [":msvc_include"], -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_VCRUNTIME_HEADERS, -- root_paths = ["**/include"], -+ actual = "@msvc_runtime//:msvc_vcruntime_include", - ) - --directory_info( -+alias( - name = "msvc_vcruntime_headers", -- src = ":msvc_vcruntime_headers_source", -+ actual = "@msvc_runtime//:msvc_vcruntime_include", - ) - --copy_to_directory( -+alias( - name = "msvc_com_support_headers_source", -- srcs = [":msvc_include"], -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_COM_SUPPORT_HEADERS, -- root_paths = ["**/include"], -+ actual = "@msvc_runtime//:msvc_com_support_include", - ) - --directory_info( -+alias( - name = "msvc_com_support_headers", -- src = ":msvc_com_support_headers_source", -+ actual = "@msvc_runtime//:msvc_com_support_include", - ) - - case_insensitive_vfs_overlay( -@@ -150,62 +82,22 @@ - ], - ) - --copy_to_directory( -+alias( - name = "msvc_com_support_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_COM_SUPPORT_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_com_libraries", - ) - --copy_to_directory( -+alias( - name = "msvc_common_support_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_COMMON_SUPPORT_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_common_libraries", - ) - --copy_to_directory( -+alias( - name = "msvc_dynamic_runtime_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_DYNAMIC_RUNTIME_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_dynamic_libraries", - ) - --copy_to_directory( -+alias( - name = "msvc_static_runtime_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_STATIC_RUNTIME_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_static_libraries", - ) diff --git a/families/fortran/third_party/rules_dx/llvm.stage0_runtime_features.patch b/families/fortran/third_party/rules_dx/llvm.stage0_runtime_features.patch deleted file mode 100644 index b4a9edc8db..0000000000 --- a/families/fortran/third_party/rules_dx/llvm.stage0_runtime_features.patch +++ /dev/null @@ -1,165 +0,0 @@ -diff -ruN a/tests/stage0_features/BUILD.bazel b/tests/stage0_features/BUILD.bazel ---- a/tests/stage0_features/BUILD.bazel 1970-01-01 01:00:00.000000000 +0100 -+++ b/tests/stage0_features/BUILD.bazel 2026-11-07 13:47:32.681561424 +0100 -@@ -0,0 +1,17 @@ -+load(":stage0_features_test.bzl", "bin_dir_probe", "stage0_bin_dir_probe", "stage0_features_test", "stage_roots") -+ -+bin_dir_probe(name = "probe") -+ -+stage0_bin_dir_probe(name = "stage0_probe") -+ -+stage_roots( -+ name = "roots", -+ bootstrap = ":probe", -+ tags = ["manual"], -+ with_cfg = ":stage0_probe", -+) -+ -+stage0_features_test( -+ name = "stage0_features_test", -+ target_under_test = ":roots", -+) -diff -ruN a/tests/stage0_features/stage0_features_test.bzl b/tests/stage0_features/stage0_features_test.bzl ---- a/tests/stage0_features/stage0_features_test.bzl 1970-01-01 01:00:00.000000000 +0100 -+++ b/tests/stage0_features/stage0_features_test.bzl 2026-11-07 13:47:32.681700032 +0100 -@@ -0,0 +1,54 @@ -+"""Tests that cc_stage0_object and the with_cfg stage0 runtimes share a configuration.""" -+ -+load("@bazel_skylib//lib:unittest.bzl", "analysistest", "asserts") -+load("@with_cfg.bzl", "with_cfg") -+load("//toolchain/runtimes:cc_stage0_object.bzl", "bootstrap_transition") -+load("//toolchain/runtimes:with_cfg_runtimes_common.bzl", "configure_builder_for_runtimes") -+ -+def _bin_dir_probe_impl(ctx): -+ out = ctx.actions.declare_file(ctx.label.name + ".txt") -+ ctx.actions.write(out, "") -+ return [DefaultInfo(files = depset([out]))] -+ -+bin_dir_probe = rule( -+ implementation = _bin_dir_probe_impl, -+) -+ -+stage0_bin_dir_probe, _stage0_bin_dir_probe_internal = configure_builder_for_runtimes( -+ with_cfg(bin_dir_probe), -+ "stage0", -+).build() -+ -+StageRootsInfo = provider( -+ doc = "Output roots of the same probe reached through both stage0 transitions.", -+ fields = ["bootstrap", "with_cfg"], -+) -+ -+def _stage_roots_impl(ctx): -+ return [StageRootsInfo( -+ bootstrap = ctx.file.bootstrap.root.path, -+ with_cfg = ctx.file.with_cfg.root.path, -+ )] -+ -+stage_roots = rule( -+ implementation = _stage_roots_impl, -+ attrs = { -+ "bootstrap": attr.label(allow_single_file = True, cfg = bootstrap_transition), -+ "with_cfg": attr.label(allow_single_file = True), -+ }, -+) -+ -+def _stage0_features_test_impl(ctx): -+ env = analysistest.begin(ctx) -+ roots = analysistest.target_under_test(env)[StageRootsInfo] -+ asserts.equals(env, roots.with_cfg, roots.bootstrap) -+ return analysistest.end(env) -+ -+# cc_stage0_object is reached from runtimes that already set the linkmode, which -+# bootstrap_transition leaves alone. -+stage0_features_test = analysistest.make( -+ _stage0_features_test_impl, -+ config_settings = { -+ str(Label("//runtimes:linkmode")): "static", -+ }, -+) -diff -ruN a/toolchain/runtimes/BUILD.bazel b/toolchain/runtimes/BUILD.bazel ---- a/toolchain/runtimes/BUILD.bazel 2026-11-07 13:47:31.802888290 +0100 -+++ b/toolchain/runtimes/BUILD.bazel 2026-11-07 13:47:31.811194201 +0100 -@@ -324,6 +324,7 @@ - srcs = ["cc_stage0_object.bzl"], - visibility = ["//visibility:public"], - deps = [ -+ "@llvm//toolchain/runtimes:with_cfg_runtimes_common", - "@rules_cc//cc:action_names_bzl", - "@rules_cc//cc:find_cc_toolchain_bzl", - "@rules_cc//cc/common", -diff -ruN a/toolchain/runtimes/cc_stage0_object.bzl b/toolchain/runtimes/cc_stage0_object.bzl ---- a/toolchain/runtimes/cc_stage0_object.bzl 2026-11-07 13:47:31.801872345 +0100 -+++ b/toolchain/runtimes/cc_stage0_object.bzl 2026-11-07 13:47:31.811147655 +0100 -@@ -1,10 +1,18 @@ -+load("@llvm//toolchain/runtimes:with_cfg_runtimes_common.bzl", "RUNTIME_RESET_FEATURES") - load("@rules_cc//cc:action_names.bzl", "ACTION_NAMES") - load("@rules_cc//cc:find_cc_toolchain.bzl", "CC_TOOLCHAIN_TYPE", "find_cc_toolchain", "use_cc_toolchain") - load("@rules_cc//cc/common:cc_common.bzl", "cc_common") - --#TODO(cerisier): use a single shared transition --bootstrap_transition = transition( -- implementation = lambda settings, attr: { -+def _bootstrap_transition_impl(settings, _attr): -+ features = settings["//command_line_option:features"] -+ -+ # Append the reset the same way with_cfg's extend does, so stage0 objects -+ # share a configuration with the other stage0 runtimes. -+ if features[-len(RUNTIME_RESET_FEATURES):] != RUNTIME_RESET_FEATURES: -+ features = features + RUNTIME_RESET_FEATURES -+ -+ return { -+ "//command_line_option:features": features, - # we are compiling runtimes without any kind of other dependencies - "//toolchain:runtime_stage": "stage0", - # Stage0 objects (crtbegin/crtend) are linked into every binary and -@@ -49,9 +57,13 @@ - "//config:host_xray": False, - "//config:host_fuzzer": False, - "//config:host_profile": False, -- }, -- inputs = [], -+ } -+ -+bootstrap_transition = transition( -+ implementation = _bootstrap_transition_impl, -+ inputs = ["//command_line_option:features"], - outputs = [ -+ "//command_line_option:features", - "//toolchain:runtime_stage", - "//command_line_option:copt", - "//command_line_option:cxxopt", -diff -ruN a/toolchain/runtimes/with_cfg_runtimes_common.bzl b/toolchain/runtimes/with_cfg_runtimes_common.bzl ---- a/toolchain/runtimes/with_cfg_runtimes_common.bzl 2026-11-07 13:47:31.802490308 +0100 -+++ b/toolchain/runtimes/with_cfg_runtimes_common.bzl 2026-11-07 13:47:31.811169606 +0100 -@@ -1,3 +1,13 @@ -+# Release policy is expressed through compiler-personality features rather -+# than user compile options. Reset it at the same runtime boundary as the -+# user options: each runtime owns its exception, RTTI, and frame-pointer -+# requirements independently from the final LLVM product. -+RUNTIME_RESET_FEATURES = [ -+ "-no_exceptions", -+ "-no_rtti", -+ "-omit_frame_pointer", -+] -+ - def configure_builder_for_runtimes(builder, runtime_stage, linkmode = "static", sanitizers = False, inherit_asan = False): - # The problem is that compiler-rt and start libs can only be compiled with - # a specific set of flags and compilation mode. It is not safe to let the user -@@ -12,15 +22,7 @@ - builder.set("host_conlyopt", []) - builder.set("host_linkopt", []) - -- # Release policy is expressed through compiler-personality features rather -- # than user compile options. Reset it at the same runtime boundary as the -- # options above: each runtime owns its exception, RTTI, and frame-pointer -- # requirements independently from the final LLVM product. -- builder.extend("features", [ -- "-no_exceptions", -- "-no_rtti", -- "-omit_frame_pointer", -- ]) -+ builder.extend("features", RUNTIME_RESET_FEATURES) - - # We are compiling runtimes without any kind of other dependencies. - builder.set( diff --git a/families/fortran/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch b/families/fortran/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch deleted file mode 100644 index 3ce2f77756..0000000000 --- a/families/fortran/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch +++ /dev/null @@ -1,68 +0,0 @@ -diff -ruN a/private/llvm_project_archive.bzl b/private/llvm_project_archive.bzl ---- a/private/llvm_project_archive.bzl 2026-11-07 03:07:33.986516422 +0100 -+++ b/private/llvm_project_archive.bzl 2026-11-07 03:07:43.390885795 +0100 -@@ -133,14 +133,49 @@ - overlay_prefix.count("/") + 1, - ) - --def _copy_files(rctx): -+# Patches and overlay files under this tree are read as plain paths and the -+# tree is watched once. A path() call per label records one file input each, -+# and Bazel checks those one at a time against the repo contents cache. -+_LLVM_PROJECT_INPUTS = Label("//3rd_party/llvm-project:BUILD.bazel") -+ -+def _watch_llvm_project_inputs(rctx): -+ inputs = rctx.path(_LLVM_PROJECT_INPUTS).dirname -+ rctx.watch_tree(inputs) -+ return inputs.dirname.dirname -+ -+def _input_path(rctx, module_root, label): -+ if label.repo_name == _LLVM_PROJECT_INPUTS.repo_name and (label.package + "/").startswith(_LLVM_PROJECT_INPUTS.package + "/"): -+ return module_root.get_child(label.package, label.name) -+ return rctx.path(label) -+ -+def _native_patch_strip(rctx): -+ attr = rctx.attr -+ if attr.patch_tool or attr.patch_cmds or attr.patch_cmds_win or attr.remote_patches or attr.remote_module_file_urls: -+ return None -+ args = ["-p%s" % attr.patch_strip] + attr.patch_args -+ for arg in args: -+ if not arg.startswith("-p"): -+ return None -+ return int(args[-1][2:]) -+ -+def _patch(rctx, module_root): -+ strip = _native_patch_strip(rctx) -+ if strip == None: -+ return patch(rctx) -+ if rctx.attr.patches: -+ rctx.report_progress("Patching repository") -+ for label in rctx.attr.patches: -+ rctx.patch(_input_path(rctx, module_root, label), strip, watch_patch = "no") -+ return {} -+ -+def _copy_files(rctx, module_root): - files = dict(rctx.attr.overlay_files) - files.update(rctx.attr.files) - for path, label in files.items(): -- source = rctx.path(label) -+ source = _input_path(rctx, module_root, label) - if not source.exists: - fail("Input {} does not exist".format(label)) -- rctx.file(path, rctx.read(source), executable = False) -+ rctx.file(path, rctx.read(source, watch = "no"), executable = False) - - def _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info): - overrides = {} -@@ -178,8 +213,9 @@ - rctx.delete(archive) - - remote_files_info = download_remote_files(rctx) -- remote_patches_info = patch(rctx) -- _copy_files(rctx) -+ module_root = _watch_llvm_project_inputs(rctx) -+ remote_patches_info = _patch(rctx, module_root) -+ _copy_files(rctx, module_root) - write_llvm_project_files(rctx) - - return _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info) diff --git a/families/fortran/third_party/rules_dx/protobuf.no_crate_universe.patch b/families/fortran/third_party/rules_dx/protobuf.no_crate_universe.patch deleted file mode 100644 index ddbda76023..0000000000 --- a/families/fortran/third_party/rules_dx/protobuf.no_crate_universe.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- a/MODULE.bazel -+++ b/MODULE.bazel -@@ -193,29 +193,6 @@ - versions = ["1.85.0"], - ) - --crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate") --crate.spec( -- package = "googletest", -- version = ">0.0.0", --) --crate.spec( -- package = "linkme", -- version = "0.3.35", --) --crate.spec( -- package = "paste", -- version = ">=1", --) --crate.spec( -- package = "quote", -- version = ">=1", --) --crate.spec( -- package = "syn", -- version = "2", --) --crate.from_specs() --use_repo(crate, crate_index = "crates") - - # Keep this list minimal; these dependencies will be part of the common `maven` install and could affect end-user projects. - PROTOBUF_MAVEN_ARTIFACTS = [ diff --git a/families/fortran/third_party/rules_dx/rules_android.bundle_keystore_properties.patch b/families/fortran/third_party/rules_dx/rules_android.bundle_keystore_properties.patch deleted file mode 100644 index 1e591f0c29..0000000000 --- a/families/fortran/third_party/rules_dx/rules_android.bundle_keystore_properties.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/rules/common.bzl -+++ b/rules/common.bzl -@@ -118,10 +118,15 @@ - - def _create_signer_properties(ctx, oldest_key): - properties = ctx.actions.declare_file("%s/keystore.properties" % ctx.label.name) -- ctx.actions.expand_template( -- template = ctx.file._bundle_keystore_properties, -+ ctx.actions.write( - output = properties, -- substitutions = {"%oldest_key%": oldest_key.short_path}, -+ content = "\n".join([ -+ "ks=" + oldest_key.short_path, -+ "ks-key-alias=androiddebugkey", -+ "ks-pass=pass:android", -+ "key-pass=pass:android", -+ "", -+ ]), - ) - return properties - diff --git a/families/fortran/third_party/rules_dx/rules_dart.coverage.patch b/families/fortran/third_party/rules_dx/rules_dart.coverage.patch deleted file mode 100644 index a29a09c5ca..0000000000 --- a/families/fortran/third_party/rules_dx/rules_dart.coverage.patch +++ /dev/null @@ -1,84 +0,0 @@ -diff -ruN a/dart/private/tools/test_runner.dart b/dart/private/tools/test_runner.dart ---- a/dart/private/tools/test_runner.dart -+++ b/dart/private/tools/test_runner.dart -@@ -146,6 +146,8 @@ - final xmlOutput = env['XML_OUTPUT_FILE']; - final shardStatus = env['TEST_SHARD_STATUS_FILE']; - final report = _join(tmp.path, 'results.json'); -+ final coverageOutput = env['COVERAGE_OUTPUT_FILE']; -+ final coverageDir = File(_join(tmp.path, 'coverage/raw')).parent.path; - - // Touched before the run, as Bazel asks: it is how a test runner says it - // supports sharding at all. -@@ -165,6 +167,7 @@ - // timeout a test states on its own case, and that one is the author's. - '--timeout=${_suiteTimeout(env)}', - '--file-reporter=json:$report', -+ if (coverageOutput != null) '--coverage=$coverageDir', - if (filter != null && filter.isNotEmpty) ...['--name', filter], - if (totalShards != null && shardIndex != null) ...[ - '--total-shards', -@@ -196,6 +199,15 @@ - code = 0; - } - -+ if (coverageOutput != null) { -+ final documents = [ -+ for (final entity in Directory(coverageDir).listSync(recursive: true)) -+ if (entity is File && entity.path.endsWith('.json')) -+ entity.readAsStringSync(), -+ ]; -+ File(coverageOutput).writeAsStringSync(lcovFromCoverage(documents)); -+ } -+ - if (xmlOutput != null) { - final reportFile = File(report); - if (reportFile.existsSync()) { -@@ -207,6 +219,47 @@ - return code; - } - -+/// Converts the VM service coverage `package:test --coverage` writes into LCOV. -+/// -+/// Sources are reported as the VM names them: `org-dartlang-root:///` for -+/// files of the workspace and `package:/` for libraries. The `dart:` -+/// core libraries and the test bootstrap are left out. -+String lcovFromCoverage(List documents) { -+ final hits = >{}; -+ for (final document in documents) { -+ final decoded = jsonDecode(document); -+ if (decoded is! Map) continue; -+ for (final entry in (decoded['coverage'] as List? ?? const [])) { -+ final source = (entry as Map)['source'] as String; -+ final reportable = -+ source.startsWith('org-dartlang-root:///') || -+ source.startsWith('package:'); -+ if (!reportable || source.endsWith('.vm_test.dart')) continue; -+ final lines = hits.putIfAbsent(source, () => {}); -+ final pairs = (entry['hits'] as List).cast(); -+ for (var i = 0; i + 1 < pairs.length; i += 2) { -+ if (pairs[i + 1] > (lines[pairs[i]] ?? -1)) { -+ lines[pairs[i]] = pairs[i + 1]; -+ } -+ } -+ } -+ } -+ final out = StringBuffer(); -+ for (final source in hits.keys.toList()..sort()) { -+ final lines = hits[source]!; -+ final numbers = lines.keys.toList()..sort(); -+ out.writeln('SF:$source'); -+ for (final line in numbers) { -+ out.writeln('DA:$line,${lines[line]}'); -+ } -+ out -+ ..writeln('LF:${numbers.length}') -+ ..writeln('LH:${numbers.where((line) => lines[line]! > 0).length}') -+ ..writeln('end_of_record'); -+ } -+ return out.toString(); -+} -+ - /// Lays out `workspace`'s runfiles under [into] from the lines of a runfiles - /// manifest, each ` `. - /// diff --git a/families/fortran/third_party/rules_dx/rules_dart.external_pkgsrcs.patch b/families/fortran/third_party/rules_dx/rules_dart.external_pkgsrcs.patch deleted file mode 100644 index 7e0d9a4f49..0000000000 --- a/families/fortran/third_party/rules_dx/rules_dart.external_pkgsrcs.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -ruN a/dart/private/source_set.bzl b/dart/private/source_set.bzl ---- a/dart/private/source_set.bzl -+++ b/dart/private/source_set.bzl -@@ -183,11 +183,22 @@ - mangled = p.package_name - for ch in ["/", ":", ".", "+"]: - mangled = mangled.replace(ch, "_") -+ root_paths = [p.lib_root] if p.lib_root else ["."] -+ external_repos = [] -+ if p.lib_root.startswith("../"): -+ # An external package's lib_root is short_path style -+ # (`../repo/pkg`), but copy_to_directory drops external files -+ # unless their repo is listed and matches root_paths against the -+ # repo-relative path (`pkg`). -+ repo, _, rest = p.lib_root[len("../"):].partition("/") -+ root_paths = [rest] if rest else [] -+ external_repos = [repo] - assembled = assemble_source_dir( - ctx, - ctx.label.name + "." + mangled + ".pkgsrcs", - files, -- root_paths = [p.lib_root] if p.lib_root else ["."], -+ root_paths = root_paths, -+ include_external_repositories = external_repos, - ) - - # Only `lib_root` changes. Everything else the record carries — diff --git a/families/fortran/third_party/rules_dx/rules_dx.MODULE.bazel b/families/fortran/third_party/rules_dx/rules_dx.MODULE.bazel deleted file mode 100644 index bec8122ced..0000000000 --- a/families/fortran/third_party/rules_dx/rules_dx.MODULE.bazel +++ /dev/null @@ -1,174 +0,0 @@ -# Generated by dx; do not edit. Regenerate with `tools/dx init --apply`. -# Root-only overrides rules_dx needs; see -# https://github.com/devhusdk/rules_dx/blob/main/patches/README.md - -single_version_override( - module_name = "rules_rust", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_rust.clippy_metadata_inputs.patch", - "//third_party/rules_dx:rules_rust.pipelined_rmeta_path.patch", - "//third_party/rules_dx:rules_rust.crate_universe_root_lookup.patch", - "//third_party/rules_dx:rules_rust.exec_cc_toolchain_env.patch", - "//third_party/rules_dx:rules_rust.msvc_pdb_output.patch", - "//third_party/rules_dx:rules_rust.rust_lld_msvc_libpath.patch", - "//third_party/rules_dx:rules_rust.crate_universe_lazy_host_tools.patch", - "//third_party/rules_dx:rules_rust.cargo_toml_env_vars_flag.patch", - ], - version = "0.75.0", -) - -single_version_override( - module_name = "rules_android", - patch_strip = 1, - patches = ["//third_party/rules_dx:rules_android.bundle_keystore_properties.patch"], - version = "0.8.0", -) - -single_version_override( - module_name = "rules_kotlin", - patch_strip = 1, - patches = ["//third_party/rules_dx:rules_kotlin.windows_coverage_test_suite.patch"], - version = "2.4.21", -) - -single_version_override( - module_name = "rules_dart", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_dart.coverage.patch", - "//third_party/rules_dx:rules_dart.external_pkgsrcs.patch", - ], - version = "0.8.1", -) - -single_version_override( - module_name = "rules_julia", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_julia.package_annotation_version.patch", - "//third_party/rules_dx:rules_julia.package_name.patch", - "//third_party/rules_dx:rules_julia.portable_cpu_target.patch", - "//third_party/rules_dx:rules_julia.template_action_input.patch", - ], - version = "0.8.0", -) - -single_version_override( - module_name = "protobuf", - patch_strip = 1, - patches = ["//third_party/rules_dx:protobuf.no_crate_universe.patch"], - version = "36.2", -) - -single_version_override( - module_name = "rules_python", - patch_strip = 1, - patches = ["//third_party/rules_dx:rules_python.single_import_lib.patch"], - version = "2.4.6", -) - -archive_override( - module_name = "rules_py", - integrity = "sha256-TlCUj7uFZKizo7HzVM2ex//f4wT2PGpf6x/bz7/Hgr0=", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_py.py_cc_toolchain_platform.patch", - "//third_party/rules_dx:rules_py.native_sdist_toolchain_flags.patch", - "//third_party/rules_dx:rules_py.pep517_msvc.patch", - "//third_party/rules_dx:rules_py.venv_bin_files.patch", - "//third_party/rules_dx:rules_py.host_interpreter_windows_arm64.patch", - "//third_party/rules_dx:rules_py.external_repo_pytest_paths.patch", - ], - strip_prefix = "rules_py-2.0.0-alpha.11", - urls = ["https://github.com/aspect-build/rules_py/releases/download/v2.0.0-alpha.11/rules_py-v2.0.0-alpha.11.tar.gz"], -) - -single_version_override( - module_name = "aspect_rules_ts", - patch_strip = 1, - patches = ["//third_party/rules_dx:aspect_rules_ts.typecheck_root_dir.patch"], - version = "3.10.1", -) - -single_version_override( - module_name = "avro-cpp", - patch_strip = 1, - patches = ["//third_party/rules_dx:avro-cpp.iterator.patch"], - version = "1.12.0.bcr.1", -) - -single_version_override( - module_name = "gcc_toolchain", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:gcc_toolchain.sanitizer_spec.patch", - "//third_party/rules_dx:gcc_toolchain.runtime_libs.patch", - "//third_party/rules_dx:gcc_toolchain.target_identity_config.patch", - "//third_party/rules_dx:gcc_toolchain.target_identity_defs.patch", - "//third_party/rules_dx:gcc_toolchain.target_identity_extension.patch", - "//third_party/rules_dx:gcc_toolchain.native_include_layout.patch", - ], - version = "0.13.0", -) - -single_version_override( - module_name = "fmt", - version = "12.2.0.bcr.1", -) - -single_version_override( - module_name = "rules_flutter", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_flutter.missing_font.patch", - "//third_party/rules_dx:rules_flutter.lock_extension.patch", - "//third_party/rules_dx:rules_flutter.registrant_javacopts.patch", - ], - version = "0.0.8", -) - -single_version_override( - module_name = "hermetic_launcher", - patch_strip = 1, - patches = ["//third_party/rules_dx:hermetic_launcher.windows_arm64_toolchains.patch"], - version = "0.0.17", -) - -single_version_override( - module_name = "llvm", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:llvm.libunwind_copy.patch", - "//third_party/rules_dx:llvm.clang_cl_crt_default_lib.patch", - "//third_party/rules_dx:llvm.unwatched_overlay_inputs.patch", - "//third_party/rules_dx:llvm.msvc_source_directories.patch", - "//third_party/rules_dx:llvm.lse_atomic_sources.patch", - "//third_party/rules_dx:llvm.stage0_runtime_features.patch", - "//third_party/rules_dx:llvm.aarch64_outline_atomics.patch", - ], - version = "0.8.26", -) - -single_version_override( - module_name = "windows_support", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:windows_support.host_tools.patch", - "//third_party/rules_dx:windows_support.rules_dx_hosts.patch", - "//third_party/rules_dx:windows_support.hostarm64_packages.patch", - "//third_party/rules_dx:windows_support.dx_msvc_layout.patch", - "//third_party/rules_dx:windows_support.source_directory_headers.patch", - ], - version = "0.4.1", -) - -single_version_override( - module_name = "rules_swift", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_swift.toolchain_sysroot_env.patch", - "//third_party/rules_dx:rules_swift.non_root_toolchain.patch", - ], - version = "4.2.2", -) diff --git a/families/fortran/third_party/rules_dx/rules_flutter.lock_extension.patch b/families/fortran/third_party/rules_dx/rules_flutter.lock_extension.patch deleted file mode 100644 index bc042b3bd7..0000000000 --- a/families/fortran/third_party/rules_dx/rules_flutter.lock_extension.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/flutter/extensions.bzl -+++ b/flutter/extensions.bzl -@@ -262,7 +262,7 @@ - # the full set makes tidy force repos they don't. Letting users maintain - # their own use_repo lists (rules_python does the same) is the right - # tradeoff for an extension with this many optional outputs. -- return module_ctx.extension_metadata(reproducible = True) -+ return module_ctx.extension_metadata(reproducible = False) - - flutter = module_extension( - implementation = _toolchain_extension, diff --git a/families/fortran/third_party/rules_dx/rules_flutter.missing_font.patch b/families/fortran/third_party/rules_dx/rules_flutter.missing_font.patch deleted file mode 100644 index 447f91a11b..0000000000 --- a/families/fortran/third_party/rules_dx/rules_flutter.missing_font.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/flutter/private/flutter_library.bzl b/flutter/private/flutter_library.bzl -index 7eb21be..51e9f12 100644 ---- a/flutter/private/flutter_library.bzl -+++ b/flutter/private/flutter_library.bzl -@@ -57,8 +57,9 @@ def build_pub_contributions(package_name, fonts_json, font_files_dict, pkg_asset - weight = font.get("weight"), - style = font.get("style"), - )) -- if asset_path in path_to_file: -- file_list.append(path_to_file[asset_path]) -+ if asset_path not in path_to_file: -+ fail("fonts_json names font asset \"%s\" but font_files does not provide it" % asset_path) -+ file_list.append(path_to_file[asset_path]) - extra_pub_fonts.append(struct( - package_name = package_name, - family = family, diff --git a/families/fortran/third_party/rules_dx/rules_flutter.registrant_javacopts.patch b/families/fortran/third_party/rules_dx/rules_flutter.registrant_javacopts.patch deleted file mode 100644 index 0d5a787241..0000000000 --- a/families/fortran/third_party/rules_dx/rules_flutter.registrant_javacopts.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- a/flutter/android.bzl -+++ b/flutter/android.bzl -@@ -52,6 +52,7 @@ - load("@bazel_skylib//rules:write_file.bzl", "write_file") - load("@rules_android//android:rules.bzl", _android_binary = "android_binary", _android_library = "android_library") - load("@rules_java//java:java_import.bzl", _java_import = "java_import") -+load("@rules_kotlin//kotlin:jvm.bzl", _kt_javac_options = "kt_javac_options") - load("@rules_kotlin//kotlin:android.bzl", _kt_android_library = "kt_android_library") - load("//flutter/private:constants.bzl", _ANDROID_ABI_FOR_ARCH = "ANDROID_ABI_FOR_ARCH", _ANDROID_MIN_SDK_VERSION = "ANDROID_MIN_SDK_VERSION", _ANDROID_TARGET_SDK_VERSION = "ANDROID_TARGET_SDK_VERSION") - load("//flutter/private:flutter_android_application.bzl", _flutter_android_bundle = "flutter_android_bundle") -@@ -621,10 +622,16 @@ - registrant_deps.append("@%s//android:all_android_plugin_libs" % pub_hub_name) - registrant_deps = registrant_deps + deps - -+ _kt_javac_options( -+ name = "__%s_registrant_javac_opts" % name, -+ x_lint = ["-options"], -+ ) -+ - _kt_android_library( - name = "__%s_registrant" % name, - srcs = ["__%s_registrant_src" % name], - custom_package = "io.flutter.plugins", -+ javac_opts = "__%s_registrant_javac_opts" % name, - tags = tags, - deps = registrant_deps, - ) diff --git a/families/fortran/third_party/rules_dx/rules_julia.package_annotation_version.patch b/families/fortran/third_party/rules_dx/rules_julia.package_annotation_version.patch deleted file mode 100644 index d6ea02e65e..0000000000 --- a/families/fortran/third_party/rules_dx/rules_julia.package_annotation_version.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/julia/pkg/private/pkg.bzl -+++ b/julia/pkg/private/pkg.bzl -@@ -482,7 +482,7 @@ - deps = [dep for dep in all_deps if dep in all_package_names] - - repo_name = "{}__{}".format(prefix, package_name) -- package_annotations = annotations.get(package_name) -+ package_annotations = annotations.get("{}@{}".format(package_name, version)) or annotations.get(package_name) - - artifact_deps = _artifact_repositories( - hub = attrs.name, diff --git a/families/fortran/third_party/rules_dx/rules_julia.package_name.patch b/families/fortran/third_party/rules_dx/rules_julia.package_name.patch deleted file mode 100644 index 35c6c5b1a0..0000000000 --- a/families/fortran/third_party/rules_dx/rules_julia.package_name.patch +++ /dev/null @@ -1,76 +0,0 @@ -diff -ruN a/julia/private/julia.bzl b/julia/private/julia.bzl ---- a/julia/private/julia.bzl -+++ b/julia/private/julia.bzl -@@ -40,6 +40,7 @@ - depot = julia_common.precompile( - ctx, - name = ctx.label.name, -+ package = ctx.attr.package_name or ctx.label.name, - includes = includes, - runfiles = runfiles, - dep_depots = dep_depots, -@@ -51,7 +52,7 @@ - - return [ - JuliaInfo( -- app_name = ctx.label.name, -+ app_name = ctx.attr.package_name or ctx.label.name, - srcs = srcs, - transitive_srcs = transitive_srcs, - include = layout.include, -diff -ruN a/julia/private/julia_common.bzl b/julia/private/julia_common.bzl ---- a/julia/private/julia_common.bzl -+++ b/julia/private/julia_common.bzl -@@ -202,7 +202,7 @@ - - path = "{}/{}".format(workspace_name, ctx.label.package).rstrip("/") - -- entry_name = ctx.label.name + ".jl" -+ entry_name = (ctx.attr.package_name or ctx.label.name) + ".jl" - if "src/" + entry_name in rel_paths: - src_layout = True - entry = rel_paths["src/" + entry_name] -@@ -476,7 +476,7 @@ - - return [ - JuliaInfo( -- app_name = ctx.label.name, -+ app_name = ctx.attr.package_name or ctx.label.name, - srcs = depset(srcs), - transitive_srcs = transitive_srcs, - include = layout.include, -@@ -579,12 +579,13 @@ - **kwargs - ) - --def _precompile(ctx, *, name, includes, runfiles, dep_depots, toolchain_info, artifact_depots = None): -+def _precompile(ctx, *, name, includes, runfiles, dep_depots, toolchain_info, artifact_depots = None, package = None): - """Precompile a Julia package into a depot directory. - - Args: - ctx: Rule context. -- name (str): The package (module) name. -+ name (str): The name used for output files. -+ package (str): The package (module) name; defaults to name. - includes (depset[str]): Include paths of the package and its dependencies. - runfiles (runfiles): Runfiles of the package and its dependencies. - dep_depots (depset[File]): Depots of dependencies. -@@ -609,7 +610,7 @@ - args.add("--config", config) - args.add("--manifest", manifest) - args.add("--depot", depot.path) -- args.add("--package", name) -+ args.add("--package", package or name) - - _run_driver( - ctx, -@@ -626,6 +627,9 @@ - - # Attributes every rule using the build-time drivers needs. - DRIVER_ATTRS = { -+ "package_name": attr.string( -+ doc = "Package name; picks the `.jl` entry. Defaults to the target name.", -+ ), - "_rules_julia_common": attr.label( - default = Label("//julia/private:rules_julia_common.jl"), - allow_single_file = True, diff --git a/families/fortran/third_party/rules_dx/rules_julia.portable_cpu_target.patch b/families/fortran/third_party/rules_dx/rules_julia.portable_cpu_target.patch deleted file mode 100644 index a17dd37e9f..0000000000 --- a/families/fortran/third_party/rules_dx/rules_julia.portable_cpu_target.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -ruN a/julia/private/precompile.jl b/julia/private/precompile.jl ---- a/julia/private/precompile.jl -+++ b/julia/private/precompile.jl -@@ -11,6 +11,15 @@ - - include(joinpath(@__DIR__, "rules_julia_common.jl")) - -+# Package images default to the build host's CPU, which a remote worker with a -+# different CPU rejects. Build for the same portable targets as Julia's own -+# images instead. -+function portable_cpu_target() -+ Sys.ARCH === :x86_64 && return "generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)" -+ Sys.ARCH === :aarch64 && return "generic;cortex-a57;thunderx2t99;carmel,clone_all;apple-m1,base(3);neoverse-512tvb,base(3)" -+ return "generic" -+end -+ - function main() - flags = parse_flags(ARGS; scalars = ["--config", "--manifest", "--depot", "--package"]) - config = require_flag(flags, "--config") -@@ -25,6 +34,8 @@ - - # Julia writes new caches to the first depot. The tree and dependency - # depots follow, then the bundled depots for stdlib caches. -+ ENV["JULIA_CPU_TARGET"] = portable_cpu_target() -+ - copy!(DEPOT_PATH, [depot]) - configure_depots!(tree, depots) - append_bundled_depots!(DEPOT_PATH) diff --git a/families/fortran/third_party/rules_dx/rules_julia.template_action_input.patch b/families/fortran/third_party/rules_dx/rules_julia.template_action_input.patch deleted file mode 100644 index 92a496a1e0..0000000000 --- a/families/fortran/third_party/rules_dx/rules_julia.template_action_input.patch +++ /dev/null @@ -1,60 +0,0 @@ -diff -ruN a/julia/private/julia_common.bzl b/julia/private/julia_common.bzl ---- a/julia/private/julia_common.bzl 2026-11-09 15:12:22.821045394 +0100 -+++ b/julia/private/julia_common.bzl 2026-11-09 15:12:22.830896307 +0100 -@@ -383,19 +383,32 @@ - else: - julia_flags_str = " ".join([_shell_quote(arg) for arg in all_flags]) - -- ctx.actions.expand_template( -- template = template_file, -- output = wrapper, -- substitutions = { -- "{config}": config_rloc, -- "{entrypoint}": entrypoint_rloc, -- "{interpreter}": julia_rloc, -- "{julia_flags}": julia_flags_str, -- "{main}": main_rloc, -- "{sysimage}": sysimage_rloc, -- "{test_compiled_modules}": test_compiled_modules, -- }, -- is_executable = True, -+ # The template is generated by an action, so it must be an action input. -+ # expand_template reads it during analysis, which fails when the template -+ # is not downloaded locally (the default remote download mode). -+ args = ctx.actions.args() -+ args.add("--output", wrapper) -+ args.add("--template", template_file) -+ for old, new in { -+ "{config}": config_rloc, -+ "{entrypoint}": entrypoint_rloc, -+ "{interpreter}": julia_rloc, -+ "{julia_flags}": julia_flags_str, -+ "{main}": main_rloc, -+ "{sysimage}": sysimage_rloc, -+ "{test_compiled_modules}": test_compiled_modules, -+ }.items(): -+ args.add("--substitution") -+ args.add(old) -+ args.add(new) -+ _run_driver( -+ ctx, -+ toolchain_info = toolchain_info, -+ driver = ctx.file._wrapper_maker, -+ arguments = args, -+ inputs = depset([template_file]), -+ outputs = [wrapper], -+ mnemonic = "JuliaWrapper", - ) - - return wrapper -@@ -642,6 +655,10 @@ - default = Label("//julia/private:entrypoint.jl"), - allow_single_file = True, - ), -+ "_wrapper_maker": attr.label( -+ default = Label("//julia/private:binary_wrapper_maker.jl"), -+ allow_single_file = True, -+ ), - "_wrapper_template": attr.label( - default = Label("//julia/private:binary_wrapper.tpl"), - allow_single_file = True, diff --git a/families/fortran/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch b/families/fortran/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch deleted file mode 100644 index d5c389c999..0000000000 --- a/families/fortran/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/kotlin/internal/jvm/impl.bzl -+++ b/kotlin/internal/jvm/impl.bzl -@@ -171,10 +171,6 @@ - jar.short_path.replace("../", "external/") - for jar in rjars.to_list() - ])) -- jvm_flags_list.extend([ -- "-ea", -- "-Dbazel.test_suite=" + main_class, -- ]) - _create_windows_exe_launcher( - ctx, - executable = executable, diff --git a/families/fortran/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch b/families/fortran/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch deleted file mode 100644 index 1c1a865474..0000000000 --- a/families/fortran/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/py/private/pytest_main.py -+++ b/py/private/pytest_main.py -@@ -40,7 +40,14 @@ - target_name = os.environ.get("BAZEL_TARGET_NAME", "") - target = os.environ.get("BAZEL_TARGET", "") - if target: -- package = target.split(":")[0].lstrip("/") -+ repo, sep, label = target.partition("//") -+ if not sep: -+ repo, label = "", target -+ package = label.split(":")[0].lstrip("/") -+ repo = repo.lstrip("@") -+ if repo: -+ # A target in an external repository lives at ..//. -+ package = os.path.join("..", repo, package) - paths_file = os.path.join(package, target_name + ".pytest_paths") - if os.path.isfile(paths_file): - with open(paths_file) as f: diff --git a/families/fortran/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch b/families/fortran/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch deleted file mode 100644 index e3e9e912d3..0000000000 --- a/families/fortran/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/MODULE.bazel -+++ b/MODULE.bazel -@@ -73,6 +73,7 @@ - # Individual platform repos — must be visible so the uv extension can - # reference the host interpreter for sdist configure tooling. - "python_3_13_aarch64_apple_darwin", -+ "python_3_13_aarch64_pc_windows_msvc", - "python_3_13_aarch64_unknown_linux_gnu", - "python_3_13_aarch64_unknown_linux_musl", - "python_3_13_i686_pc_windows_msvc", diff --git a/families/fortran/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch b/families/fortran/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch deleted file mode 100644 index 4c5d28c86e..0000000000 --- a/families/fortran/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch +++ /dev/null @@ -1,220 +0,0 @@ -diff --git a/uv/private/extension/defs.bzl b/uv/private/extension/defs.bzl ---- a/uv/private/extension/defs.bzl -+++ b/uv/private/extension/defs.bzl -@@ -1055,7 +1055,7 @@ - ), - "env": attr.string_dict( - default = {}, -- doc = "Extra environment variables merged into the build action's `env` dict. Values may reference $(VAR) make-variables sourced from extra `toolchains` listed above. Prefix an execroot-relative path with `$(EXECROOT)/` so it remains valid after the backend changes into the unpacked source tree. Omit CC/CXX/AR/LD/STRIP to use the configured C++ action tools.", -+ doc = "Extra environment variables merged into the build action's `env` dict. Values may reference $(VAR) make-variables sourced from extra `toolchains` listed above. Prefix an execroot-relative path with `$(EXECROOT)/` so it remains valid after the backend changes into the unpacked source tree. Omit CC/CXX/AR/LD/STRIP to use the configured C++ action tools; while CC and CXX are omitted, the toolchain's compile and link flags are passed too.", - ), - "config_settings": attr.string_list_dict( - default = {}, -diff --git a/uv/private/pep517_whl/cc_layer.bzl b/uv/private/pep517_whl/cc_layer.bzl ---- a/uv/private/pep517_whl/cc_layer.bzl -+++ b/uv/private/pep517_whl/cc_layer.bzl -@@ -13,6 +13,9 @@ - - _PATH_FLAG_PREFIXES = ("-I", "-L", "-isysroot", "-iwithsysroot", "-isystem", "-B") - -+# Execroot-relative roots a `-flag=` value may start with. -+_EXECROOT_ROOTS = ("external/", "bazel-out/") -+ - CC_LAYER_ATTRS = { - "_os_linux": attr.label(default = "@platforms//os:linux"), - "_os_macos": attr.label(default = "@platforms//os:macos"), -@@ -41,6 +44,13 @@ - rest = flag[len(pfx):] - if rest and not rest.startswith("/") and "/" in rest: - return pfx + _EXECROOT_MARKER + "/" + rest -+ -+ # `-resource-dir=`, `-fsanitize-ignorelist=`, `-Wl,--opt=` and similar -+ # carry an execroot-relative path after the first `=`. `--sysroot=` is -+ # left to build_helper's _absolutize_sysroot_flags. -+ name, sep, value = flag.partition("=") -+ if sep and name != "--sysroot" and value.startswith(_EXECROOT_ROOTS): -+ return name + sep + _EXECROOT_MARKER + "/" + value - return flag - - def get_target_platform(ctx): -@@ -73,8 +83,9 @@ - def extract_cc_layer(ctx, cc_toolchain): - """Extract CC toolchain tools, flags, and target platform info. - -- Called only in cross-compilation mode. The native path relies on the -- existing _cc_toolchain_inputs_and_tools + backend self-discovery. -+ Called for cross builds and for native builds whose toolchain carries a -+ feature configuration: a hermetic toolchain supplies its libc headers, -+ crt objects and runtime only through these flags. - - Args: - ctx: The rule context. Must include CC_LAYER_ATTRS and -diff --git a/uv/private/pep517_whl/pep517_native_whl.bzl b/uv/private/pep517_whl/pep517_native_whl.bzl ---- a/uv/private/pep517_whl/pep517_native_whl.bzl -+++ b/uv/private/pep517_whl/pep517_native_whl.bzl -@@ -308,10 +308,21 @@ - env[_INFER_CXX_COMPANION] = "1" - - cross_args = [] -- if cross: -- cc_toolchain = cc_toolchain_raw -- if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -- cc_toolchain = cc_toolchain.cc -+ cc_toolchain = cc_toolchain_raw -+ if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -+ cc_toolchain = cc_toolchain.cc -+ -+ # A hermetic C++ toolchain reaches its libc headers, crt objects and -+ # runtime only through its action flags, so native builds need them too. -+ # Native builds keep the backend's self-discovery when `env` replaces the -+ # toolchain's compiler (its flags may not suit another driver) or the -+ # provider has no feature configuration to derive flags from. -+ native_toolchain_flags = ( -+ hasattr(cc_toolchain, "ar_executable") and -+ "CC" not in ctx.attr.env and -+ "CXX" not in ctx.attr.env -+ ) -+ if cross or native_toolchain_flags: - cc_layer = extract_cc_layer(ctx, cc_toolchain) - - # Toolchain flags first, then any flags the package set via `env` -@@ -338,31 +349,34 @@ - if cc_layer.static_runtime_paths: - env["RULES_PY_CXX_STATIC_RUNTIME"] = ":".join(cc_layer.static_runtime_paths) - -- cross_args = [ -- "--cross", -- "--target-os", -- cc_layer.target_os or "", -- "--target-cpu", -- cc_layer.target_cpu or "", -- "--target-libc", -- ctx.attr._platform_libc[BuildSettingInfo].value, -- ] -- -- py_toolchain = ctx.toolchains[PY_TOOLCHAIN] -- if py_toolchain != None: -- runtime = getattr(py_toolchain, "py3_runtime", None) -- if runtime: -- artifacts = _target_python_artifacts(runtime) -- if artifacts.sysconfig: -- extra_inputs.append(depset([artifacts.sysconfig])) -- env["RULES_PY_TARGET_SYSCONFIGDATA"] = artifacts.sysconfig.path -- if artifacts.include_dir: -- extra_inputs.append(depset(artifacts.include_files)) -- env["RULES_PY_TARGET_INCLUDE"] = artifacts.include_dir -- -- host_platform = _derive_python_host_platform(cc_layer.target_os, cc_layer.target_cpu) -- if host_platform: -- env["_PYTHON_HOST_PLATFORM"] = host_platform -+ if not cross: -+ cross_args = ["--toolchain-flags"] -+ else: -+ cross_args = [ -+ "--cross", -+ "--target-os", -+ cc_layer.target_os or "", -+ "--target-cpu", -+ cc_layer.target_cpu or "", -+ "--target-libc", -+ ctx.attr._platform_libc[BuildSettingInfo].value, -+ ] -+ -+ py_toolchain = ctx.toolchains[PY_TOOLCHAIN] -+ if py_toolchain != None: -+ runtime = getattr(py_toolchain, "py3_runtime", None) -+ if runtime: -+ artifacts = _target_python_artifacts(runtime) -+ if artifacts.sysconfig: -+ extra_inputs.append(depset([artifacts.sysconfig])) -+ env["RULES_PY_TARGET_SYSCONFIGDATA"] = artifacts.sysconfig.path -+ if artifacts.include_dir: -+ extra_inputs.append(depset(artifacts.include_files)) -+ env["RULES_PY_TARGET_INCLUDE"] = artifacts.include_dir -+ -+ host_platform = _derive_python_host_platform(cc_layer.target_os, cc_layer.target_cpu) -+ if host_platform: -+ env["_PYTHON_HOST_PLATFORM"] = host_platform - - tool = ctx.attr.tool[DefaultInfo].files_to_run - io_args = ctx.actions.args() -@@ -418,7 +432,8 @@ - "execroot-relative path with " + - "`$(EXECROOT)/` so it remains valid after the backend changes into " + - "the unpacked source tree. Omit CC/CXX/AR/LD/STRIP to use the " + -- "configured C++ action tools.", -+ "configured C++ action tools; while CC and CXX are omitted, " + -+ "the toolchain's compile and link flags are passed too.", - ), - "_platform_libc": attr.label( - default = "//uv/private/constraints/platform:platform_libc", -diff --git a/uv/private/pep517_whl/tools/build_helper.py b/uv/private/pep517_whl/tools/build_helper.py ---- a/uv/private/pep517_whl/tools/build_helper.py -+++ b/uv/private/pep517_whl/tools/build_helper.py -@@ -582,6 +582,7 @@ - cross: bool = False, - target_os: str = "", - target_cpu: str = "", -+ toolchain_flags: bool = False, - ) -> dict[str, str]: - env = dict(os.environ) - if execroot_marker: -@@ -634,8 +635,9 @@ - cxx_path = _local_cxx_companion(env.get("CXX"), cxx_path) - - sysroot = _darwin_sysroot() -+ toolchain_flags = toolchain_flags or cross - -- if cross: -+ if toolchain_flags: - # Toolchain flag strings (from cc_layer.bzl) contain execroot-relative - # sysroots; absolutize while still in the execroot, before the backend - # chdirs into the unpacked sdist. -@@ -650,14 +652,15 @@ - # runtime's: distutils still injects the running interpreter's - # include path, but CFLAGS-supplied -I directories are searched - # first. -- target_include = env.pop("RULES_PY_TARGET_INCLUDE", "") -+ target_include = env.pop("RULES_PY_TARGET_INCLUDE", "") if cross else "" - if target_include: - include_flag = "-I" + _absolutize_path(target_include) - for key in ("CFLAGS", "CXXFLAGS"): - env[key] = (include_flag + " " + env.get(key, "")).strip() - - wrapper_flags = _get_wrapper_flags(env.get("CFLAGS", "")) -- is_darwin_target = target_os == "darwin" -+ # A native build targets the exec host's own OS. -+ is_darwin_target = target_os == "darwin" if cross else _platform.system() == "Darwin" - - # An LLVM-style toolchain (BCR `llvm` module) reaches its crt objects - # and runtime libraries only through the link action's flags; detect -@@ -691,11 +694,12 @@ - env.setdefault("CC", cc) - env.setdefault("CXX", cxx) - -- if cross: -+ if toolchain_flags: - ldshared_flags = env.get("LDSHAREDFLAGS", "") - env["LDSHARED"] = cc + ((" " + ldshared_flags) if ldshared_flags else "") - env["LDCXXSHARED"] = cxx + ((" " + ldshared_flags) if ldshared_flags else "") - -+ if cross: - deployment_target = None - target_sysconfig = env.get("RULES_PY_TARGET_SYSCONFIGDATA") - if target_sysconfig and path.exists(target_sysconfig): -@@ -1135,6 +1139,7 @@ - PARSER.add_argument("--patch", action="append", default=[], dest="patches", help="Patch file to apply (repeatable)") - PARSER.add_argument("--execroot-marker", help="Token in env values to replace with the absolute execroot") - PARSER.add_argument("--cross", action="store_true", help="Cross-compilation mode: target platform != exec platform") -+PARSER.add_argument("--toolchain-flags", action="store_true", help="CFLAGS/CXXFLAGS/LDFLAGS/LDSHAREDFLAGS carry the C++ toolchain's action flags") - PARSER.add_argument("--target-os", default="", help="Target platform OS the wheel must be tagged for (linux, darwin, windows)") - PARSER.add_argument("--target-libc", default="", help="Target platform C library the wheel must link against (glibc, musl, libsystem)") - PARSER.add_argument("--target-cpu", default="", help="Target platform CPU the wheel must be tagged for (x86_64, aarch64, ...)") -@@ -1191,6 +1196,7 @@ - cross=opts.cross, - target_os=opts.target_os, - target_cpu=opts.target_cpu, -+ toolchain_flags=opts.toolchain_flags, - ) - - if _legacy_metadata_conflicts_with_pyproject(t): diff --git a/families/fortran/third_party/rules_dx/rules_py.pep517_msvc.patch b/families/fortran/third_party/rules_dx/rules_py.pep517_msvc.patch deleted file mode 100644 index 98da8d6002..0000000000 --- a/families/fortran/third_party/rules_dx/rules_py.pep517_msvc.patch +++ /dev/null @@ -1,334 +0,0 @@ -diff -ru a/uv/private/pep517_whl/cc_layer.bzl b/uv/private/pep517_whl/cc_layer.bzl ---- a/uv/private/pep517_whl/cc_layer.bzl -+++ b/uv/private/pep517_whl/cc_layer.bzl -@@ -226,8 +226,65 @@ - static_runtime_paths = static_runtime_paths, - ) - -+def _absolutize_msvc_entries(value): -+ """Prefix the execroot-relative entries of a `;` separated Windows path list.""" -+ entries = [] -+ for entry in value.split(";"): -+ if entry and not entry.startswith(("\\", "/")) and entry[1:2] != ":": -+ entry = _EXECROOT_MARKER + "\\" + entry -+ entries.append(entry) -+ return ";".join(entries) -+ -+def extract_msvc_layer(ctx, cc_toolchain): -+ """Extract the PATH, INCLUDE and LIB a cl.exe toolchain sets. -+ -+ cl.exe and link.exe find the Windows SDK and the MSVC headers and -+ libraries through these variables, not through command line flags. -+ -+ Args: -+ ctx: The rule context, with fragments = ["cpp"]. -+ cc_toolchain: The resolved CcToolchainInfo. -+ -+ Returns: -+ struct(path, include, lib) of `;` separated strings whose -+ execroot-relative entries start with the EXECROOT marker. -+ """ -+ feature_configuration = cc_common.configure_features( -+ ctx = ctx, -+ cc_toolchain = cc_toolchain, -+ requested_features = ctx.features, -+ unsupported_features = ctx.disabled_features + _CC_DISABLED_FEATURES, -+ ) -+ compile_env = cc_common.get_environment_variables( -+ feature_configuration = feature_configuration, -+ action_name = ACTION_NAMES.c_compile, -+ variables = cc_common.create_compile_variables( -+ feature_configuration = feature_configuration, -+ cc_toolchain = cc_toolchain, -+ ), -+ ) -+ -+ # LIB is only set on link actions. -+ link_env = cc_common.get_environment_variables( -+ feature_configuration = feature_configuration, -+ action_name = ACTION_NAMES.cpp_link_dynamic_library, -+ variables = cc_common.create_link_variables( -+ cc_toolchain = cc_toolchain, -+ feature_configuration = feature_configuration, -+ is_using_linker = True, -+ is_linking_dynamic_library = True, -+ must_keep_debug = False, -+ ), -+ ) -+ return struct( -+ path = _absolutize_msvc_entries(compile_env.get("PATH", "")), -+ include = _absolutize_msvc_entries(compile_env.get("INCLUDE", "")), -+ lib = _absolutize_msvc_entries(link_env.get("LIB", "")), -+ ) -+ - # Exposed for the unit tests in tests/pep517_whl_test.bzl only. - cc_layer_test_util = struct( - absolutize_flag = _absolutize_flag, -+ absolutize_msvc_entries = _absolutize_msvc_entries, - execroot_marker = _EXECROOT_MARKER, - ) -diff -ru a/uv/private/pep517_whl/pep517_native_whl.bzl b/uv/private/pep517_whl/pep517_native_whl.bzl ---- a/uv/private/pep517_whl/pep517_native_whl.bzl -+++ b/uv/private/pep517_whl/pep517_native_whl.bzl -@@ -10,7 +10,7 @@ - load("@rules_cc//cc/common:cc_common.bzl", "cc_common") - load("//py/private/interpreter:versions.bzl", "PLATFORMS") - load("//py/private/toolchain:types.bzl", "EXEC_TOOLS_TOOLCHAIN", "NATIVE_BUILD_TOOLCHAIN", "PY_TOOLCHAIN") --load(":cc_layer.bzl", "CC_LAYER_ATTRS", "extract_cc_layer") -+load(":cc_layer.bzl", "CC_LAYER_ATTRS", "extract_cc_layer", "extract_msvc_layer") - load( - ":common.bzl", - "PEP517_WHL_ATTRS", -@@ -42,6 +42,9 @@ - _EXECROOT_MARKER = "__RULES_PY_EXECROOT__" - _INFER_CXX_COMPANION = "RULES_PY_INFER_CXX_COMPANION" - -+# CcToolchainInfo.compiler values that cl.exe builds are driven by. -+_MSVC_COMPILERS = ["msvc-cl"] -+ - def _collect_toolchain_inputs_and_vars(ctx): - """Gather files + Make-variable substitutions from `ctx.attr.toolchains`. - -@@ -182,6 +185,29 @@ - include_dir = include_dir, - ) - -+def _windows_python_artifacts(runtime): -+ """Collect the Windows interpreter files an MSVC build compiles and links against. -+ -+ CPython for Windows keeps its headers in `include/` and its import -+ libraries in `libs/`: `Python.h` and `pyconfig.h` for cl.exe and -+ `python3*.lib` for link.exe. -+ """ -+ files = runtime.files.to_list() if runtime and hasattr(runtime, "files") else [] -+ include_dir = None -+ lib_files = [] -+ for f in files: -+ if f.basename == "pyconfig.h" and f.dirname.endswith("/include"): -+ include_dir = f.dirname -+ elif f.extension == "lib" and f.basename.startswith("python3") and f.dirname.endswith("/libs"): -+ lib_files.append(f) -+ include_files = [f for f in files if include_dir and f.path.startswith(include_dir + "/")] -+ return struct( -+ include_files = include_files, -+ include_dir = include_dir, -+ lib_files = lib_files, -+ lib_dir = lib_files[0].dirname if lib_files else None, -+ ) -+ - def _derive_python_host_platform(target_os, target_cpu): - """Derive _PYTHON_HOST_PLATFORM from target platform constraints. - -@@ -283,6 +309,11 @@ - fail("A toolchain listed in `toolchains` exports the reserved `EXECROOT` make-variable.") - known_variables["EXECROOT"] = _EXECROOT_MARKER - -+ cc_toolchain = cc_toolchain_raw -+ if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -+ cc_toolchain = cc_toolchain.cc -+ msvc = getattr(cc_toolchain, "compiler", None) in _MSVC_COMPILERS -+ - cc_files, cc_tools, infer_cxx = _cc_toolchain_inputs_and_tools(ctx) - if cc_files: - extra_inputs.append(cc_files) -@@ -299,18 +330,16 @@ - for k, v in ctx.attr.env.items(): - env[k] = ctx.expand_make_variables("env", v, known_variables) - -+ # cl.exe is found through PATH, and setuptools drives it without CC. - for key, value in cc_tools.items(): -- if key not in ctx.attr.env: -+ if key not in ctx.attr.env and not msvc: - env[key] = value - - env.pop(_INFER_CXX_COMPANION, None) -- if "CXX" not in ctx.attr.env and cc_tools.get("CXX") and infer_cxx: -+ if "CXX" not in ctx.attr.env and cc_tools.get("CXX") and infer_cxx and not msvc: - env[_INFER_CXX_COMPANION] = "1" - - cross_args = [] -- cc_toolchain = cc_toolchain_raw -- if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -- cc_toolchain = cc_toolchain.cc - - # A hermetic C++ toolchain reaches its libc headers, crt objects and - # runtime only through its action flags, so native builds need them too. -@@ -322,7 +351,21 @@ - "CC" not in ctx.attr.env and - "CXX" not in ctx.attr.env - ) -- if cross or native_toolchain_flags: -+ if msvc: -+ if cross: -+ fail("{}: MSVC sdist builds need a Windows execution platform matching the target".format(ctx.label)) -+ msvc_layer = extract_msvc_layer(ctx, cc_toolchain) -+ py_toolchain = ctx.toolchains[PY_TOOLCHAIN] -+ runtime = getattr(py_toolchain, "py3_runtime", None) if py_toolchain != None else None -+ artifacts = _windows_python_artifacts(runtime) -+ if not artifacts.include_dir or not artifacts.lib_dir: -+ fail("{}: the target interpreter has no include/pyconfig.h and libs/python3*.lib to build against".format(ctx.label)) -+ extra_inputs.append(depset(artifacts.include_files + artifacts.lib_files)) -+ env["PATH"] = msvc_layer.path -+ env["INCLUDE"] = ";".join([msvc_layer.include, _EXECROOT_MARKER + "\\" + artifacts.include_dir.replace("/", "\\")]) -+ env["LIB"] = ";".join([msvc_layer.lib, _EXECROOT_MARKER + "\\" + artifacts.lib_dir.replace("/", "\\")]) -+ cross_args = ["--msvc"] -+ elif cross or native_toolchain_flags: - cc_layer = extract_cc_layer(ctx, cc_toolchain) - - # Toolchain flags first, then any flags the package set via `env` -diff -ru a/uv/private/pep517_whl/tools/build_helper.py b/uv/private/pep517_whl/tools/build_helper.py ---- a/uv/private/pep517_whl/tools/build_helper.py -+++ b/uv/private/pep517_whl/tools/build_helper.py -@@ -10,6 +10,7 @@ - - from argparse import ArgumentParser - from collections.abc import Mapping -+import hashlib - import importlib - import os - import platform as _platform -@@ -576,6 +577,25 @@ - return site_dir - - -+def _add_cargo_and_ant(env: dict[str, str], tmpdir: str) -> None: -+ # maturin locates cargo via shutil.which, not $CARGO — without it on -+ # PATH it auto-installs a Rust toolchain (puccinialin), which fails in -+ # the sandbox. This bites native builds too, so it is not cross-gated. -+ cargo_path = env.get("CARGO") -+ if cargo_path: -+ env["PATH"] = pathsep.join([path.dirname(cargo_path), env.get("PATH", defpath)]) -+ -+ # Cargo's default $CARGO_HOME (~/.cargo) is unwritable in the sandbox. -+ cargo_home = path.join(tmpdir, ".cargo_home") -+ makedirs(cargo_home, exist_ok=True) -+ env.setdefault("CARGO_HOME", cargo_home) -+ -+ # CMake's find_program(ANT_EXECUTABLE) (jpype1 et al.) needs ant on PATH. -+ ant_bin_dir = env.pop("RULES_PY_ANT_BIN_DIR", None) -+ if ant_bin_dir: -+ env["PATH"] = pathsep.join([ant_bin_dir, env.get("PATH", defpath)]) -+ -+ - def _compiler_env( - tmpdir: str, - execroot_marker: str | None = None, -@@ -583,6 +603,7 @@ - target_os: str = "", - target_cpu: str = "", - toolchain_flags: bool = False, -+ msvc: bool = False, - ) -> dict[str, str]: - env = dict(os.environ) - if execroot_marker: -@@ -629,6 +650,21 @@ - # helper still runs there; bare tool names deliberately remain on PATH. - _absolutize_tool_paths(env) - -+ if msvc: -+ # setuptools finds cl.exe through PATH, INCLUDE and LIB from the -+ # toolchain, and only when it is told no Visual Studio is needed. -+ for key in ("CC", "CXX", "CPP", "AR", "LDSHARED", "LDCXXSHARED"): -+ env.pop(key, None) -+ env["DISTUTILS_USE_SDK"] = "1" -+ env["MSSdk"] = "1" -+ _add_cargo_and_ant(env, tmpdir) -+ if len(sys.executable) >= 250: -+ # CreateProcess rejects a venv interpreter under the deep runfiles -+ # tree; run the short base interpreter against the venv packages. -+ env["PYTHONPATH"] = pathsep.join(entry for entry in sys.path if entry) -+ sys.executable = sys._base_executable -+ return env -+ - cc_path = _resolve_compiler_path(env, "CC", "cc") - cxx_path = _resolve_compiler_path(env, "CXX", "c++") - if env.pop("RULES_PY_INFER_CXX_COMPANION", None) == "1": -@@ -756,22 +792,7 @@ - ]: - _override_tool(env, key, wrapper) - -- # maturin locates cargo via shutil.which, not $CARGO — without it on -- # PATH it auto-installs a Rust toolchain (puccinialin), which fails in -- # the sandbox. This bites native builds too, so it is not cross-gated. -- cargo_path = env.get("CARGO") -- if cargo_path: -- env["PATH"] = pathsep.join([path.dirname(cargo_path), env.get("PATH", defpath)]) -- -- # Cargo's default $CARGO_HOME (~/.cargo) is unwritable in the sandbox. -- cargo_home = path.join(tmpdir, ".cargo_home") -- makedirs(cargo_home, exist_ok=True) -- env.setdefault("CARGO_HOME", cargo_home) -- -- # CMake's find_program(ANT_EXECUTABLE) (jpype1 et al.) needs ant on PATH. -- ant_bin_dir = env.pop("RULES_PY_ANT_BIN_DIR", None) -- if ant_bin_dir: -- env["PATH"] = pathsep.join([ant_bin_dir, env.get("PATH", defpath)]) -+ _add_cargo_and_ant(env, tmpdir) - - return env - -@@ -1140,10 +1161,32 @@ - PARSER.add_argument("--execroot-marker", help="Token in env values to replace with the absolute execroot") - PARSER.add_argument("--cross", action="store_true", help="Cross-compilation mode: target platform != exec platform") - PARSER.add_argument("--toolchain-flags", action="store_true", help="CFLAGS/CXXFLAGS/LDFLAGS/LDSHAREDFLAGS carry the C++ toolchain's action flags") -+PARSER.add_argument("--msvc", action="store_true", help="cl.exe build: the environment carries PATH, INCLUDE and LIB, and no GNU-style compiler variables are set") - PARSER.add_argument("--target-os", default="", help="Target platform OS the wheel must be tagged for (linux, darwin, windows)") - PARSER.add_argument("--target-libc", default="", help="Target platform C library the wheel must link against (glibc, musl, libsystem)") - PARSER.add_argument("--target-cpu", default="", help="Target platform CPU the wheel must be tagged for (x86_64, aarch64, ...)") - -+def _msvc_worktree_root(output: str) -> str: -+ # link.exe cannot open paths past MAX_PATH, and the default worktree under -+ # a deep output_base pushes the .exp file over it (LNK1104). Unpack into a -+ # short root that is fixed per output. It is not a declared Bazel output; -+ # that is fine because Windows actions run without a sandbox. -+ digest = hashlib.sha256(path.abspath(output).encode()).hexdigest()[:10] -+ return path.join(os.getcwd(), "_pep517", digest) -+ -+ -+def _shorten_bin_dirs(env: dict[str, str], short_root: str) -> None: -+ # CreateProcess cannot start an executable past MAX_PATH, and the -+ # whl_install bin/ dirs deep in the runfiles tree hold maturin.exe and -+ # friends (WinError 206). Copy them under the short root instead. -+ entries = env.get("PATH", "").split(pathsep) -+ for i, entry in enumerate(entries): -+ if entry.endswith("actual_install.install" + os.sep + "bin") and path.isdir(entry): -+ entries[i] = path.join(short_root, "bin", str(i)) -+ shutil.copytree(entry, entries[i]) -+ env["PATH"] = pathsep.join(entries) -+ -+ - def main() -> None: - opts, _ = PARSER.parse_known_args() - -@@ -1152,6 +1195,11 @@ - makedirs(tmp_root, exist_ok=False) - - t = path.join(tmp_root, "worktree") -+ msvc_root = None -+ if opts.msvc: -+ msvc_root = _msvc_worktree_root(opts.output) -+ shutil.rmtree(msvc_root, ignore_errors=True) -+ t = path.join(msvc_root, "w") - - shutil.unpack_archive(opts.srcarchive, t) - -@@ -1197,7 +1245,10 @@ - target_os=opts.target_os, - target_cpu=opts.target_cpu, - toolchain_flags=opts.toolchain_flags, -+ msvc=opts.msvc, - ) -+ if msvc_root: -+ _shorten_bin_dirs(build_env, msvc_root) - - if _legacy_metadata_conflicts_with_pyproject(t): - print( -@@ -1306,6 +1357,8 @@ - exit(1) - - os.replace(path.join(outdir, inventory[0]), path.abspath(opts.output)) -+ if msvc_root: -+ shutil.rmtree(msvc_root, ignore_errors=True) - - - if __name__ == "__main__": diff --git a/families/fortran/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch b/families/fortran/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch deleted file mode 100644 index d558c1111f..0000000000 --- a/families/fortran/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch +++ /dev/null @@ -1,635 +0,0 @@ -diff --git a/py/private/interpreter/repository.bzl b/py/private/interpreter/repository.bzl ---- a/py/private/interpreter/repository.bzl -+++ b/py/private/interpreter/repository.bzl -@@ -43,8 +43,19 @@ def _python_interpreter_impl(rctx): - if "linux" in platform: - rctx.delete("share/terminfo") - -+ if is_windows: -+ sys_platform = "win32" -+ elif is_macos: -+ sys_platform = "darwin" -+ else: -+ sys_platform = "linux" -+ platform_machine = "aarch64" if platform.startswith(("aarch64", "arm64")) else "x86_64" -+ - rctx.file("BUILD.bazel", content = _build_file_content( - abi_flags = rctx.attr.abi_flags, -+ sys_platform = sys_platform, -+ platform_machine = platform_machine, -+ libc = "musl" if "musl" in platform else "", - major = major, - minor = minor, - micro = micro, -@@ -92,7 +103,7 @@ filegroup( - - return "\n".join(lines), all_excludes - --def _build_file_content(major, minor, micro, python_bin, is_macos, is_windows, abi_flags, releaselevel, serial): -+def _build_file_content(major, minor, micro, python_bin, is_macos, is_windows, abi_flags, releaselevel, serial, sys_platform, platform_machine, libc): - """Generate the full BUILD.bazel content for an interpreter repo.""" - - # A free-threaded build's standard library is lib/python3.14t, not -@@ -276,9 +287,14 @@ py_cc_toolchain( - name = "py_cc_toolchain", - headers = ":python_headers", - {headers_abi3_attr}{libs_attr} python_version = "{major}.{minor}", --) -+ sys_platform = "{sys_platform}", -+ platform_machine = "{platform_machine}", -+{libc_attr}) - """.format( - abi_flags = abi_flags, -+ libc_attr = " libc = \"{}\",\n".format(libc) if libc else "", -+ platform_machine = platform_machine, -+ sys_platform = sys_platform, - abi3_header_target = abi3_header_target, - header_interface_deps = repr(header_interface_deps), - headers_abi3_attr = headers_abi3_attr, -diff --git a/py/private/interpreter/repository.bzl.orig b/py/private/interpreter/repository.bzl.orig -new file mode 100644 ---- /dev/null -+++ b/py/private/interpreter/repository.bzl.orig -@@ -0,0 +1,582 @@ -+"""Repository rules for Python interpreter toolchains.""" -+ -+load(":exclude_feature.bzl", "INTERPRETER_FEATURES") -+ -+_PYTHON_VERSION_FLAG = "@rules_py//py/private/interpreter:python_version" -+_RPY_VERSION_FLAG = "@rules_python//python/config_settings:python_version" -+_FREETHREADING_FLAG = "@rules_py//py/private/interpreter:freethreaded" -+_EXCLUDE_FEATURE_FLAG = "@rules_py//py/private/interpreter:exclude_feature" -+ -+def _python_interpreter_impl(rctx): -+ """Downloads and extracts a Python interpreter from PBS.""" -+ url = rctx.attr.url -+ platform = rctx.attr.platform -+ -+ python_version = rctx.attr.python_version -+ sha256 = rctx.attr.sha256 -+ strip_prefix = rctx.attr.strip_prefix -+ rctx.download_and_extract( -+ url = [url], -+ sha256 = sha256, -+ stripPrefix = strip_prefix, -+ ) -+ -+ # Determine the Python binary path -+ is_macos = "apple-darwin" in platform -+ is_windows = "windows" in platform -+ python_bin = "python.exe" if is_windows else "bin/python3" -+ version_parts = python_version.split(".") -+ major = version_parts[0] -+ minor = version_parts[1] -+ micro = version_parts[2] if len(version_parts) > 2 else "0" -+ releaselevel = "final" -+ serial = "0" -+ for marker, level in [("rc", "candidate"), ("b", "beta"), ("a", "alpha")]: -+ marker_index = micro.find(marker) -+ if marker_index >= 0: -+ serial = micro[marker_index + len(marker):] or "0" -+ micro = micro[:marker_index] or "0" -+ releaselevel = level -+ break -+ -+ # Delete terminfo symlink loops on newer PBS releases (linux only) -+ if "linux" in platform: -+ rctx.delete("share/terminfo") -+ -+ rctx.file("BUILD.bazel", content = _build_file_content( -+ abi_flags = rctx.attr.abi_flags, -+ major = major, -+ minor = minor, -+ micro = micro, -+ python_bin = python_bin, -+ is_macos = is_macos, -+ is_windows = is_windows, -+ releaselevel = releaselevel, -+ serial = serial, -+ )) -+ -+ return rctx.repo_metadata(reproducible = True) -+ -+def _feature_filegroups(stdlib, is_windows): -+ """Generate per-feature filegroup targets and config_settings. -+ -+ Returns a tuple of (feature_targets_str, all_feature_exclude_patterns). -+ The exclude patterns are used to carve out feature files from the core filegroup. -+ """ -+ if is_windows: -+ return "", [] -+ -+ lines = [] -+ all_excludes = [] -+ -+ for feature_name, feature_info in INTERPRETER_FEATURES.items(): -+ patterns = [ -+ p.format(stdlib = stdlib) -+ for p in feature_info["include"] -+ ] -+ all_excludes.extend(patterns) -+ -+ lines.append("""\ -+config_setting( -+ name = "_exclude_{feature}", -+ flag_values = {{"{flag}": "{feature}"}}, -+) -+""".format(feature = feature_name, flag = _EXCLUDE_FEATURE_FLAG)) -+ -+ lines.append("""\ -+filegroup( -+ name = "_feature_{feature}", -+ srcs = glob({patterns}, exclude = ["**/__pycache__/*.pyc*"], allow_empty = True), -+) -+""".format(feature = feature_name, patterns = repr(patterns))) -+ -+ return "\n".join(lines), all_excludes -+ -+def _build_file_content(major, minor, micro, python_bin, is_macos, is_windows, abi_flags, releaselevel, serial): -+ """Generate the full BUILD.bazel content for an interpreter repo.""" -+ -+ # A free-threaded build's standard library is lib/python3.14t, not -+ # lib/python3.14. -+ stdlib = "lib/python{}.{}{}".format(major, minor, "t" if "t" in abi_flags else "") -+ feature_targets, feature_excludes = _feature_filegroups(stdlib, is_windows) -+ -+ include_dirs = ["include"] -+ if not is_windows: -+ include_dirs.append("include/python{}.{}{}".format(major, minor, abi_flags)) -+ -+ library_targets = "" -+ header_interface_deps = [] -+ abi3_header_target = "" -+ headers_abi3_attr = "" -+ libs_attr = "" -+ -+ # Unlike POSIX, Windows extensions must link a Python import library: -+ # https://docs.python.org/3/extending/windows.html#differences-between-unix-and-windows -+ # -+ # Free-threaded CPython 3.13 rejects the regular stable ABI: -+ # https://github.com/python/cpython/blob/v3.13.5/Include/Python.h#L53-L56 -+ if is_windows: -+ # Windows extensions link an import library. Regular stable-ABI -+ # extensions use python3.lib. -+ # https://docs.python.org/3.13/c-api/stable.html#stable-application-binary-interface -+ library_targets = """\ -+cc_import( -+ name = "interface", -+ interface_library = "libs/python{major}{minor}{abi_flags}.lib", -+ system_provided = True, -+ visibility = ["//visibility:private"], -+) -+""".format( -+ abi_flags = abi_flags, -+ major = major, -+ minor = minor, -+ ) -+ libs_attr = " libs = \":interface\",\n" -+ header_interface_deps = [":interface"] -+ if abi_flags == "": -+ library_targets += """ -+cc_import( -+ name = "abi3_interface", -+ interface_library = "libs/python3.lib", -+ system_provided = True, -+ visibility = ["//visibility:private"], -+) -+""" -+ abi3_header_target = """\ -+cc_library( -+ name = "python_headers_abi3", -+ hdrs = [":includes"], -+ includes = {include_dirs}, -+ visibility = ["//visibility:private"], -+ deps = [":abi3_interface"], -+) -+""".format(include_dirs = repr(include_dirs)) -+ headers_abi3_attr = " headers_abi3 = \":python_headers_abi3\",\n" -+ else: -+ # rules_python exposes this target through current_py_cc_libs for -+ # embedding consumers. Keep it separate from python_headers so Python -+ # extension modules do not acquire a libpython dependency. -+ # https://rules-python.readthedocs.io/en/latest/toolchains.html#consuming-python-c-headers-and-libraries -+ if is_macos: -+ libpython_srcs = ["lib/libpython{}.{}{}.dylib".format(major, minor, abi_flags)] -+ else: -+ libpython_srcs = [ -+ "lib/libpython{}.{}{}.so".format(major, minor, abi_flags), -+ "lib/libpython{}.{}{}.so.1.0".format(major, minor, abi_flags), -+ ] -+ library_targets = """\ -+cc_library( -+ name = "libpython", -+ srcs = {libpython_srcs}, -+ visibility = ["//visibility:private"], -+) -+""".format(libpython_srcs = repr(libpython_srcs)) -+ libs_attr = " libs = \":libpython\",\n" -+ if abi_flags == "": -+ headers_abi3_attr = " headers_abi3 = \":python_headers\",\n" -+ -+ venv_dlls_target = "" -+ venv_dlls_attr = "" -+ if is_windows: -+ # The DLLs that `python -m venv --symlinks` links beside a venv's -+ # interpreter on Windows. -+ venv_dlls_target = """\ -+filegroup( -+ name = "venv_dlls", -+ srcs = glob(["python*.dll", "vcruntime*.dll"]), -+ visibility = ["//visibility:private"], -+) -+ -+""" -+ venv_dlls_attr = " venv_dlls = [\":venv_dlls\"],\n" -+ core_include = '["**/*.py", "**/*.pyd", "**/*.dll", "**/*.exe", "include/**", "Lib/**"]' -+ core_exclude = '["Lib/**/test/**", "Lib/**/tests/**", "**/__pycache__/*.pyc*"]' -+ else: -+ core_include = '["bin/**", "lib/**"]' -+ core_exclude = repr( -+ [ -+ "lib/**/*.a", -+ stdlib + "/**/test/**", -+ stdlib + "/**/tests/**", -+ "**/__pycache__/*.pyc*", -+ ] + -+ feature_excludes, -+ ) -+ -+ # Build the select() expressions for optional features -+ feature_selects = "" -+ if not is_windows: -+ for feature_name in INTERPRETER_FEATURES.keys(): -+ feature_selects += """\ -+ + select({{ -+ ":_exclude_{feature}": [], -+ "//conditions:default": [":_feature_{feature}"], -+ }}) -+""".format(feature = feature_name) -+ -+ return """\ -+load("@rules_cc//cc:cc_import.bzl", "cc_import") -+load("@rules_cc//cc:cc_library.bzl", "cc_library") -+load("@rules_py//py/private/interpreter:runtime.bzl", "py_runtime_toolchain") -+load("@rules_python//python/cc:py_cc_toolchain.bzl", "py_cc_toolchain") -+ -+package(default_visibility = ["//visibility:public"]) -+ -+# --- Optional interpreter features --- -+ -+{feature_targets} -+ -+# --- Core + optional filegroups --- -+ -+filegroup( -+ name = "_core", -+ srcs = glob( -+ include = {core_include}, -+ exclude = {core_exclude}, -+ ), -+) -+ -+filegroup( -+ name = "files", -+ srcs = [":_core"] -+{feature_selects} , -+) -+ -+# --- Python C toolchain --- -+ -+{library_targets}filegroup( -+ name = "includes", -+ srcs = glob(["include/**/*.h"], allow_empty = False), -+ visibility = ["//visibility:private"], -+) -+ -+{abi3_header_target}cc_library( -+ name = "python_headers", -+ hdrs = [":includes"], -+ includes = {include_dirs}, -+ visibility = ["//visibility:private"], -+ deps = {header_interface_deps}, -+) -+ -+{venv_dlls_target}py_runtime_toolchain( -+ name = "runtime", -+ abi_flags = "{abi_flags}", -+ files = [":files"], -+ interpreter = "{python_bin}", -+ interpreter_version_info = {{ -+ "major": "{major}", -+ "minor": "{minor}", -+ "micro": "{micro}", -+ "releaselevel": "{releaselevel}", -+ "serial": "{serial}", -+ }}, -+{venv_dlls_attr}) -+ -+py_cc_toolchain( -+ name = "py_cc_toolchain", -+ headers = ":python_headers", -+{headers_abi3_attr}{libs_attr} python_version = "{major}.{minor}", -+) -+""".format( -+ abi_flags = abi_flags, -+ abi3_header_target = abi3_header_target, -+ header_interface_deps = repr(header_interface_deps), -+ headers_abi3_attr = headers_abi3_attr, -+ include_dirs = repr(include_dirs), -+ library_targets = library_targets, -+ libs_attr = libs_attr, -+ python_bin = python_bin, -+ major = major, -+ minor = minor, -+ micro = micro, -+ releaselevel = releaselevel, -+ serial = serial, -+ feature_targets = feature_targets, -+ feature_selects = feature_selects, -+ core_include = core_include, -+ core_exclude = core_exclude, -+ venv_dlls_target = venv_dlls_target, -+ venv_dlls_attr = venv_dlls_attr, -+ ) -+ -+python_interpreter = repository_rule( -+ implementation = _python_interpreter_impl, -+ attrs = { -+ "abi_flags": attr.string(mandatory = True), -+ "platform": attr.string(mandatory = True), -+ "python_version": attr.string(default = ""), -+ "sha256": attr.string(default = ""), -+ "strip_prefix": attr.string(default = "python"), -+ "url": attr.string(default = ""), -+ }, -+) -+ -+def _python_interpreter_unavailable_impl(rctx): -+ rctx.file("BUILD.bazel", content = "fail({})\n".format(repr(rctx.attr.message))) -+ return rctx.repo_metadata(reproducible = True) -+ -+# Stub for version/platform/mode combos with no usable PBS asset. The extension -+# must generate every repo name regardless of build_config so use_repo() -+# imports stay valid. The repo fetches cleanly (eager fetchers like -+# `bazel fetch --all` and `bazel vendor` must not break); referencing any -+# target in it fails at load time with the message. -+python_interpreter_unavailable = repository_rule( -+ implementation = _python_interpreter_unavailable_impl, -+ attrs = { -+ "message": attr.string(mandatory = True), -+ }, -+) -+ -+def _platform_setting_name(flag, value): -+ """Generate a unique config_setting name for a flag/value pair.""" -+ -+ # Extract the last path component of the flag label as a readable prefix, -+ # e.g. "@rules_py//uv/private/constraints/platform:platform_libc" -+ # -> "platform_libc_glibc" -+ name = flag.split(":")[-1] if ":" in flag else flag.split("/")[-1] -+ return "{}_is_{}".format(name, value) -+ -+_EXEC_TOOLS_TOOLCHAIN_TYPE = "@rules_py//py/private/toolchain:exec_tools_toolchain_type" -+ -+def _exec_toolchain(name, exec_compatible_with, toolchain, toolchain_type, target_settings = None): -+ """A toolchain() selected by exec platform, optionally gated on target settings.""" -+ settings = "" if target_settings == None else " target_settings = {},\n".format(target_settings) -+ return """toolchain( -+ name = "{name}", -+ exec_compatible_with = {exec_compatible_with}, -+{settings} toolchain = "{toolchain}", -+ toolchain_type = "{toolchain_type}", -+) -+""".format( -+ name = name, -+ exec_compatible_with = exec_compatible_with, -+ settings = settings, -+ toolchain = toolchain, -+ toolchain_type = toolchain_type, -+ ) -+ -+def _note_fallback(fallbacks, info, exec_compatible_with): -+ """Keep the platform's highest provisioned version for the ungated fallback entry.""" -+ version_key = tuple([int(part) for part in info["python_version"].split(".")]) -+ prior = fallbacks.get(repr(exec_compatible_with)) -+ if prior == None or version_key > prior[0]: -+ fallbacks[repr(exec_compatible_with)] = (version_key, info["name"], info["repo"], exec_compatible_with) -+ -+def _fallback_toolchains(fallbacks, suffix, target, toolchain_type): -+ """Ungated entries; the `zz_` prefix sorts them after every gated one under lexicographic registration.""" -+ return [ -+ "\n" + _exec_toolchain( -+ "zz_{}_{}_fallback".format(name, suffix), -+ constraints, -+ "@{}//:{}".format(repo, target), -+ toolchain_type, -+ ) -+ for _, name, repo, constraints in fallbacks.values() -+ ] -+ -+def _version_setting_name(major_minor): -+ """Generate config_setting name for a Python version.""" -+ return "python_version_is_" + major_minor.replace(".", "_") -+ -+def _freethreaded_setting_name(value): -+ """Generate config_setting name for the freethreaded flag.""" -+ return "freethreaded_is_" + ("true" if value else "false") -+ -+def _python_toolchains_impl(rctx): -+ """Creates toolchain() registrations pointing to interpreter repos.""" -+ content = [ -+ 'load("@bazel_skylib//lib:selects.bzl", "selects")', -+ 'load("@rules_py//py/private/interpreter:current_py_toolchain.bzl", "current_py_toolchain")', -+ 'package(default_visibility = ["//visibility:public"])', -+ ] -+ -+ # First pass: collect all unique flag/value pairs and version/freethreaded -+ # combos so we generate each config_setting exactly once. -+ seen_settings = {} # name -> (flag, value) -+ seen_versions = set() # major_minor -+ seen_freethreaded = set() -+ toolchain_infos = [] -+ -+ for entry in rctx.attr.toolchains: -+ info = json.decode(entry) -+ platform_settings = info.get("platform_target_settings", {}) -+ setting_names = [] -+ for flag, value in platform_settings.items(): -+ name = _platform_setting_name(flag, value) -+ if name not in seen_settings: -+ seen_settings[name] = (flag, value) -+ setting_names.append(name) -+ -+ # Track version/freethreaded for hub-local config_settings -+ python_version = info["python_version"] -+ seen_versions.add(python_version) -+ seen_freethreaded.add(info.get("freethreaded", False)) -+ -+ toolchain_infos.append((info, setting_names)) -+ -+ # Emit hub-local version config_settings so toolchain resolution doesn't -+ # need to fetch individual interpreter repos. -+ content.append(""" -+# Each python_version_is_* group matches on our own version flag, with -+# rules_python's flag as a fallback: the fallback selects only when our own -+# flag is unset, so setting our flag always wins and rpy's default can't -+# shadow it.""") -+ for major_minor in seen_versions: -+ group_name = _version_setting_name(major_minor) -+ content.append(""" -+config_setting( -+ name = "_{group}_our_major_minor", -+ flag_values = {{"{our_flag}": "{major_minor}"}}, -+) -+ -+config_setting( -+ name = "_{group}_rpy_fallback", -+ flag_values = {{ -+ "{our_flag}": "", -+ "{rpy_flag}": "{major_minor}", -+ }}, -+) -+ -+selects.config_setting_group( -+ name = "{group}", -+ match_any = [ -+ ":_{group}_our_major_minor", -+ ":_{group}_rpy_fallback", -+ ], -+) -+""".format( -+ group = group_name, -+ major_minor = major_minor, -+ our_flag = _PYTHON_VERSION_FLAG, -+ rpy_flag = _RPY_VERSION_FLAG, -+ )) -+ -+ # Emit hub-local freethreaded config_settings -+ for value in seen_freethreaded: -+ name = _freethreaded_setting_name(value) -+ content.append(""" -+config_setting( -+ name = "{name}", -+ flag_values = {{"{flag}": "{value}"}}, -+) -+""".format( -+ name = name, -+ flag = _FREETHREADING_FLAG, -+ value = "true" if value else "false", -+ )) -+ -+ # Emit config_settings for platform target settings -+ for name, (flag, value) in seen_settings.items(): -+ content.append(""" -+config_setting( -+ name = "{name}", -+ flag_values = {{"{flag}": "{value}"}}, -+) -+""".format(name = name, flag = flag, value = value)) -+ -+ # Bazel resolves each toolchain type independently. Give the runtime and C -+ # registrations identical compatibility predicates so each PBS entry -+ # offers a matching pair: https://github.com/aspect-build/rules_py/issues/1095 -+ # -+ # Second pass: emit toolchain() registrations. -+ content.append(""" -+# The Python interpreter toolchains have no exec_compatible_with: the -+# interpreter runs on the TARGET platform (inside the virtualenv), not on the -+# exec host. Setting exec_compatible_with = platform_constraints would prevent -+# a toolchain from being selected during cross-compilation (e.g. building an -+# arm64 image on an amd64 host), because the exec platform (amd64) would not -+# satisfy the arm64 exec constraint. The target_compatible_with constraint is -+# sufficient to pick the right interpreter for the target. -+# -+# The *_exec_tools toolchains are instead selected by exec platform (not -+# target platform) so that build actions using the interpreter (e.g. -+# compileall) get a runnable binary on the build host regardless of the target -+# platform being built for. Version-gated so the exec interpreter follows the -+# version flags.""") -+ exec_tools_fallbacks = {} # repr(exec_compatible_with) -> (version tuple, name, repo, constraints) -+ for info, platform_setting_names in toolchain_infos: -+ extra_config_settings = info.get("config_settings", []) -+ extra_target_compatible = info.get("target_compatible_with", []) -+ extra_exec_compatible = info.get("exec_compatible_with", []) -+ -+ version_setting = ":" + _version_setting_name(info["python_version"]) -+ freethreaded_setting = ":" + _freethreaded_setting_name(info.get("freethreaded", False)) -+ -+ target_settings = [ -+ version_setting, -+ freethreaded_setting, -+ ] + [":" + name for name in platform_setting_names] + extra_config_settings -+ -+ target_compatible_with = info["compatible_with"] + extra_target_compatible -+ exec_compatible_with = info["compatible_with"] + extra_exec_compatible -+ -+ content.append(""" -+toolchain( -+ name = "{name}", -+ target_compatible_with = {target_compatible_with}, -+ target_settings = {target_settings}, -+ toolchain = "@{repo}//:runtime", -+ toolchain_type = "@bazel_tools//tools/python:toolchain_type", -+) -+ -+toolchain( -+ name = "{name}_py_cc", -+ target_compatible_with = {target_compatible_with}, -+ target_settings = {target_settings}, -+ toolchain = "@{repo}//:py_cc_toolchain", -+ toolchain_type = "@rules_python//python/cc:toolchain_type", -+) -+""".format( -+ name = info["name"], -+ repo = info["repo"], -+ target_compatible_with = target_compatible_with, -+ target_settings = target_settings, -+ )) -+ -+ if info["register_exec_tools"]: -+ # Also gated on the freethreaded flag so exec-tools consumers get -+ # an interpreter ABI-matching the target runtime; consumers that -+ # only need *a* runnable interpreter are caught by the ungated -+ # zz_ fallback. -+ content.append(_exec_toolchain( -+ info["name"] + "_exec_tools", -+ exec_compatible_with, -+ "@{}//:runtime".format(info["repo"]), -+ _EXEC_TOOLS_TOOLCHAIN_TYPE, -+ target_settings = [version_setting, freethreaded_setting], -+ )) -+ _note_fallback(exec_tools_fallbacks, info, exec_compatible_with) -+ -+ # Ungated exec-tools fallbacks: build actions only need *a* runnable host -+ # interpreter, so configurations matching no version-gated entry (e.g. the -+ # version flags at defaults not provisioned by this hub) fall back to the -+ # platform's highest provisioned version. -+ content.extend(_fallback_toolchains(exec_tools_fallbacks, "exec_tools", "runtime", _EXEC_TOOLS_TOOLCHAIN_TYPE)) -+ -+ content.append(""" -+exports_files( -+ ["BUILD.bazel"], -+ visibility = ["//visibility:public"], -+) -+ -+current_py_toolchain( -+ name = "current_py_toolchain", -+) -+""") -+ -+ rctx.file("BUILD.bazel", content = "\n".join(content)) -+ -+ return rctx.repo_metadata(reproducible = True) -+ -+python_toolchains = repository_rule( -+ implementation = _python_toolchains_impl, -+ attrs = { -+ "toolchains": attr.string_list(), -+ }, -+) -+ -+# Exposed for unit tests only. -+repository_testlib = struct( -+ build_file_content = _build_file_content, -+ feature_filegroups = _feature_filegroups, -+) diff --git a/families/fortran/third_party/rules_dx/rules_py.venv_bin_files.patch b/families/fortran/third_party/rules_dx/rules_py.venv_bin_files.patch deleted file mode 100644 index d2a9feabf7..0000000000 --- a/families/fortran/third_party/rules_dx/rules_py.venv_bin_files.patch +++ /dev/null @@ -1,106 +0,0 @@ -diff -ru a/py/private/interpreter/runtime.bzl b/py/private/interpreter/runtime.bzl ---- a/py/private/interpreter/runtime.bzl -+++ b/py/private/interpreter/runtime.bzl -@@ -32,6 +32,7 @@ - # https://github.com/python/cpython/blob/v3.15.0a5/Python/sysmodule.c#L3570-L3576 - pyc_tag = "cpython-{}{}".format(int(version_info["major"]), int(version_info["minor"])), - supports_build_time_venv = True, -+ venv_bin_files = ctx.files.venv_dlls, - python_version = "PY3", - # rules_python's own public-for-implicit-deps template files — label - # references, not .bzl loads. -diff -ru a/py/private/py_venv/toolchains_resolver.bzl b/py/private/py_venv/toolchains_resolver.bzl ---- a/py/private/py_venv/toolchains_resolver.bzl -+++ b/py/private/py_venv/toolchains_resolver.bzl -@@ -160,9 +160,9 @@ - the directory it was started from, so ``bin/`` gets both. - - Returns: -- dict of ``bin/``-relative name to symlink ``target_path``. -+ dict of ``bin/``-relative name to the file it links to. - """ -- links = {"python.exe": "python"} -+ links = {"python.exe": py_toolchain.python} - dlls = py_toolchain.venv_dlls - - # Toolchains not generated by rules_py don't provide `venv_dlls`. -@@ -175,10 +175,7 @@ - if not dlls: - dlls = _interpreter_dir_dlls(py_toolchain) - for dll in dlls: -- links[dll.basename] = "{}/{}".format( -- _relative_up(3 + package_depth), -- to_rlocation_path(ctx, dll), -- ) -+ links[dll.basename] = dll - return links - - def resolve_venv_toolchain(ctx, *, py_toolchain, is_windows, venv_name): -diff -ru a/py/private/py_venv/venv.bzl b/py/private/py_venv/venv.bzl ---- a/py/private/py_venv/venv.bzl -+++ b/py/private/py_venv/venv.bzl -@@ -371,31 +371,43 @@ - # absolute target bakes in the build-host execroot path that does not - # exist inside an OCI container, leaving a dangling symlink. The - # target path itself is computed by resolve_venv_toolchain. -- bin_python = ctx.actions.declare_symlink("{}/bin/python".format(venv_name)) -- ctx.actions.symlink( -- output = bin_python, -- target_path = tc.bin_python_target_path, -- ) -- declared.append(bin_python) -- -- # Versioned python symlinks (python3, python3.., and -- # python3..t for freethreaded) all point at the sibling -- # `python`; names resolved by resolve_venv_toolchain. -- for versioned_name in tc.versioned_python_names: -- sym = ctx.actions.declare_symlink("{}/bin/{}".format(venv_name, versioned_name)) -+ # -+ # On Windows Bazel builds the runfiles tree's symlink from where the -+ # output lives, not from the runfiles tree, so a relative target through -+ # the runfiles root dangles. There the `bin/` links are file symlinks to -+ # the interpreter and its DLLs instead. -+ if is_windows: -+ bin_python = ctx.actions.declare_file("{}/bin/python".format(venv_name)) - ctx.actions.symlink( -- output = sym, -- target_path = "python", -+ output = bin_python, -+ target_file = py_toolchain.python, - ) -- declared.append(sym) -- -- for name, target_path in tc.windows_bin_links.items(): -- sym = ctx.actions.declare_symlink("{}/bin/{}".format(venv_name, name)) -+ declared.append(bin_python) -+ windows_links = dict(tc.windows_bin_links) -+ for versioned_name in tc.versioned_python_names: -+ windows_links[versioned_name] = py_toolchain.python -+ for name, target in windows_links.items(): -+ sym = ctx.actions.declare_file("{}/bin/{}".format(venv_name, name)) -+ ctx.actions.symlink( -+ output = sym, -+ target_file = target, -+ ) -+ declared.append(sym) -+ else: -+ bin_python = ctx.actions.declare_symlink("{}/bin/python".format(venv_name)) - ctx.actions.symlink( -- output = sym, -- target_path = target_path, -+ output = bin_python, -+ target_path = tc.bin_python_target_path, - ) -- declared.append(sym) -+ declared.append(bin_python) -+ -+ for versioned_name in tc.versioned_python_names: -+ sym = ctx.actions.declare_symlink("{}/bin/{}".format(venv_name, versioned_name)) -+ ctx.actions.symlink( -+ output = sym, -+ target_path = "python", -+ ) -+ declared.append(sym) - - bin_activate = None - if venv_activate_tmpl != None: diff --git a/families/fortran/third_party/rules_dx/rules_python.single_import_lib.patch b/families/fortran/third_party/rules_dx/rules_python.single_import_lib.patch deleted file mode 100644 index abaef2eae8..0000000000 --- a/families/fortran/third_party/rules_dx/rules_python.single_import_lib.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff --git a/python/private/cc/py_extension_macro.bzl b/python/private/cc/py_extension_macro.bzl ---- a/python/private/cc/py_extension_macro.bzl -+++ b/python/private/cc/py_extension_macro.bzl -@@ -154,6 +154,7 @@ - # from CcInfo in py_cc_toolchain because system_provided=True in cc_import leaves DefaultInfo empty. - py_extension_libs( - name = win_libs_name, -+ py_limited_api = bool(py_limited_api), - tags = ["manual"], - visibility = ["//visibility:private"], - ) -diff --git a/python/private/cc/py_extension_rule.bzl b/python/private/cc/py_extension_rule.bzl ---- a/python/private/cc/py_extension_rule.bzl -+++ b/python/private/cc/py_extension_rule.bzl -@@ -124,10 +124,19 @@ - elif lib.dynamic_library: - files.append(lib.dynamic_library) - link_files = [f for f in files if not f.path.endswith(".dll")] -+ -+ # Link.exe and lld-link get all the files as one argument, so keep one: -+ # the stable ABI library for limited API modules, else the versioned one. -+ abi3_files = [f for f in link_files if f.basename in ("python3.lib", "python3t.lib")] -+ if ctx.attr.py_limited_api: -+ link_files = abi3_files or link_files -+ else: -+ link_files = [f for f in link_files if f not in abi3_files] or link_files - return [DefaultInfo(files = depset(link_files))] - - py_extension_libs = rule( - implementation = _py_extension_libs_impl, -+ attrs = {"py_limited_api": attr.bool()}, - toolchains = [PY_CC_TOOLCHAIN_TYPE], - doc = """\ - Private internal helper rule for extracting Windows C/C++ library files from toolchain. diff --git a/families/fortran/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch b/families/fortran/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch deleted file mode 100644 index c0bf17dc69..0000000000 --- a/families/fortran/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch +++ /dev/null @@ -1,103 +0,0 @@ -diff --git a/cargo/private/BUILD.bazel b/cargo/private/BUILD.bazel ---- a/cargo/private/BUILD.bazel -+++ b/cargo/private/BUILD.bazel -@@ -16,6 +16,20 @@ - visibility = ["//visibility:public"], - ) - -+config_setting( -+ name = "cargo_toml_env_vars_disabled", -+ flag_values = {"//cargo/settings:cargo_toml_env_vars": "False"}, -+) -+ -+alias( -+ name = "cargo_toml_variable_extractor", -+ actual = select({ -+ ":cargo_toml_env_vars_disabled": ":no_binary", -+ "//conditions:default": "//cargo/private/cargo_toml_variable_extractor", -+ }), -+ visibility = ["//visibility:public"], -+) -+ - copy_file( - name = "no_ar", - src = ":no_binary", -diff --git a/cargo/private/cargo_toml_env_vars.bzl b/cargo/private/cargo_toml_env_vars.bzl ---- a/cargo/private/cargo_toml_env_vars.bzl -+++ b/cargo/private/cargo_toml_env_vars.bzl -@@ -1,8 +1,16 @@ - """The `cargo_toml_env_vars` rule is used to retrieve the env vars that Cargo would set, based on the contents of a Cargo.toml file.""" - -+load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo") -+ - def _cargo_toml_env_vars_impl(ctx): - out = ctx.actions.declare_file(ctx.label.name + ".env") - -+ if not ctx.attr._enabled[BuildSettingInfo].value: -+ ctx.actions.write(out, "") -+ return [ -+ DefaultInfo(files = depset([out]), runfiles = ctx.runfiles([out])), -+ ] -+ - inputs = [ctx.file.src] - args = ctx.actions.args() - args.add(out) -@@ -36,10 +44,13 @@ - allow_single_file = True, - doc = "Workspace Cargo.toml file from which values may be inherited", - ), -+ "_enabled": attr.label( -+ default = Label("//cargo/settings:cargo_toml_env_vars"), -+ ), - "_cargo_toml_variable_extractor": attr.label( - allow_single_file = True, - executable = True, -- default = Label("//cargo/private/cargo_toml_variable_extractor"), -+ default = Label("//cargo/private:cargo_toml_variable_extractor"), - cfg = "exec", - ), - }, -diff --git a/cargo/settings/BUILD.bazel b/cargo/settings/BUILD.bazel ---- a/cargo/settings/BUILD.bazel -+++ b/cargo/settings/BUILD.bazel -@@ -2,6 +2,7 @@ - load( - ":settings.bzl", - "cargo_manifest_dir_filename_suffixes_to_retain", -+ "cargo_toml_env_vars", - "debug_std_streams_output_group", - "emit_build_script_warnings", - "experimental_symlink_execroot", -@@ -25,6 +26,8 @@ - - cargo_manifest_dir_filename_suffixes_to_retain() - -+cargo_toml_env_vars() -+ - debug_std_streams_output_group() - - experimental_symlink_execroot() -diff --git a/cargo/settings/settings.bzl b/cargo/settings/settings.bzl ---- a/cargo/settings/settings.bzl -+++ b/cargo/settings/settings.bzl -@@ -35,6 +35,20 @@ - build_setting_default = False, - ) - -+def cargo_toml_env_vars(): -+ """A flag which controls whether `cargo_toml_env_vars` targets run the \ -+ `cargo_toml_variable_extractor`. -+ -+ When disabled, they write an empty env file, so the extractor and the crates \ -+ it is built from are never fetched. Rustc actions still get `CARGO_PKG_NAME` \ -+ and `CARGO_PKG_VERSION*`, but not the values read from `Cargo.toml`. -+ """ -+ bool_flag( -+ name = "cargo_toml_env_vars", -+ scope = "universal", -+ build_setting_default = True, -+ ) -+ - def use_default_shell_env(): - """A flag which controls the global default of `ctx.actions.run.use_default_shell_env` for `cargo_build_script` targets. - """ diff --git a/families/fortran/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch b/families/fortran/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch deleted file mode 100644 index e5cff2c1d4..0000000000 --- a/families/fortran/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch +++ /dev/null @@ -1,146 +0,0 @@ -diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -728,32 +728,36 @@ - ambiguous_libs[old_short_path] = symlink_for_ambiguous_lib(actions, toolchain, crate_info, visited_libs[name]) - ambiguous_libs[artifact.short_path] = symlink_for_ambiguous_lib(actions, toolchain, crate_info, artifact) - - visited_libs[name] = artifact - return ambiguous_libs - --def _depend_on_metadata(crate_info, force_depend_on_objects): -+def _depend_on_metadata(crate_info, force_depend_on_objects, metadata_only = False): - """Determines if we can depend on metadata for this crate. - - By default (when pipelining is disabled or when the crate type needs to link against - objects) we depend on the set of object files (.rlib). - When pipelining is enabled and the crate type supports depending on metadata, - we depend on metadata files only (.rmeta). - In some rare cases, even if both of those conditions are true, we still want to - depend on objects. This is what force_depend_on_objects is. - - Args: - crate_info (CrateInfo): The Crate to determine this for. - force_depend_on_objects (bool): if set we will not depend on metadata. -+ metadata_only (bool): if set the action only emits metadata, so it depends on metadata for any crate type. - - Returns: - Whether we can depend on metadata for this crate. - """ - if force_depend_on_objects: - return False - -+ if metadata_only: -+ return True -+ - return crate_info.type in ("rlib", "lib") - - def collect_inputs( - ctx, - file, - files, -@@ -764,12 +768,13 @@ - crate_info, - dep_info, - build_info, - lint_files, - stamp = False, - force_depend_on_objects = False, -+ metadata_only = False, - experimental_use_cc_common_link = False, - include_linker_inputs = False, - include_link_flags = True): - """Gather's the inputs and required input information for a rustc action - - Args: -@@ -784,12 +789,13 @@ - crate_info (CrateInfo): The Crate information of the crate to process build scripts for. - dep_info (DepInfo): The target Crate's dependency information. - build_info (BuildInfo): The target Crate's build settings. - lint_files (list): List of files with rustc args for the Crate's lint settings. - stamp (bool, optional): Whether or not workspace status stamping is enabled. For more details see - https://docs.bazel.build/versions/main/user-manual.html#flag--stamp -+ metadata_only (bool, optional): Depend on dependency metadata (`.rmeta`) for any crate type, for actions that only emit metadata. - force_depend_on_objects (bool, optional): Forces dependencies of this rule to be objects rather than - metadata, even for libraries. This is used in rustdoc tests. - experimental_use_cc_common_link (bool, optional): Whether rules_rust uses cc_common.link to link - rust binaries. - include_linker_inputs (bool, optional): Whether to include linker inputs in transitive dependencies. - include_link_flags (bool, optional): Whether to include flags like `-l` that instruct the linker to search for a library. -@@ -844,13 +850,13 @@ - # Compute linkstamps. Use the inputs of the binary as inputs to the - # linkstamp action to ensure linkstamps are rebuilt whenever binary inputs - # change. - linkstamp_outs = [] - - transitive_crate_outputs = dep_info.transitive_crate_outputs -- if _depend_on_metadata(crate_info, force_depend_on_objects): -+ if _depend_on_metadata(crate_info, force_depend_on_objects, metadata_only): - transitive_crate_outputs = dep_info.transitive_metadata_outputs - - nolinkstamp_compile_direct_inputs = [] - if build_info: - if build_info.rustc_env: - nolinkstamp_compile_direct_inputs.append(build_info.rustc_env) -@@ -1065,12 +1071,13 @@ - include_link_flags = True, - stamp = False, - remap_path_prefix = ".", - use_json_output = False, - build_metadata = False, - force_depend_on_objects = False, -+ metadata_only = False, - skip_expanding_rustc_env = False, - require_explicit_unstable_features = False, - error_format = None, - allowed_unstable_rust_features = None, - link_std_dylib = False, - bin_link_flags = None): -@@ -1137,12 +1144,13 @@ - https://docs.bazel.build/versions/main/user-manual.html#flag--stamp - remap_path_prefix (str, optional): A value used to remap `${pwd}`, `${exec_root}`, and `${output_base}` to. - If set to None, no remapping will be applied. On macOS, also adds `-oso_prefix` to strip absolute paths - from N_OSO linker entries. - use_json_output (bool): Have rustc emit json and process_wrapper parse json messages to output rendered output. - build_metadata (bool): Generate CLI arguments for building *only* .rmeta files. This requires use_json_output. -+ metadata_only (bool): Depend on dependency metadata (`.rmeta`) for any crate type, for actions that only emit metadata. - force_depend_on_objects (bool): Force using `.rlib` object files instead of metadata (`.rmeta`) files even if they are available. - skip_expanding_rustc_env (bool): Whether to skip expanding CrateInfo.rustc_env_attr - require_explicit_unstable_features (bool): Whether to require all unstable features to be explicitly opted in to using `-Zallow-features=...`. - error_format (str, optional): Error format to pass to the `--error-format` command line argument. If set to None, uses the "_error_format" entry in `attr`. - allowed_unstable_rust_features (list, optional): List of unstable Rust language features allowed for this target. - link_std_dylib (bool): Whether to dynamically link the Rust standard library using `--prefer-dynamic`. -@@ -1496,13 +1504,13 @@ - - # On macOS, set the dylib install name to @rpath/ so that - # consumers find it via RPATH rather than the exec-root build path. - if crate_info.type == "dylib" and toolchain.target_os in ["macos", "darwin"]: - rustc_flags.add("--codegen=link-arg=-Wl,-install_name,@rpath/" + crate_info.output.basename) - -- use_metadata = _depend_on_metadata(crate_info, force_depend_on_objects) -+ use_metadata = _depend_on_metadata(crate_info, force_depend_on_objects, metadata_only) - - # These always need to be added, even if not linking this crate. - add_crate_link_flags(rustc_flags, dep_info, force_all_deps_direct, use_metadata) - - needs_extern_proc_macro_flag = _is_proc_macro(crate_info) and crate_info.edition != "2015" - if needs_extern_proc_macro_flag: -diff --git a/rust/private/clippy.bzl b/rust/private/clippy.bzl ---- a/rust/private/clippy.bzl -+++ b/rust/private/clippy.bzl -@@ -162,6 +162,7 @@ - dep_info, - build_info, - lint_files, -+ metadata_only = True, - ) - - if clippy_diagnostics_file: -@@ -170,6 +171,7 @@ - crate_info = rust_common.create_crate_info(**crate_info_dict) - - args, env = construct_arguments( -+ metadata_only = True, - ctx = ctx, - attr = ctx.rule.attr, - file = ctx.file, diff --git a/families/fortran/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch b/families/fortran/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch deleted file mode 100644 index 98ff4c4367..0000000000 --- a/families/fortran/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch +++ /dev/null @@ -1,128 +0,0 @@ -diff --git a/crate_universe/extensions.bzl b/crate_universe/extensions.bzl -index 29208c4..596240c 100644 ---- a/crate_universe/extensions.bzl -+++ b/crate_universe/extensions.bzl -@@ -380,6 +380,8 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - load( - "//crate_universe/private:common_utils.bzl", -+ "REPIN_ALLOWLIST_ENV_VAR", -+ "REPIN_ENV_VARS", - "new_cargo_bazel_fn", - "sanitize_label_injections", - ) -@@ -412,6 +414,8 @@ load("//crate_universe/private:urls.bzl", "CARGO_BAZEL_SHA256S", "CARGO_BAZEL_UR - load("//rust/platform:triple.bzl", "get_host_triple") - load("//rust/platform:triple_mappings.bzl", "system_to_binary_ext") - -+CARGO_BAZEL_DIGEST_CHECK = "CARGO_BAZEL_DIGEST_CHECK" -+ - _OPT_BOOL_VALUES = { - "auto": None, - "off": False, -@@ -543,7 +547,8 @@ def _generate_hub_and_spokes( - is_root, - cargo_lockfile = None, - manifests = {}, -- packages = {}): -+ packages = {}, -+ trust_lockfile = False): - """Generates repositories for the transitive closure of crates defined by manifests and packages. - - Args: -@@ -623,6 +628,8 @@ def _generate_hub_and_spokes( - "must ship a `lockfile = ...` because repinning is not " + - "supported across module boundaries.").format(cfg.name)) - repin = False -+ elif trust_lockfile: -+ repin = False - else: - repin = not lockfile or determine_repin( - repository_ctx = module_ctx, -@@ -867,6 +874,26 @@ def _get_generator(module_ctx, host_triple): - module_ctx.download(**download_kwargs) - return output - -+def _trust_lockfile(module_ctx, cfg, is_root): -+ """Whether to render from `cfg.lockfile` without its digest check, so cargo and rustc are not fetched. -+ -+ A repin or `CARGO_BAZEL_DIGEST_CHECK=1` still checks the digest. Without the check a stale -+ lockfile shows up as missing crates rather than as an "out of date" error. -+ """ -+ if not cfg.lockfile: -+ return False -+ if not is_root: -+ return True -+ if module_ctx.getenv(CARGO_BAZEL_DIGEST_CHECK): -+ return False -+ for var in REPIN_ENV_VARS: -+ value = module_ctx.getenv(var) -+ if value != None and value.lower() not in ["false", "no", "0", "off"]: -+ allowlist = module_ctx.getenv(REPIN_ALLOWLIST_ENV_VAR) -+ if allowlist == None or cfg.name in allowlist.split(","): -+ return False -+ return True -+ - def _get_host_cargo_rustc(module_ctx, host_triple, host_tools_repo): - """A helper function to get the path to the host cargo and rustc binaries. - -@@ -1160,7 +1187,10 @@ def _crate_impl(module_ctx): - if hasattr(cfg, "manifests"): - for m in cfg.manifests: - module_ctx.watch(m) -- cargo_path, rustc_path = _get_host_cargo_rustc(module_ctx, host_triple, cfg.host_tools) -+ trust_lockfile = _trust_lockfile(module_ctx, cfg, mod.is_root) -+ cargo_path, rustc_path = None, None -+ if not trust_lockfile: -+ cargo_path, rustc_path = _get_host_cargo_rustc(module_ctx, host_triple, cfg.host_tools) - cargo_bazel_fn = new_cargo_bazel_fn( - repository_ctx = module_ctx, - cargo_bazel_path = generator, -@@ -1215,6 +1245,7 @@ def _crate_impl(module_ctx): - skip_cargo_lockfile_overwrite = cfg.skip_cargo_lockfile_overwrite, - strip_internal_dependencies_from_cargo_lockfile = cfg.strip_internal_dependencies_from_cargo_lockfile, - is_root = mod.is_root, -+ trust_lockfile = trust_lockfile, - ) - - # Watch cfg.lockfile AFTER generation. The generator may modify it during -@@ -1666,6 +1697,7 @@ Environment Variables: - - | variable | usage | - | --- | --- | -+| `CARGO_BAZEL_DIGEST_CHECK` | Check a `lockfile` against its inputs even when no repin is requested. Without it, `cargo` and `rustc` are only fetched to repin or when there is no `lockfile`. | - | `CARGO_BAZEL_GENERATOR_SHA256` | The sha256 checksum of the file located at `CARGO_BAZEL_GENERATOR_URL` | - | `CARGO_BAZEL_GENERATOR_URL` | The URL of a cargo-bazel binary. This variable takes precedence over attributes and can use `file://` for local paths | - | `CARGO_BAZEL_ISOLATED` | An authoritative flag as to whether or not the `CARGO_HOME` environment variable should be isolated from the host configuration | -diff --git a/crate_universe/private/common_utils.bzl b/crate_universe/private/common_utils.bzl -index 4411ff3..a812caa 100644 ---- a/crate_universe/private/common_utils.bzl -+++ b/crate_universe/private/common_utils.bzl -@@ -91,20 +91,15 @@ def new_cargo_bazel_fn( - # start of a module extension, thus triggering any restarts as early as - # possible (since module_ctx.path triggers restarts). - def _execute(args, env = {}, allow_fail = False): -+ tool_args = [] -+ tool_env = {} -+ if cargo_path: -+ tool_args = ["--cargo", cargo_path, "--rustc", rustc_path] -+ tool_env = {"CARGO": str(cargo_path), "RUSTC": str(rustc_path)} - return execute( - repository_ctx, -- args = [ -- cargo_bazel_path, -- ] + args + [ -- "--cargo", -- cargo_path, -- "--rustc", -- rustc_path, -- ], -- env = { -- "CARGO": str(cargo_path), -- "RUSTC": str(rustc_path), -- } | cargo_environ(repository_ctx, isolated = isolated) | env, -+ args = [cargo_bazel_path] + args + tool_args, -+ env = tool_env | cargo_environ(repository_ctx, isolated = isolated) | env, - allow_fail = allow_fail, - quiet = quiet, - ) diff --git a/families/fortran/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch b/families/fortran/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch deleted file mode 100644 index 91e7f30271..0000000000 --- a/families/fortran/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/crate_universe/extensions.bzl -+++ b/crate_universe/extensions.bzl -@@ -634,8 +634,12 @@ - ) - - # The workspace root when one is explicitly provided. -- # buildifier: disable=canonical-repository -- nonhermetic_root_bazel_workspace_dir = module_ctx.path(Label("@@//:MODULE.bazel")).dirname -+ if is_root: -+ # buildifier: disable=canonical-repository -+ nonhermetic_root_bazel_workspace_dir = module_ctx.path(Label("@@//:MODULE.bazel")).dirname -+ else: -+ # Non-root modules never repin, and the pinned generator only uses this to filter watched paths. -+ nonhermetic_root_bazel_workspace_dir = tag_path - - # If re-pinning is enabled, gather additional inputs for the generator - kwargs = dict() diff --git a/families/fortran/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch b/families/fortran/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch deleted file mode 100644 index bf34b294d3..0000000000 --- a/families/fortran/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch +++ /dev/null @@ -1,85 +0,0 @@ ---- a/cargo/private/cargo_build_script.bzl -+++ b/cargo/private/cargo_build_script.bzl -@@ -100,6 +100,10 @@ - ) - return cc_c_args, cc_cxx_args, cc_env - -+def _pwd_tool(path): -+ """Makes an execroot-relative tool path absolute at run time; the runner expands ${pwd}.""" -+ return "${pwd}/" + path if _should_prefix_pwd(path) else path -+ - # These get replaced with the non-hermetic values magically, and result in - # absolute paths, so they shouldn't have PWD prefixed. - # https://github.com/bazelbuild/apple_support/blob/20913e2a9ad4a00a1849a464b856d04b5cd3bdcb/lib/apple_support.bzl#L174-L198 -@@ -569,6 +573,60 @@ - # that doing so is more likely to hurt than help. If you need to change - # ARFLAGS, make changes to cc-rs. - -+ # cc-rs reads HOST_* for code built for the host and TARGET_* for the -+ # target. Without them it falls back to an ambient `cc` when the exec -+ # and target platforms differ. When HOST == TARGET cc-rs adds HOST_*FLAGS -+ # on top of CFLAGS, so there HOST_* name the target tools and the flags -+ # stay empty: two toolchains' include dirs break `#include_next` (#8681). -+ cross = toolchain.target_flag_value != toolchain.exec_triple.str -+ if cross: -+ exec_cc_toolchain = ctx.attr._exec_cc_toolchain[cc_common.CcToolchainInfo] -+ exec_feature_configuration = cc_common.configure_features( -+ ctx = ctx, -+ cc_toolchain = exec_cc_toolchain, -+ requested_features = ctx.features, -+ unsupported_features = ctx.disabled_features, -+ ) -+ toolchain_tools.append(exec_cc_toolchain.all_files) -+ exec_tools = { -+ "CC": cc_common.get_tool_for_action( -+ feature_configuration = exec_feature_configuration, -+ action_name = ACTION_NAMES.c_compile, -+ ), -+ "CXX": cc_common.get_tool_for_action( -+ feature_configuration = exec_feature_configuration, -+ action_name = ACTION_NAMES.cpp_compile, -+ ), -+ "AR": cc_common.get_tool_for_action( -+ feature_configuration = exec_feature_configuration, -+ action_name = ACTION_NAMES.cpp_link_static_library, -+ ) or exec_cc_toolchain.ar_executable, -+ } -+ exec_c_args, exec_cxx_args, _ = get_cc_compile_args_and_env(exec_cc_toolchain, exec_feature_configuration) -+ for name, tool in exec_tools.items(): -+ if tool and "libtool" not in tool: -+ env["HOST_" + name] = _pwd_tool(tool) -+ env["HOST_CFLAGS"] = " ".join(_pwd_flags(exec_c_args)) -+ env["HOST_CXXFLAGS"] = " ".join(_pwd_flags(exec_cxx_args)) -+ else: -+ env["HOST_CFLAGS"] = "" -+ env["HOST_CXXFLAGS"] = "" -+ env["TARGET_CFLAGS"] = env["CFLAGS"] -+ env["TARGET_CXXFLAGS"] = env["CXXFLAGS"] -+ if ctx.configuration.coverage_enabled: -+ # rustc's profiler runtime is not ISO wide stdio; C that is links against it fails (#8448, hermeticbuild/hermetic-llvm#871). -+ undef_iso_stdio = " /U_CRT_STDIO_ISO_WIDE_SPECIFIERS" -+ if toolchain.target_triple.str.endswith("-windows-msvc"): -+ env["CFLAGS"] += undef_iso_stdio -+ env["TARGET_CFLAGS"] += undef_iso_stdio -+ if cross and toolchain.exec_triple.str.endswith("-windows-msvc"): -+ env["HOST_CFLAGS"] += undef_iso_stdio -+ for name in ["CC", "CXX", "AR"]: -+ if env.get(name) and "libtool" not in env[name]: -+ env["TARGET_" + name] = _pwd_tool(env[name]) -+ if not cross: -+ env["HOST_" + name] = env["TARGET_" + name] -+ - # Inform build scripts of rustc flags - # https://github.com/rust-lang/cargo/issues/9600 - env["CARGO_ENCODED_RUSTFLAGS"] = "\\x1f".join([ -@@ -941,6 +999,10 @@ - allow_files = True, - default = Label("//cargo/private:no_cxx"), - ), -+ "_exec_cc_toolchain": attr.label( -+ default = Label("@rules_cc//cc:current_cc_toolchain"), -+ cfg = "exec", -+ ), - "_out_dir_volatile_file_basenames": attr.label( - default = Label("//cargo/settings:out_dir_volatile_file_basenames"), - ), diff --git a/families/fortran/third_party/rules_dx/rules_rust.msvc_pdb_output.patch b/families/fortran/third_party/rules_dx/rules_rust.msvc_pdb_output.patch deleted file mode 100644 index 4ee47d9d3f..0000000000 --- a/families/fortran/third_party/rules_dx/rules_rust.msvc_pdb_output.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -2048,7 +2048,9 @@ - pdb_file = None - dsym_folder = None - if crate_info.type in ("cdylib", "bin") and not experimental_use_cc_common_link: -- if toolchain.target_abi == "msvc" and compilation_mode.strip_level == "none": -+ # rustc ignores -Cstrip on MSVC and always links with /DEBUG, so the PDB is written -+ # whatever the strip level (rust-lang/rust#115120). -+ if toolchain.target_abi == "msvc": - pdb_file = ctx.actions.declare_file(crate_info.output.basename[:-len(crate_info.output.extension)] + "pdb", sibling = crate_info.output) - action_outputs.append(pdb_file) - elif toolchain.target_os in ["macos", "darwin"]: diff --git a/families/fortran/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch b/families/fortran/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch deleted file mode 100644 index 23b810bc1b..0000000000 --- a/families/fortran/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -1909,6 +1909,14 @@ - if experimental_use_cc_common_link: - emit = ["obj"] - -+ # The full action must not write the `.rmeta` that the metadata action declares, -+ # or on Windows (no sandbox) it hits the read-only file left by that action. -+ emit_full = emit -+ full_rmeta = None -+ if build_metadata and not experimental_use_cc_common_link: -+ full_rmeta = ctx.actions.declare_file("_rmeta_full/" + build_metadata.basename, sibling = build_metadata) -+ emit_full = [("metadata", full_rmeta) if kind == "metadata" else kind for kind in emit] -+ - # Declares the outputs of the rustc compile action. - # By default this is the binary output; if cc_common.link is used, this is - # the main `.o` file (`output_o` below). -@@ -1975,7 +1983,7 @@ - toolchain = toolchain, - tool_file = toolchain.rustc, - cc_toolchain = cc_toolchain, -- emit = emit, -+ emit = emit_full, - feature_configuration = feature_configuration, - crate_info = crate_info, - dep_info = dep_info, -@@ -2046,6 +2054,8 @@ - - # The action might generate extra output that we don't want to include in the `DefaultInfo` files. - action_outputs = list(outputs) -+ if full_rmeta: -+ action_outputs.append(full_rmeta) - if rustc_output: - action_outputs.append(rustc_output) - if profiling_dir: diff --git a/families/fortran/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch b/families/fortran/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch deleted file mode 100644 index 5bdd7b8bdf..0000000000 --- a/families/fortran/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -375,6 +375,28 @@ - """ - return ctx.fragments.cpp.linkopts - -+def _msvc_libpath_dir(arg): -+ """Returns the directory of a `/LIBPATH:`, `-LIBPATH:` or clang-cl `/clang:/LIBPATH:` arg, else None.""" -+ if arg[:7].lower() == "/clang:": -+ arg = arg[7:] -+ if arg[:9].lower() in ("/libpath:", "-libpath:"): -+ return arg[9:] -+ return None -+ -+# rustc picks the CRT itself from crt-static. -+_MSVC_CRT_LIBS = ["libcmt", "libcmtd", "msvcrt", "msvcrtd", "libucrt", "libucrtd", "ucrt", "ucrtd", "libvcruntime", "libvcruntimed", "vcruntime", "vcruntimed"] -+ -+def _msvc_default_lib(arg): -+ """Returns the library of a non-CRT `/DEFAULTLIB:`, `-DEFAULTLIB:` or clang-cl `/clang:/DEFAULTLIB:` arg, else None.""" -+ if arg[:7].lower() == "/clang:": -+ arg = arg[7:] -+ if arg[:12].lower() not in ("/defaultlib:", "-defaultlib:"): -+ return None -+ lib = arg[12:] -+ if lib.lower().removesuffix(".lib") in _MSVC_CRT_LIBS: -+ return None -+ return lib -+ - def get_linker_and_args(ctx, crate_type, toolchain, cc_toolchain, feature_configuration, rpaths, add_flags_for_binary = False): - """Gathers cc_common linker information - -@@ -478,6 +500,14 @@ - filtered_args.append(version) - # Keep library search path flags - -+ elif toolchain.target_abi == "msvc" and _msvc_libpath_dir(processed_arg) != None: -+ # The MSVC cc toolchain carries the CRT and SDK lib dirs as linker args. -+ filtered_args.append("-LIBPATH:" + _msvc_libpath_dir(processed_arg)) -+ -+ elif toolchain.target_abi == "msvc" and _msvc_default_lib(processed_arg) != None: -+ # The C++ standard library, e.g. libc++.lib under clang-cl, is a default lib of the cc toolchain. -+ filtered_args.append("-DEFAULTLIB:" + _msvc_default_lib(processed_arg)) -+ - elif processed_arg.startswith("-L"): - filtered_args.append(processed_arg) - # Keep sysroot flags (as single or two-part arguments) diff --git a/families/fortran/third_party/rules_dx/rules_swift.non_root_toolchain.patch b/families/fortran/third_party/rules_dx/rules_swift.non_root_toolchain.patch deleted file mode 100644 index f6290ebfc2..0000000000 --- a/families/fortran/third_party/rules_dx/rules_swift.non_root_toolchain.patch +++ /dev/null @@ -1,79 +0,0 @@ -diff --git a/swift/extensions.bzl b/swift/extensions.bzl ---- a/swift/extensions.bzl -+++ b/swift/extensions.bzl -@@ -128,41 +128,48 @@ def _single_sdk_tag(tags, kind): - return sdk_tag - - def _standalone_toolchain_impl(module_ctx): -- root_module = None -- for mod in module_ctx.modules: -- if not mod.is_root and not module_ctx.is_dev_dependency: -- fail("Only the root module can use the 'swift' extension. Packages meant to be used as deps should use dev_dependency = True") -- root_module = mod -- -- if not root_module: -- fail("Could not find a root module. This should never happen.") -- - swift_release_metadata = json.decode( - module_ctx.read(Label("//swift/internal/extensions:swift_release_metadata.json"), watch = "yes"), - ) - swift_releases = swift_release_metadata["toolchains"] - swift_sdk_releases = swift_release_metadata["sdks"] - -- android_sdk_tag = _single_sdk_tag( -- root_module.tags.android_sdk, -- "android_sdk", -- ) -- wasm_sdk_tag = _single_sdk_tag( -- root_module.tags.wasm_sdk, -- "wasm_sdk", -- ) -- -- if len(root_module.tags.toolchain) > 1: -- fail("swift.toolchain() can currently only be called once. Please file an issue if you need multiple toolchains in a single module.") -+ toolchains = [] -+ toolchain_modules = {} -+ for mod in module_ctx.modules: -+ if not mod.is_root and (mod.tags.android_sdk or mod.tags.wasm_sdk): -+ fail("Only the root module can use the `android_sdk` and `wasm_sdk` tags.") - -- if not root_module.tags.toolchain: -- if android_sdk_tag: -- fail("The `android_sdk` tag requires a `toolchain` tag.") -- if wasm_sdk_tag: -- fail("The `wasm_sdk` tag requires a `toolchain` tag.") -+ android_sdk_tag = _single_sdk_tag( -+ mod.tags.android_sdk, -+ "android_sdk", -+ ) -+ wasm_sdk_tag = _single_sdk_tag( -+ mod.tags.wasm_sdk, -+ "wasm_sdk", -+ ) - -- toolchains_build_file_content = "" -- for toolchain in root_module.tags.toolchain: -+ if len(mod.tags.toolchain) > 1: -+ fail("swift.toolchain() can currently only be called once. Please file an issue if you need multiple toolchains in a single module.") -+ -+ if not mod.tags.toolchain: -+ if android_sdk_tag: -+ fail("The `android_sdk` tag requires a `toolchain` tag.") -+ if wasm_sdk_tag: -+ fail("The `wasm_sdk` tag requires a `toolchain` tag.") -+ -+ for toolchain in mod.tags.toolchain: -+ if toolchain.name in toolchain_modules: -+ fail("swift.toolchain() name `{}` is used by both `{}` and `{}`. Each toolchain needs a unique name.".format( -+ toolchain.name, -+ toolchain_modules[toolchain.name], -+ mod.name, -+ )) -+ toolchain_modules[toolchain.name] = mod.name -+ toolchains.append((toolchain, android_sdk_tag, wasm_sdk_tag)) -+ -+ for toolchain, android_sdk_tag, wasm_sdk_tag in toolchains: -+ toolchains_build_file_content = "" - if toolchain.swift_version and toolchain.swift_version_file: - fail("Cannot use both swift_version and swift_version_file together. Please choose one.") - diff --git a/families/fortran/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch b/families/fortran/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch deleted file mode 100644 index f8257c7cb3..0000000000 --- a/families/fortran/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch +++ /dev/null @@ -1,240 +0,0 @@ -diff --git a/swift/extensions.bzl b/swift/extensions.bzl ---- a/swift/extensions.bzl -+++ b/swift/extensions.bzl -@@ -180,13 +180,25 @@ def _standalone_toolchain_impl(module_ctx): - )) - - toolchain_releases = toolchain.platform_sha256.items() or swift_releases[swift_version].items() -+ unknown_sysroot_platforms = [ -+ platform -+ for platform in toolchain.sysroot -+ if platform not in [p for p, _ in toolchain_releases] -+ ] -+ if unknown_sysroot_platforms: -+ fail("`sysroot` has platforms that this toolchain does not download: {}".format( -+ unknown_sysroot_platforms, -+ )) -+ - for platform, sha256 in toolchain_releases: - repository_name = toolchain.name + "_{}".format(platform) - standalone_toolchain( - name = repository_name, -+ env = toolchain.env, - sha256 = sha256, - platform = platform, - swift_version = swift_version, -+ sysroot = toolchain.sysroot.get(platform), - ) - toolchains_build_file_content += toolchains_for_platform( - platform = platform, -@@ -249,6 +261,12 @@ and defines Swift and C++ toolchains targeting `wasm32-unknown-wasip1`. - ) - - _toolchain = tag_class(attrs = { -+ "env": attr.string_dict( -+ doc = """\ -+Environment variables for the exec Swift toolchain. `{sysroot}` in a value is -+replaced with the root of that platform's `sysroot`. -+""", -+ ), - "name": attr.string( - doc = "Repository name of the generated toolchain", - mandatory = True, -@@ -262,6 +280,15 @@ their hashes. For instance: - """, - ), - "swift_version": attr.string(doc = "Version of the swift toolchain to be installed. Cannot be used concurrently with `swift_version_file`"), -+ "sysroot": attr.string_keyed_label_dict( -+ doc = """\ -+A dictionary of platforms and the sysroot files for their exec Swift toolchain. -+ -+The exec Swift toolchain passes the sysroot's root as `-sdk` and adds the files -+to the inputs of its Swift tools. Without it, `-sdk` comes from the C++ -+toolchain's sysroot. -+""", -+ ), - "swift_version_file": attr.label(doc = "A label to the .swift_version file to use. Cannot be used concurrently with `swift_version`"), - }) - -diff --git a/swift/internal/extensions/BUILD.bazel b/swift/internal/extensions/BUILD.bazel ---- a/swift/internal/extensions/BUILD.bazel -+++ b/swift/internal/extensions/BUILD.bazel -@@ -4,7 +4,10 @@ bzl_library( - name = "standalone_toolchain", - srcs = ["standalone_toolchain.bzl"], - visibility = ["//swift:__subpackages__"], -- deps = ["@bazel_skylib//lib:paths"], -+ deps = [ -+ "@bazel_skylib//lib:dicts", -+ "@bazel_skylib//lib:paths", -+ ], - ) - - bzl_library( -diff --git a/swift/internal/extensions/standalone_toolchain.bzl b/swift/internal/extensions/standalone_toolchain.bzl ---- a/swift/internal/extensions/standalone_toolchain.bzl -+++ b/swift/internal/extensions/standalone_toolchain.bzl -@@ -6,6 +6,7 @@ Supports both macOS (.pkg) and Linux (.tar.gz) toolchain formats, with automatic - platform detection and appropriate extraction methods. - """ - -+load("@bazel_skylib//lib:dicts.bzl", "dicts") - load("@bazel_skylib//lib:paths.bzl", "paths") - - # Download URLs are documented in the OpenAPI spec here: -@@ -62,6 +63,27 @@ def _run(repository_ctx, command): - - return result.stdout.strip() - -+def sysroot_substitutions(sysroot, env): -+ """Returns the BUILD template substitutions for the optional sysroot and env. -+ -+ Args: -+ sysroot: A `Label` of the sysroot files, or `None`. -+ env: A string dict of environment variables for the exec toolchain. -+ `{sysroot}` in a value is replaced with the sysroot's root. -+ -+ Returns: -+ A dict of template substitutions. -+ """ -+ sdkroot = sysroot.workspace_root if sysroot else "" -+ for key, value in env.items(): -+ if "{sysroot}" in value and not sysroot: -+ fail("env `{}` uses `{{sysroot}}` but no sysroot is set".format(key)) -+ return { -+ "{env}": repr({key: value.replace("{sysroot}", sdkroot) for key, value in env.items()}), -+ "{sdkroot}": sdkroot, -+ "{sysroot_inputs}": repr([str(sysroot)]) if sysroot else "[]", -+ } -+ - def _standalone_toolchain_impl(repository_ctx): - url = get_download_url(repository_ctx.attr.swift_version, repository_ctx.attr.platform) - filename = paths.basename(url) -@@ -109,15 +131,24 @@ def _standalone_toolchain_impl(repository_ctx): - repository_ctx.template( - "BUILD.bazel", - repository_ctx.attr._build_template, -- substitutions = { -- "{linux_sysroot_version}": linux_sysroot_version, -- "{swift_version}": repository_ctx.attr.swift_version, -- }, -+ substitutions = dicts.add( -+ { -+ "{linux_sysroot_version}": linux_sysroot_version, -+ "{swift_version}": repository_ctx.attr.swift_version, -+ }, -+ sysroot_substitutions(repository_ctx.attr.sysroot, repository_ctx.attr.env), -+ ), - ) - - standalone_toolchain = repository_rule( - implementation = _standalone_toolchain_impl, - attrs = { -+ "env": attr.string_dict( -+ doc = """\ -+Environment variables for the exec Swift toolchain. `{sysroot}` in a value is -+replaced with the sysroot's root. The embedded toolchain is unaffected. -+""", -+ ), - "platform": attr.string( - doc = "The host platform name in the swift package download URL", - mandatory = True, -@@ -129,6 +160,12 @@ standalone_toolchain = repository_rule( - doc = "Version of the swift toolchain to be installed.", - mandatory = True, - ), -+ "sysroot": attr.label( -+ doc = """\ -+Label of the files of a sysroot to build against. The exec Swift toolchain passes -+the sysroot's root as `-sdk` and adds the files to the inputs of its Swift tools. -+""", -+ ), - "_build_template": attr.label( - default = "//swift/internal/extensions:toolchain.BUILD", - ), -diff --git a/swift/internal/extensions/toolchain.BUILD b/swift/internal/extensions/toolchain.BUILD ---- a/swift/internal/extensions/toolchain.BUILD -+++ b/swift/internal/extensions/toolchain.BUILD -@@ -283,28 +283,38 @@ cc_toolchain( - tool_map = "all_tools", - ) - -+_SWIFT_TOOL_INPUTS = glob( -+ [ -+ "usr/lib/swift/**", -+ ] + [ -+ "usr/bin/swift", -+ "usr/bin/swift-frontend", -+ ], -+ exclude = [ -+ # for now we only tested embedded, linux and macos so we can exclude files needed for -+ # other platforms. -+ "usr/lib/swift/xrsimulator/**", -+ "usr/lib/swift/appletvos/**", -+ "usr/lib/swift/watchos/**", -+ "usr/lib/swift/appletvsimulator/**", -+ "usr/lib/swift/iphoneos/**", -+ "usr/lib/swift/iphonesimulator/**", -+ "usr/lib/swift/watchsimulator/**", -+ "usr/lib/swift/xros/**", -+ ], -+) -+ - swift_tools( - name = "tools", -- additional_inputs = glob( -- [ -- "usr/lib/swift/**", -- ] + [ -- "usr/bin/swift", -- "usr/bin/swift-frontend", -- ], -- exclude = [ -- # for now we only tested embedded, linux and macos so we can exclude files needed for -- # other platforms. -- "usr/lib/swift/xrsimulator/**", -- "usr/lib/swift/appletvos/**", -- "usr/lib/swift/watchos/**", -- "usr/lib/swift/appletvsimulator/**", -- "usr/lib/swift/iphoneos/**", -- "usr/lib/swift/iphonesimulator/**", -- "usr/lib/swift/watchsimulator/**", -- "usr/lib/swift/xros/**", -- ], -- ), -+ additional_inputs = _SWIFT_TOOL_INPUTS, -+ swift_autolink_extract = "usr/bin/swift-autolink-extract", -+ swift_driver = "usr/bin/swiftc", -+ swift_symbolgraph_extract = "usr/bin/swift-symbolgraph-extract", -+) -+ -+swift_tools( -+ name = "tools_exec", -+ additional_inputs = _SWIFT_TOOL_INPUTS + {sysroot_inputs}, - swift_autolink_extract = "usr/bin/swift-autolink-extract", - swift_driver = "usr/bin/swiftc", - swift_symbolgraph_extract = "usr/bin/swift-symbolgraph-extract", -@@ -348,6 +358,7 @@ swift_toolchain( - ], - allow_empty = True, - ), -+ env = {env}, - features = [ - "swift._supports_upcoming_features", - "swift.no_embed_debug_module", -@@ -364,6 +375,7 @@ swift_toolchain( - "@platforms//os:macos": "macos", - }), - parsed_version = "{swift_version}", -+ sdkroot = "{sdkroot}", - static_runtime = select({ - "@platforms//os:linux": glob( - [ -@@ -377,6 +389,6 @@ swift_toolchain( - ), - "//conditions:default": [], - }), -- swift_tools = "tools", -+ swift_tools = "tools_exec", - version_file = ".swift-version", - ) diff --git a/families/fortran/third_party/rules_dx/windows_support.dx_msvc_layout.patch b/families/fortran/third_party/rules_dx/windows_support.dx_msvc_layout.patch deleted file mode 100644 index ea9b7188f0..0000000000 --- a/families/fortran/third_party/rules_dx/windows_support.dx_msvc_layout.patch +++ /dev/null @@ -1,174 +0,0 @@ -diff --git a/windows/private/extensions/msvc_runtime.BUILD.bazel b/windows/private/extensions/msvc_runtime.BUILD.bazel ---- a/windows/private/extensions/msvc_runtime.BUILD.bazel -+++ b/windows/private/extensions/msvc_runtime.BUILD.bazel -@@ -79,6 +79,44 @@ - }), - ) - -+directory( -+ name = "dx_subsets_files", -+ srcs = glob( -+ ["dx_subsets/**"], -+ allow_empty = True, -+ ), -+) -+ -+[ -+ subdirectory( -+ name = "msvc_{}".format(subset), -+ parent = ":dx_subsets_files", -+ path = "dx_subsets/{}".format(subset), -+ ) -+ for subset in ("com_support_include", "vcruntime_include") -+] -+ -+[ -+ subdirectory( -+ name = "msvc_{}_libraries_{}".format(subset, arch), -+ parent = ":dx_subsets_files", -+ path = "dx_subsets/lib/{}/{}".format(arch, subset), -+ ) -+ for subset in ("com", "common", "dynamic", "static") -+ for arch in ("x64", "arm64") -+] -+ -+[ -+ alias( -+ name = "msvc_{}_libraries".format(subset), -+ actual = select({ -+ ":windows_aarch64": ":msvc_{}_libraries_arm64".format(subset), -+ "//conditions:default": ":msvc_{}_libraries_x64".format(subset), -+ }), -+ ) -+ for subset in ("com", "common", "dynamic", "static") -+] -+ - filegroup( - name = "vc_redist_x64", - srcs = glob( -@@ -174,3 +212,28 @@ - allow_empty = True, - ), - ) -+ -+filegroup( -+ name = "msvc_host_tools", -+ srcs = glob( -+ [ -+ "__MSVC_RUNTIME_DIR__/Contents/VC/Tools/MSVC/__MSVC_VERSION__/bin/**", -+ "__MSVC_RUNTIME_DIR__/Contents/VC/Auxiliary/Build/*.bat", -+ ], -+ allow_empty = True, -+ ), -+) -+ -+[ -+ filegroup( -+ name = "vc_runtime_dlls_" + arch, -+ srcs = glob( -+ [ -+ "__MSVC_RUNTIME_DIR__/Contents/VC/Redist/MSVC/__VC_REDIST_VERSION__/{}/*/{}.dll".format(arch, dll) -+ for dll in ["vcruntime140", "vcruntime140_1", "msvcp140", "msvcp140_1", "msvcp140_2"] -+ ], -+ allow_empty = True, -+ ), -+ ) -+ for arch in ("x64", "arm64") -+] -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -328,6 +328,79 @@ - redist_architectures, - ) - -+# Parts of the MSVC tree that llvm's clang-cl toolchain puts on its include and -+# library search paths. Copying them here keeps them out of the action graph. -+_DX_SUBSET_HEADERS = { -+ "com_support_include": [ -+ "comdef.h", -+ "comdefsp.h", -+ "comip.h", -+ "comutil.h", -+ ], -+ "vcruntime_include": [ -+ "CodeAnalysis/sourceannotations.h", -+ "concurrencysal.h", -+ "crtdefs.h", -+ "eh.h", -+ "ehdata.h", -+ "ehdata_forceinclude.h", -+ "ehdata_values.h", -+ "excpt.h", -+ "sal.h", -+ "setjmp.h", -+ "setjmpex.h", -+ "threads.h", -+ "vadefs.h", -+ "vcruntime.h", -+ "vcruntime_exception.h", -+ "vcruntime_new.h", -+ "vcruntime_new_debug.h", -+ "vcruntime_string.h", -+ "vcruntime_startup.h", -+ "vcruntime_typeinfo.h", -+ ], -+} -+ -+_DX_SUBSET_LIBRARIES = { -+ "com": [ -+ "comsupp.lib", -+ "comsuppw.lib", -+ ], -+ "common": [ -+ "exe_initialize_mta.lib", -+ "iso_stdio_wide_specifiers.lib", -+ "legacy_stdio_definitions.lib", -+ "legacy_stdio_wide_specifiers.lib", -+ "oldnames.lib", -+ ], -+ "dynamic": [ -+ "msvcprt.lib", -+ "msvcrt.lib", -+ "vcruntime.lib", -+ ], -+ "static": [ -+ "libcmt.lib", -+ "libcpmt.lib", -+ "libvcruntime.lib", -+ ], -+} -+ -+def _write_dx_subsets(repository_ctx, sysroot_dir, msvc_version, architectures): -+ msvc_dir = "{}/Contents/VC/Tools/MSVC/{}".format(sysroot_dir, msvc_version) -+ copies = {} -+ for subset, headers in _DX_SUBSET_HEADERS.items(): -+ for header in headers: -+ copies["dx_subsets/{}/{}".format(subset, header)] = "{}/include/{}".format(msvc_dir, header) -+ for arch in architectures: -+ if arch not in ["x64", "arm64"]: -+ continue -+ for subset, libraries in _DX_SUBSET_LIBRARIES.items(): -+ for library in libraries: -+ copies["dx_subsets/lib/{}/{}/{}".format(arch, subset, library)] = "{}/lib/{}/{}".format(msvc_dir, arch, library) -+ for dst, src in copies.items(): -+ if repository_ctx.path(src).exists: -+ repository_ctx.file(dst, repository_ctx.read(src), executable = False, legacy_utf8 = False) -+ - def _msvc_runtime_repository_impl(repository_ctx): - _check_msvc_license_requirements(repository_ctx) - -@@ -389,6 +462,13 @@ - if redist_architectures and not redist_version: - fail("failed to find Contents/VC/Redist/MSVC/ in extracted MSVC payloads for architectures {}".format(redist_architectures)) - _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version, repository_ctx.attr.host_tools) -+ _write_dx_subsets(repository_ctx, sysroot_dir, msvc_version, architectures) -+ if repository_ctx.attr.host_tools: -+ for stub in ["vcvarsall.bat", "vcvars64.bat"]: -+ repository_ctx.file( -+ "{}/Contents/VC/Auxiliary/Build/{}".format(sysroot_dir, stub), -+ "@rem Placeholder for tools that probe for vcvars; the environment comes from the toolchain.\n", -+ ) - - repository_ctx.file( - "versions.bzl", diff --git a/families/fortran/third_party/rules_dx/windows_support.host_tools.patch b/families/fortran/third_party/rules_dx/windows_support.host_tools.patch deleted file mode 100644 index 35eeb1e8d4..0000000000 --- a/families/fortran/third_party/rules_dx/windows_support.host_tools.patch +++ /dev/null @@ -1,263 +0,0 @@ -diff -ruN a/windows/private/extensions/msvc_runtime.BUILD.bazel b/windows/private/extensions/msvc_runtime.BUILD.bazel ---- a/windows/private/extensions/msvc_runtime.BUILD.bazel -+++ b/windows/private/extensions/msvc_runtime.BUILD.bazel -@@ -130,6 +130,18 @@ - }), - ) - -+[ -+ filegroup( -+ name = "msvc_tools_{}_{}".format(host, target), -+ srcs = glob( -+ ["__MSVC_RUNTIME_DIR__/Contents/VC/Tools/MSVC/__MSVC_VERSION__/bin/Host{}/{}/**".format(host, target)], -+ allow_empty = True, -+ ), -+ ) -+ for host in ("x64", "arm64") -+ for target in ("x64", "arm64") -+] -+ - filegroup( - name = "all_files", - srcs = glob( -diff -ruN a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -138,6 +138,9 @@ - def _collect_vctools_packages(installer_manifest, architectures): - packages_by_id = {} - for pkg in installer_manifest.get("packages", []): -+ # Resource packages repeat per language; without this the last one (zh-TW) wins and the tools print Chinese. -+ if pkg.get("language", "neutral").lower() not in ["neutral", "en-us"]: -+ continue - packages_by_id[pkg.get("id", "").lower()] = pkg - - pending = [] -@@ -204,6 +207,18 @@ - continue - repository_ctx.delete(entry) - -+def _keep_only_children_ignoring_case(repository_ctx, directory, child_names): -+ # Payloads spell one directory both Hostx64 and HostX64; a case-insensitive extract keeps whichever came first. -+ entries = {_basename(entry): entry for entry in directory.readdir()} -+ keep = {} -+ for name in child_names: -+ for actual in entries: -+ if actual == name or (actual.lower() == name.lower() and name not in entries): -+ keep[actual] = True -+ for actual, entry in entries.items(): -+ if not keep.get(actual, False): -+ repository_ctx.delete(entry) -+ - def _is_dotted_version(name): - parts = name.split(".") - for part in parts: -@@ -241,7 +256,7 @@ - def _redist_architectures(architectures): - return [arch for arch in architectures if _ARCH_TO_REDIST_PACKAGE.get(arch)] - --def _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version): -+def _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version, host_tools): - sysroot_path = repository_ctx.path(sysroot_dir) - contents_dir = repository_ctx.path("{}/Contents".format(sysroot_dir)) - vc_dir = repository_ctx.path("{}/Contents/VC".format(sysroot_dir)) -@@ -256,13 +271,18 @@ - _keep_only_children( - repository_ctx, - repository_ctx.path("{}/Contents/VC/Tools/MSVC/{}".format(sysroot_dir, msvc_version)), -- ["include", "lib"], -+ ["include", "lib", "bin"] if host_tools else ["include", "lib"], - ) - _keep_only_children( - repository_ctx, - repository_ctx.path("{}/Contents/VC/Tools/MSVC/{}/lib".format(sysroot_dir, msvc_version)), - architectures, - ) -+ if host_tools: -+ bin_dir = "{}/Contents/VC/Tools/MSVC/{}/bin".format(sysroot_dir, msvc_version) -+ _keep_only_children_ignoring_case(repository_ctx, repository_ctx.path(bin_dir), ["Host" + host for host in host_tools]) -+ for host in host_tools: -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/Host{}".format(bin_dir, host)), architectures) - - if redist_version: - redist_architectures = _redist_architectures(architectures) -@@ -348,7 +368,7 @@ - redist_architectures = _redist_architectures(architectures) - if redist_architectures and not redist_version: - fail("failed to find Contents/VC/Redist/MSVC/ in extracted MSVC payloads for architectures {}".format(redist_architectures)) -- _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version) -+ _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version, repository_ctx.attr.host_tools) - - repository_ctx.file( - "versions.bzl", -@@ -394,6 +414,8 @@ - ), - ) - -+_HOST_TOOL_ARCHITECTURES = ["x64", "arm64"] -+ - _MSVC_RUNTIME_ATTR = { - "architectures": attr.string_list( - default = _DEFAULT_ARCHITECTURES, -@@ -414,6 +436,9 @@ - } - - _MSVC_RUNTIME_REPOSITORY_ATTRS = _MSVC_RUNTIME_ATTR | { -+ "host_tools": attr.string_list( -+ doc = "Host architectures whose compiler tools are kept under Contents/VC/Tools/MSVC//bin/Host", -+ ), - "_build_file": attr.label( - allow_single_file = True, - default = ":msvc_runtime.BUILD.bazel", -@@ -447,8 +472,20 @@ - - fail("Missing msvc_runtime.configure(...): set msvc_runtime.configure(...) in your MODULE.bazel") - -+def _read_host_tools(module_ctx): -+ hosts = [] -+ for mod in module_ctx.modules: -+ for tag in mod.tags.host_tools: -+ for host in tag.hosts: -+ if host not in _HOST_TOOL_ARCHITECTURES: -+ fail("msvc_runtime.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) -+ if host not in hosts: -+ hosts.append(host) -+ return sorted(hosts) -+ - def _msvc_runtime_extension_impl(module_ctx): - config = _read_configure_tag(module_ctx) -+ host_tools = _read_host_tools(module_ctx) - - installer_manifest = _resolve_installer_manifest_from_module_facts( - module_ctx, -@@ -463,6 +500,7 @@ - name = repository_name, - msvc_version = config.msvc_version, - architectures = config.architectures, -+ host_tools = host_tools, - installer_manifest_url = installer_manifest["url"], - installer_manifest_integrity = installer_manifest["integrity"], - ) -@@ -496,6 +534,15 @@ - doc = "Optional SRI integrity for the downloaded Visual Studio installer manifest.", - ), - }), -+ "host_tools": tag_class( -+ attrs = { -+ "hosts": attr.string_list( -+ mandatory = True, -+ doc = "Host architectures (`x64`, `arm64`) whose compiler tools (cl.exe, link.exe) are kept in the repository. Values from all modules are combined.", -+ ), -+ }, -+ doc = "Keeps the MSVC compiler tools for the given hosts, exposed as `msvc_tools__`.", -+ ), - }, - doc = "MSVC runtime extension.", - ) -diff -ruN a/windows/private/extensions/windows_sdk.BUILD.bazel b/windows/private/extensions/windows_sdk.BUILD.bazel ---- a/windows/private/extensions/windows_sdk.BUILD.bazel -+++ b/windows/private/extensions/windows_sdk.BUILD.bazel -@@ -189,3 +189,14 @@ - allow_empty = True, - ), - ) -+ -+[ -+ filegroup( -+ name = "winsdk_bin_" + host, -+ srcs = glob( -+ ["__WINSDK_DIR__/base/c/bin/__WINSDK_INCLUDE_VERSION__/{}/**".format(host)], -+ allow_empty = True, -+ ), -+ ) -+ for host in ("x64", "arm64") -+] -diff -ruN a/windows/private/extensions/windows_sdk.bzl b/windows/private/extensions/windows_sdk.bzl ---- a/windows/private/extensions/windows_sdk.bzl -+++ b/windows/private/extensions/windows_sdk.bzl -@@ -28,10 +28,13 @@ - continue - repository_ctx.delete(entry) - --def _keep_exposed_windows_sdk_files(repository_ctx, sysroot_dir, include_version, architectures): -+def _keep_exposed_windows_sdk_files(repository_ctx, sysroot_dir, include_version, architectures, host_tools): - _keep_only_children(repository_ctx, repository_ctx.path(sysroot_dir), ["base"] + architectures) - _keep_only_children(repository_ctx, repository_ctx.path("{}/base".format(sysroot_dir)), ["c"]) -- _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c".format(sysroot_dir)), ["Include"]) -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c".format(sysroot_dir)), ["Include", "bin"] if host_tools else ["Include"]) -+ if host_tools: -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c/bin".format(sysroot_dir)), [include_version]) -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c/bin/{}".format(sysroot_dir, include_version)), host_tools) - _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c/Include".format(sysroot_dir)), [include_version]) - _keep_only_children( - repository_ctx, -@@ -226,7 +229,7 @@ - ) - - _apply_transformations(repository_ctx) -- _keep_exposed_windows_sdk_files(repository_ctx, _SYSROOT_DIR, include_version, requested_architectures) -+ _keep_exposed_windows_sdk_files(repository_ctx, _SYSROOT_DIR, include_version, requested_architectures, repository_ctx.attr.host_tools) - - repository_ctx.file( - "versions.bzl", -@@ -263,6 +266,8 @@ - ), - ) - -+_HOST_TOOL_ARCHITECTURES = ["x64", "arm64"] -+ - _WINDOWS_SDK_ATTR = { - "architectures": attr.string_list( - default = _DEFAULT_ARCHITECTURES, -@@ -299,6 +304,9 @@ - } - - _WINDOWS_SDK_REPOSITORY_ATTRS = _WINDOWS_SDK_ATTR | { -+ "host_tools": attr.string_list( -+ doc = "Host architectures whose SDK tools (rc.exe, mt.exe) are kept under base/c/bin//", -+ ), - "_build_file": attr.label( - allow_single_file = True, - default = ":windows_sdk.BUILD.bazel", -@@ -331,6 +339,17 @@ - - fail("Missing windows_sdk.configure(...): set windows_sdk.configure(...) in your MODULE.bazel") - -+def _read_host_tools(module_ctx): -+ hosts = [] -+ for mod in module_ctx.modules: -+ for tag in mod.tags.host_tools: -+ for host in tag.hosts: -+ if host not in _HOST_TOOL_ARCHITECTURES: -+ fail("windows_sdk.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) -+ if host not in hosts: -+ hosts.append(host) -+ return sorted(hosts) -+ - def _windows_sdk_extension_impl(module_ctx): - config = _read_configure_tag(module_ctx) - -@@ -341,6 +360,7 @@ - windows_sdk_integrity = config.windows_sdk_integrity, - transformations = config.transformations, - architectures = config.architectures, -+ host_tools = _read_host_tools(module_ctx), - ) - - if module_ctx.root_module_has_non_dev_dependency: -@@ -358,6 +378,15 @@ - implementation = _windows_sdk_extension_impl, - tag_classes = { - "configure": tag_class(attrs = _WINDOWS_SDK_ATTR), -+ "host_tools": tag_class( -+ attrs = { -+ "hosts": attr.string_list( -+ mandatory = True, -+ doc = "Host architectures (`x64`, `arm64`) whose SDK tools (rc.exe, mt.exe) are kept. Values from all modules are combined.", -+ ), -+ }, -+ doc = "Keeps the Windows SDK tools for the given hosts, exposed as `winsdk_bin_`.", -+ ), - }, - doc = "Windows SDK extension backed by public NuGet packages.", - ) diff --git a/families/fortran/third_party/rules_dx/windows_support.hostarm64_packages.patch b/families/fortran/third_party/rules_dx/windows_support.hostarm64_packages.patch deleted file mode 100644 index 7e2b022f0e..0000000000 --- a/families/fortran/third_party/rules_dx/windows_support.hostarm64_packages.patch +++ /dev/null @@ -1,85 +0,0 @@ -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -135,7 +135,27 @@ - decoded_struct = decoded, - ) - --def _collect_vctools_packages(installer_manifest, architectures): -+def _walk_dependencies(packages_by_id, frontier, selected, seen): -+ for _ in range(len(packages_by_id)): -+ if not frontier: -+ break -+ next_frontier = [] -+ for package_id in frontier: -+ if seen.get(package_id, False): -+ continue -+ seen[package_id] = True -+ pkg = packages_by_id.get(package_id) -+ if pkg == None: -+ continue -+ selected[package_id] = pkg -+ dependencies = pkg.get("dependencies", {}) -+ if type(dependencies) == "list": -+ next_frontier.extend(sorted([dep.lower() for dep in dependencies])) -+ else: -+ next_frontier.extend(sorted([dep.lower() for dep in dependencies.keys()])) -+ frontier = next_frontier -+ -+def _collect_vctools_packages(installer_manifest, architectures, host_tools = []): - packages_by_id = {} - for pkg in installer_manifest.get("packages", []): - # Resource packages repeat per language; without this the last one (zh-TW) wins and the tools print Chinese. -@@ -162,25 +182,25 @@ - - selected = {} - seen = {} -- frontier = pending -- for _ in range(len(packages_by_id)): -- if not frontier: -- break -- next_frontier = [] -- for package_id in frontier: -- if seen.get(package_id, False): -- continue -- seen[package_id] = True -- pkg = packages_by_id.get(package_id) -- if pkg == None: -+ _walk_dependencies(packages_by_id, pending, selected, seen) -+ -+ # The tools components only pull in the HostX64 compilers, so ask for -+ # the compilers of each requested host at the versions already selected. -+ extra = [] -+ for host in host_tools: -+ if host == "x64": -+ continue -+ for package_id in sorted(selected.keys()): -+ prefix = "microsoft.vc." -+ suffix = ".tools.hostx64.targetx64.base" -+ if not (package_id.startswith(prefix) and package_id.endswith(suffix)): - continue -- selected[package_id] = pkg -- dependencies = pkg.get("dependencies", {}) -- if type(dependencies) == "list": -- next_frontier.extend(sorted([dep.lower() for dep in dependencies])) -- else: -- next_frontier.extend(sorted([dep.lower() for dep in dependencies.keys()])) -- frontier = next_frontier -+ version = package_id[len(prefix):-len(suffix)] -+ for arch in architectures: -+ candidate = "{}{}.tools.host{}.target{}.base".format(prefix, version, host, arch) -+ if arch in ("x64", "arm64") and candidate in packages_by_id: -+ extra.append(candidate) -+ _walk_dependencies(packages_by_id, extra, selected, seen) - - vctools_packages = {} - for package_id in sorted(selected.keys()): -@@ -326,7 +346,7 @@ - repository_ctx.attr.installer_manifest_url, - repository_ctx.attr.installer_manifest_integrity, - ) -- packages = _collect_vctools_packages(installer_manifest.decoded_struct, repository_ctx.attr.architectures) -+ packages = _collect_vctools_packages(installer_manifest.decoded_struct, repository_ctx.attr.architectures, repository_ctx.attr.host_tools) - - # Download/extract VSIX packages to look for the MSVC runtime pieces - diff --git a/families/fortran/third_party/rules_dx/windows_support.rules_dx_hosts.patch b/families/fortran/third_party/rules_dx/windows_support.rules_dx_hosts.patch deleted file mode 100644 index 371db67b65..0000000000 --- a/families/fortran/third_party/rules_dx/windows_support.rules_dx_hosts.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -466,6 +466,11 @@ - fail("msvc_runtime.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) - if host not in hosts: - hosts.append(host) -+ if not hosts: -+ # Default on under rules_dx so @dx_msvc has cl.exe; see #6484. -+ for mod in module_ctx.modules: -+ if mod.name == "rules_dx": -+ return sorted(_HOST_TOOL_ARCHITECTURES) - return sorted(hosts) - - def _msvc_runtime_extension_impl(module_ctx): -diff --git a/windows/private/extensions/windows_sdk.bzl b/windows/private/extensions/windows_sdk.bzl ---- a/windows/private/extensions/windows_sdk.bzl -+++ b/windows/private/extensions/windows_sdk.bzl -@@ -348,6 +348,11 @@ - fail("windows_sdk.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) - if host not in hosts: - hosts.append(host) -+ if not hosts: -+ # Default on under rules_dx so @dx_msvc has cl.exe; see #6484. -+ for mod in module_ctx.modules: -+ if mod.name == "rules_dx": -+ return sorted(_HOST_TOOL_ARCHITECTURES) - return sorted(hosts) - - def _windows_sdk_extension_impl(module_ctx): -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -198,9 +198,9 @@ - def _keep_only_children(repository_ctx, directory, child_names): - if not directory.exists or not directory.is_dir: - return -- allowed = {name: True for name in child_names} -+ allowed = {name.lower(): True for name in child_names} - for entry in directory.readdir(): -- if allowed.get(_basename(entry), False): -+ if allowed.get(_basename(entry).lower(), False): - continue - repository_ctx.delete(entry) - diff --git a/families/fortran/third_party/rules_dx/windows_support.source_directory_headers.patch b/families/fortran/third_party/rules_dx/windows_support.source_directory_headers.patch deleted file mode 100644 index 0e94604880..0000000000 --- a/families/fortran/third_party/rules_dx/windows_support.source_directory_headers.patch +++ /dev/null @@ -1,146 +0,0 @@ -diff --git a/windows/BUILD.bazel b/windows/BUILD.bazel ---- a/windows/BUILD.bazel -+++ b/windows/BUILD.bazel -@@ -22,3 +22,10 @@ bzl_library( - "@bazel_tools//tools/build_defs/repo:utils.bzl", - ], - ) -+ -+bzl_library( -+ name = "source_directory_headers", -+ srcs = ["source_directory_headers.bzl"], -+ visibility = ["//visibility:public"], -+ deps = ["@bazel_skylib//rules/directory:providers"], -+) -diff --git a/windows/private/extensions/windows_sdk.BUILD.bazel b/windows/private/extensions/windows_sdk.BUILD.bazel ---- a/windows/private/extensions/windows_sdk.BUILD.bazel -+++ b/windows/private/extensions/windows_sdk.BUILD.bazel -@@ -2,6 +2,7 @@ - - load("@bazel_skylib//rules/directory:directory.bzl", "directory") - load("@bazel_skylib//rules/directory:subdirectory.bzl", "subdirectory") -+load("@windows_support//windows:source_directory_headers.bzl", "source_directory_headers") - - package(default_visibility = ["//visibility:public"]) - -@@ -38,11 +39,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_ucrt_include", -+ name = "winsdk_ucrt_include_directory", - parent = ":winsdk_ucrt_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/ucrt", - ) - -+filegroup( -+ name = "winsdk_ucrt_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/ucrt"], -+) -+ -+source_directory_headers( -+ name = "winsdk_ucrt_include", -+ directory = ":winsdk_ucrt_include_directory", -+ source_directory = ":winsdk_ucrt_include_source_directory", -+) -+ - directory( - name = "winsdk_shared_include_files", - srcs = glob( -@@ -52,11 +64,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_shared_include", -+ name = "winsdk_shared_include_directory", - parent = ":winsdk_shared_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/shared", - ) - -+filegroup( -+ name = "winsdk_shared_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/shared"], -+) -+ -+source_directory_headers( -+ name = "winsdk_shared_include", -+ directory = ":winsdk_shared_include_directory", -+ source_directory = ":winsdk_shared_include_source_directory", -+) -+ - directory( - name = "winsdk_um_include_files", - srcs = glob( -@@ -66,11 +89,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_um_include", -+ name = "winsdk_um_include_directory", - parent = ":winsdk_um_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/um", - ) - -+filegroup( -+ name = "winsdk_um_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/um"], -+) -+ -+source_directory_headers( -+ name = "winsdk_um_include", -+ directory = ":winsdk_um_include_directory", -+ source_directory = ":winsdk_um_include_source_directory", -+) -+ - directory( - name = "winsdk_winrt_include_files", - srcs = glob( -@@ -80,11 +114,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_winrt_include", -+ name = "winsdk_winrt_include_directory", - parent = ":winsdk_winrt_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/winrt", - ) - -+filegroup( -+ name = "winsdk_winrt_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/winrt"], -+) -+ -+source_directory_headers( -+ name = "winsdk_winrt_include", -+ directory = ":winsdk_winrt_include_directory", -+ source_directory = ":winsdk_winrt_include_source_directory", -+) -+ - directory( - name = "winsdk_ucrt_lib_arm64_files", - srcs = glob( -diff --git a/windows/source_directory_headers.bzl b/windows/source_directory_headers.bzl -new file mode 100644 ---- /dev/null -+++ b/windows/source_directory_headers.bzl -@@ -0,0 +1,20 @@ -+"""Headers exposed as one source directory with their DirectoryInfo.""" -+ -+load("@bazel_skylib//rules/directory:providers.bzl", "DirectoryInfo") -+ -+def _source_directory_headers_impl(ctx): -+ return [ -+ ctx.attr.directory[DirectoryInfo], -+ DefaultInfo(files = ctx.attr.source_directory[DefaultInfo].files), -+ ] -+ -+source_directory_headers = rule( -+ implementation = _source_directory_headers_impl, -+ doc = "Returns the DirectoryInfo of `directory` and the single source directory of `source_directory`.", -+ attrs = { -+ "directory": attr.label(mandatory = True, providers = [DirectoryInfo], doc = "Directory whose DirectoryInfo is forwarded."), -+ "source_directory": attr.label(mandatory = True, doc = "Filegroup holding the same directory as a source directory."), -+ }, -+ provides = [DirectoryInfo], -+ cfg = config.none(), -+) diff --git a/families/julia/.bazelrc b/families/julia/.bazelrc deleted file mode 100644 index 97c154f59a..0000000000 --- a/families/julia/.bazelrc +++ /dev/null @@ -1,23 +0,0 @@ -# dx Bazel preset; comment out an import to drop that layer. -try-import %workspace%/.dx/bazelrc/correctness.bazelrc -try-import %workspace%/.dx/bazelrc/performance.bazelrc -try-import %workspace%/.dx/bazelrc/resources.bazelrc - -common --registry=https://bcr.bazel.build -common --check_direct_dependencies=error - -build --java_runtime_version=remotejdk_21 -build --tool_java_runtime_version=remotejdk_21 -build --tool_java_language_version=17 - -common:ci --remote_cache=grpcs://remote.buildbuddy.io -common:ci --remote_cache_compression -common:ci --remote_timeout=10m -common:ci --remote_local_fallback -common:ci --remote_retries=5 -common:ci-pr --noremote_upload_local_results -common:bb --remote_cache=grpcs://remote.buildbuddy.io -common:bb --remote_cache_compression -common:bb --remote_timeout=10m - -try-import %workspace%/user.bazelrc diff --git a/families/julia/.bazelversion b/families/julia/.bazelversion deleted file mode 100644 index 3b74042132..0000000000 --- a/families/julia/.bazelversion +++ /dev/null @@ -1 +0,0 @@ -9.3.1 diff --git a/families/julia/.buildifier.json b/families/julia/.buildifier.json deleted file mode 100644 index 1d64e29305..0000000000 --- a/families/julia/.buildifier.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "warningsList": [ - "allowed-symbol-load-locations", - "attr-applicable_licenses", - "attr-cfg", - "attr-license", - "attr-licenses", - "attr-non-empty", - "attr-output-default", - "attr-single-file", - "build-args-kwargs", - "bzl-visibility", - "canonical-repository", - "confusing-name", - "constant-glob", - "ctx-actions", - "ctx-args", - "deprecated-function", - "depset-items", - "depset-iteration", - "depset-union", - "dict-concatenation", - "dict-method-named-arg", - "duplicated-name", - "external-path", - "filetype", - "function-docstring", - "function-docstring-header", - "git-repository", - "http-archive", - "integer-division", - "keyword-positional-params", - "list-append", - "load", - "module-docstring", - "name-conventions", - "native-android", - "native-build", - "native-cc-binary", - "native-cc-common", - "native-cc-debug-package-info", - "native-cc-fdo-prefetch-hints", - "native-cc-fdo-profile", - "native-cc-import", - "native-cc-info", - "native-cc-library", - "native-cc-memprof-profile", - "native-cc-objc-import", - "native-cc-objc-library", - "native-cc-propeller-optimize", - "native-cc-proto", - "native-cc-shared-library", - "native-cc-shared-library-hint-info", - "native-cc-shared-library-info", - "native-cc-test", - "native-cc-toolchain", - "native-cc-toolchain-suite", - "native-java-binary", - "native-java-common", - "native-java-import", - "native-java-info", - "native-java-library", - "native-java-lite-proto", - "native-java-package-config", - "native-java-plugin", - "native-java-plugin-info", - "native-java-proto", - "native-java-runtime", - "native-java-test", - "native-java-toolchain", - "native-package", - "native-proto", - "native-proto-common", - "native-proto-info", - "native-proto-lang-toolchain", - "native-proto-lang-toolchain-info", - "native-py", - "native-sh-binary", - "native-sh-library", - "native-sh-test", - "no-effect", - "output-group", - "overly-nested-depset", - "package-name", - "package-on-top", - "positional-args", - "print", - "provider-params", - "redefined-variable", - "repository-name", - "return-value", - "rule-impl-return", - "skylark-comment", - "skylark-docstring", - "string-iteration", - "uninitialized", - "unnamed-macro", - "unreachable", - "unused-variable" - ] -} diff --git a/families/julia/.dx/BUILD.bazel b/families/julia/.dx/BUILD.bazel deleted file mode 100644 index 4cf7a2e458..0000000000 --- a/families/julia/.dx/BUILD.bazel +++ /dev/null @@ -1,85 +0,0 @@ -# gazelle:ignore -# Generated by dx from dx.toml; dx generate rewrites this file. - -load("@rules_dx//quality:native_config.bzl", "buildifier_config") -load("@rules_dx//quality/private:generated_policy.bzl", "dx_generated_policy") - -package(default_visibility = ["//visibility:public"]) - -buildifier_config( - name = "buildifier", - src = "//:.buildifier.json", - data = ["config/buildifier/base.json"], -) - -dx_generated_policy( - name = "policy", - configs = [":buildifier"], - families = { - "cc": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["clang_format"], - "lint": [ - "clang_tidy", - "typos", - ], - }, - "json": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["biome"], - "lint": ["biome"], - }, - "markdown": { - "disabled": [ - "audit", - "format", - "typecheck", - ], - "lint": [ - "lychee", - "markdown_check", - "typos", - ], - }, - "shell": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["shfmt"], - "lint": [ - "shellcheck", - "typos", - ], - }, - "starlark": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["buildifier"], - "lint": [ - "buildifier", - "typos", - ], - }, - "toml": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["taplo"], - "lint": [ - "taplo", - "typos", - ], - }, - }, - tier = "strict", -) diff --git a/families/julia/.dx/bazelrc/correctness.bazelrc b/families/julia/.dx/bazelrc/correctness.bazelrc deleted file mode 100644 index cdc70dc863..0000000000 --- a/families/julia/.dx/bazelrc/correctness.bazelrc +++ /dev/null @@ -1,91 +0,0 @@ -# Vendored Bazel execution preset -- GENERATED, do not edit. -# Regenerate: `tools/dx init --apply`. -# Layer correctness: flags that change what a build or test produces. - -# Print the full command line of a failed action. -build --verbose_failures - -# Show the log of a failing test in the console. -test --test_output=errors - -# Apply the linux, macos and windows config lines on matching hosts. -common --enable_platform_specific_config - -# Make LLVM coverage write lcov data. -coverage --test_env=GENERATE_LLVM_LCOV=1 - -# Merge the coverage of every test into one lcov report. -coverage --combined_report=lcov - -# Skip tests tagged no-coverage during coverage runs. -coverage --test_tag_filters=-no-coverage - -# Coverage collectors read their inputs from a runfiles tree. -coverage --enable_runfiles - -# Instrument only targets in the main repository. -coverage --instrumentation_filter=^// - -# Instrument test targets so sources a test compiles itself are counted. -coverage --instrument_test_targets - -# On Windows, build runfiles trees only for actions that run. -build:windows --nobuild_runfile_links - -# On Windows, give tests a runfiles directory instead of only a manifest. -build:windows --enable_runfiles - -# On Windows, rustc links with rust-lld; clang-cl cannot drive a Rust link. -build:windows --@rules_dx//config:toolchain_linker_preference=rust - -# On Windows, build host tools on the MSVC-ABI host so rustc and clang-cl agree on the ABI. -common:windows --host_platform=@rules_dx//tools/platforms:windows_msvc_host - -# On Windows, prefer the MSVC-ABI host for actions and keep the plain host as a fallback. -common:windows --extra_execution_platforms=@rules_dx//tools/platforms:windows_msvc_host,@rules_dx//tools/platforms:host - -# Run Java targets on the downloaded JDK 21, not a host JDK. -build --java_runtime_version=remotejdk_21 - -# Run Java build tools on the downloaded JDK 21. -build --tool_java_runtime_version=remotejdk_21 - -# Compile Java build tools at language level 17. -build --tool_java_language_version=17 - -# Opt out of aspect_tools_telemetry usage reports. -common --repo_env=DO_NOT_TRACK=1 - -# Clippy findings are part of the build output, as in dx build. -build --@rules_dx//config:clippy_output_diagnostics=true - -# Rustc diagnostics are part of the build output, as in dx build. -build --@rules_dx//config:rustc_output_diagnostics=true - -# Under --config=ci, fail when MODULE.bazel.lock is out of date. -common:ci --lockfile_mode=error - -# Under --config=ci, skip probing the host JDK for @local_jdk. -common:ci --repo_env=JAVA_HOME=dx-no-local-jdk - -# Under --config=ci, build runfiles trees only for actions that run. -common:ci --nobuild_runfile_links - -# Compiler warnings fail the build under the strict profile. -common --@rules_dx//config:warnings_as_errors=true -common --@rules_dx//config:config_profile=strict - -# The workspace policy dx generates from dx.toml. -common --@rules_dx//config:workspace=//.dx:policy - -# The clippy tier. -common --@rules_dx//config:clippy_flag=-Wclippy::all -common --@rules_dx//config:clippy_flag=-Wclippy::pedantic -common --@rules_dx//config:clippy_flag=-Wclippy::dbg_macro -common --@rules_dx//config:clippy_flag=-Wclippy::todo -common --@rules_dx//config:clippy_flag=-Wclippy::unimplemented -common --@rules_dx//config:clippy_flag=-Wclippy::allow_attributes_without_reason -common --@rules_dx//config:clippy_flag=-Wclippy::allow_attributes -common --@rules_dx//config:clippy_flag=-Wrust_2018_idioms -common --@rules_dx//config:clippy_flag=-Wunused_qualifications -common --@rules_dx//config:clippy_flag=-Dwarnings diff --git a/families/julia/.dx/bazelrc/performance.bazelrc b/families/julia/.dx/bazelrc/performance.bazelrc deleted file mode 100644 index eda0a0d8e8..0000000000 --- a/families/julia/.dx/bazelrc/performance.bazelrc +++ /dev/null @@ -1,57 +0,0 @@ -# Vendored Bazel execution preset -- GENERATED, do not edit. -# Regenerate: `tools/dx init --apply`. -# Layer performance: build speed and the dx compilation configs. - -# Build host tools without optimization so builds finish sooner. -build --host_compilation_mode=fastbuild - -# The dx_build_debug config builds with debug symbols. -build:dx_build_debug --compilation_mode=dbg - -# The dx_build_dev config builds unoptimized for quick edit and test loops. -build:dx_build_dev --compilation_mode=fastbuild - -# The dx_build_release config builds optimized target code. -build:dx_build_release --compilation_mode=opt - -# The dx_build_release config also optimizes host tools. -build:dx_build_release --host_compilation_mode=opt - -# The dx_dev_remote config builds unoptimized on remote executors. -build:dx_dev_remote --compilation_mode=fastbuild - -# The dx_toolchain config builds toolchains unoptimized. -build:dx_toolchain --compilation_mode=fastbuild - -# With a remote cache set, also store fetched repositories there; without one this does nothing. Only use a remote cache you trust. -startup --experimental_remote_repo_contents_cache - -# Under --config=ci, run 64 actions at once, since remote cache hits hold job slots. -common:ci --jobs=64 - -# Under --config=ci, compress remote cache transfers. -common:ci --remote_cache_compression - -# Under --config=ci, send blobs under 100 bytes uncompressed. -common:ci --experimental_remote_cache_compression_threshold=100 - -# Under --config=ci, allow a remote cache call 10 minutes. -common:ci --remote_timeout=10m - -# Under --config=ci, build locally when the remote cache fails. -common:ci --remote_local_fallback - -# Under --config=ci, retry a failed remote cache call 5 times. -common:ci --remote_retries=5 - -# Under --config=ci, rebuild 5 times when the remote cache evicts an input. -common:ci --experimental_remote_cache_eviction_retries=5 - -# Under --config=ci, look up 32 repositories at once, since each remote contents cache lookup waits on the network. -common:ci --loading_phase_threads=32 - -# Under --config=ci, open up to 200 remote connections, since cache checks queue behind the default 100. -common:ci --remote_max_connections=200 - -# Under --config=ci-pr, read the remote cache without writing to it. -common:ci-pr --noremote_upload_local_results diff --git a/families/julia/.dx/bazelrc/resources.bazelrc b/families/julia/.dx/bazelrc/resources.bazelrc deleted file mode 100644 index aa74f07fb7..0000000000 --- a/families/julia/.dx/bazelrc/resources.bazelrc +++ /dev/null @@ -1,42 +0,0 @@ -# Vendored Bazel execution preset -- GENERATED, do not edit. -# Regenerate: `tools/dx init --apply`. -# Layer resources: memory, CPU and cache limits for the host. - -# Let the Bazel server return unused heap to the system sooner. -startup --host_jvm_args=-XX:MaxHeapFreeRatio=30 - -# Keep little spare heap after a garbage collection. -startup --host_jvm_args=-XX:MinHeapFreeRatio=10 - -# Cap the Bazel server heap at a quarter of host memory. -startup --host_jvm_args=-XX:MaxRAMPercentage=25 - -# Schedule local actions within half of host memory. -common --local_resources=memory=HOST_RAM*.5 - -# Leave a quarter of the CPUs for the rest of the machine. -common --local_resources=cpu=HOST_CPUS*.75 - -# Stop a Bazel server after 15 idle minutes. -startup --max_idle_secs=900 - -# Stop an idle Bazel server when the host runs low on memory. -startup --shutdown_on_low_sys_mem - -# Drop disk cache entries unused for 14 days. -common --experimental_disk_cache_gc_max_age=14d - -# Keep the disk cache under 20 GB. -common --experimental_disk_cache_gc_max_size=20G - -# Drop repository contents cache entries unused for 60 days. -common --repo_contents_cache_gc_max_age=60d - -# Shrink persistent worker pools when memory runs low. -build --experimental_shrink_worker_pool - -# Cap the memory of all persistent workers together at 4 GB. -build --experimental_total_worker_memory_limit_mb=4096 - -# Under --config=ci, schedule local actions on every CPU. -common:ci --local_resources=cpu=HOST_CPUS diff --git a/families/julia/.dx/config/buildifier/base.json b/families/julia/.dx/config/buildifier/base.json deleted file mode 100644 index 833abf52c2..0000000000 --- a/families/julia/.dx/config/buildifier/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "warnings": "all" -} diff --git a/families/julia/.dx/config/taplo/base.toml b/families/julia/.dx/config/taplo/base.toml deleted file mode 100644 index 1e9dea1b10..0000000000 --- a/families/julia/.dx/config/taplo/base.toml +++ /dev/null @@ -1,4 +0,0 @@ -[formatting] -column_width = 80 -indent_string = " " -reorder_keys = false diff --git a/families/julia/.dx/config/typos/base.toml b/families/julia/.dx/config/typos/base.toml deleted file mode 100644 index 58f31584ba..0000000000 --- a/families/julia/.dx/config/typos/base.toml +++ /dev/null @@ -1,5 +0,0 @@ -[default] -locale = "en" - -[files] -extend-exclude = ["*.lock", "*.min.js", "*.svg"] diff --git a/families/julia/.dx/pins b/families/julia/.dx/pins deleted file mode 100644 index 77d6f4ca23..0000000000 --- a/families/julia/.dx/pins +++ /dev/null @@ -1 +0,0 @@ -0.0.0 diff --git a/families/julia/BUILD.bazel b/families/julia/BUILD.bazel deleted file mode 100644 index 94a467c1cd..0000000000 --- a/families/julia/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@rules_dx//quality:fixtures.bzl", "real_source_target") -load("@rules_shell//shell:sh_test.bzl", "sh_test") - -# gazelle:exclude julia - -package(default_visibility = ["//visibility:public"]) - -real_source_target( - name = "corpus_starlark", - starlark_srcs = ["BUILD.bazel"], - tags = ["corpus"], -) - -real_source_target( - name = "corpus_markdown", - aspect_hints = ["@rules_dx//quality:corpus_vale_config"], - markdown_srcs = ["README.md"], - tags = ["corpus"], -) - -sh_test( - name = "starlark_docs_test", - srcs = ["starlark_docs_test.sh"], - args = ["$(rootpath @rules_dx//tools/ci:starlark_docs_family_test)"], - data = [ - "//julia/tests/fixtures/hello:corpus_starlark", - "//julia/tests/fixtures/julia-app:corpus_starlark", - "//julia/tests/fixtures/julia-app/archive:corpus_starlark", - "//julia/tests/fixtures/julia-app/cli:corpus_starlark", - "//julia/tests/fixtures/julia-app/data:corpus_starlark", - "//julia/tests/fixtures/julia-app/diagnostics:corpus_starlark", - "//julia/tests/fixtures/julia-app/stats:corpus_starlark", - "@rules_dx//tools/ci:starlark_docs_family_test", - ], - env = {"STARLARK_DOCS_PACKAGES": "julia/tests/fixtures/hello,julia/tests/fixtures/julia-app,julia/tests/fixtures/julia-app/archive,julia/tests/fixtures/julia-app/cli,julia/tests/fixtures/julia-app/data,julia/tests/fixtures/julia-app/diagnostics,julia/tests/fixtures/julia-app/stats"}, -) - -filegroup( - name = "module_srcs", - srcs = glob( - ["**"], - exclude = ["**/tests/**"], - ), - visibility = ["//visibility:public"], -) - -# dx:begin exports -exports_files( - [".buildifier.json"], - visibility = ["//.dx:__pkg__"], -) -# dx:end exports - -exports_files(["MODULE.bazel"]) diff --git a/families/julia/MODULE.bazel b/families/julia/MODULE.bazel deleted file mode 100644 index 5d008b96c6..0000000000 --- a/families/julia/MODULE.bazel +++ /dev/null @@ -1,46 +0,0 @@ -module( - name = "rules_dx_julia", - version = "0.0.0", - bazel_compatibility = [">=9.2.0"], -) - -bazel_dep(name = "rules_dx", version = "0.0.0") - -include("//third_party/rules_dx:rules_dx.MODULE.bazel") - -local_path_override( - module_name = "rules_dx", - path = "../..", -) - -# floor: equals tested -bazel_dep(name = "bazel_skylib", version = "1.9.2") -bazel_dep(name = "platforms", version = "1.1.0") -bazel_dep(name = "rules_shell", version = "0.8.0") -bazel_dep(name = "rules_rust", version = "0.75.0", dev_dependency = True) - -# floor: equals tested; patched, consumers are pinned by the dx include (#5006) -bazel_dep(name = "rules_julia", version = "0.8.0") - -julia = use_extension("@rules_julia//julia:extensions.bzl", "julia") -julia.toolchain(version = "1.12.5") - -julia_pkg = use_extension("@rules_julia//julia/pkg:extensions.bzl", "pkg") -julia_pkg.from_manifest( - name = "julia_app_pkgs", - lockfile = "//julia/tests/fixtures/julia-app/third_party:Manifest.bazel.json", -) -use_repo(julia_pkg, julia_app_deps = "julia_app_pkgs") - -rust = use_extension("@rules_rust//rust:extensions.bzl", "rust", dev_dependency = True) -rust.toolchain( - edition = "2024", - rustfmt_version = "1.99.1", - versions = ["1.99.1"], -) -use_repo(rust, "rust_toolchains") - -register_toolchains( - "@rust_toolchains//:all", - dev_dependency = True, -) diff --git a/families/julia/MODULE.bazel.lock b/families/julia/MODULE.bazel.lock deleted file mode 100644 index e5bb805f75..0000000000 --- a/families/julia/MODULE.bazel.lock +++ /dev/null @@ -1,21937 +0,0 @@ -{ - "lockFileVersion": 28, - "registryFileHashes": { - "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", - "https://bcr.bazel.build/modules/abseil-cpp/20230125.1/MODULE.bazel": "89047429cb0207707b2dface14ba7f8df85273d484c2572755be4bab7ce9c3a0", - "https://bcr.bazel.build/modules/abseil-cpp/20230802.0/MODULE.bazel": "d253ae36a8bd9ee3c5955384096ccb6baf16a1b1e93e858370da0a3b94f77c16", - "https://bcr.bazel.build/modules/abseil-cpp/20230802.1/MODULE.bazel": "fa92e2eb41a04df73cdabeec37107316f7e5272650f81d6cc096418fe647b915", - "https://bcr.bazel.build/modules/abseil-cpp/20240116.2/MODULE.bazel": "73939767a4686cd9a520d16af5ab440071ed75cec1a876bf2fcfaf1f71987a16", - "https://bcr.bazel.build/modules/abseil-cpp/20250127.1/MODULE.bazel": "c4a89e7ceb9bf1e25cf84a9f830ff6b817b72874088bf5141b314726e46a57c1", - "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/MODULE.bazel": "d209fdb6f36ffaf61c509fcc81b19e81b411a999a934a032e10cd009a0226215", - "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/MODULE.bazel": "51f2312901470cdab0dbdf3b88c40cd21c62a7ed58a3de45b365ddc5b11bcab2", - "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/source.json": "cea3901d7e299da7320700abbaafe57a65d039f10d0d7ea601c4a66938ea4b0c", - "https://bcr.bazel.build/modules/abseil-py/2.1.0/MODULE.bazel": "5ebe5bf853769c65707e5c28f216798f7a4b1042015e6a36e6d03094d94bec8a", - "https://bcr.bazel.build/modules/abseil-py/2.1.0/source.json": "0e8fc4f088ce07099c1cd6594c20c7ddbb48b4b3c0849b7d94ba94be88ff042b", - "https://bcr.bazel.build/modules/apple_support/1.11.1/MODULE.bazel": "1843d7cd8a58369a444fc6000e7304425fba600ff641592161d9f15b179fb896", - "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", - "https://bcr.bazel.build/modules/apple_support/1.21.1/MODULE.bazel": "5809fa3efab15d1f3c3c635af6974044bac8a4919c62238cce06acee8a8c11f1", - "https://bcr.bazel.build/modules/apple_support/1.24.1/MODULE.bazel": "f46e8ddad60aef170ee92b2f3d00ef66c147ceafea68b6877cb45bd91737f5f8", - "https://bcr.bazel.build/modules/apple_support/1.24.2/MODULE.bazel": "0e62471818affb9f0b26f128831d5c40b074d32e6dda5a0d3852847215a41ca4", - "https://bcr.bazel.build/modules/apple_support/2.11.0/MODULE.bazel": "0f1e56d2d03842cef48348321fa90768e239138956d605a8d2615cdcd2fc0732", - "https://bcr.bazel.build/modules/apple_support/2.11.0/source.json": "2f0c765c28dbb7f6485ad3fb7c0a365ea5a041948b5fe2fc600ab655f514c990", - "https://bcr.bazel.build/modules/apple_support/2.3.0/MODULE.bazel": "d48f824ae8eeea5f837eb3038cef3615075d996d3e82eb9187192c2820605a81", - "https://bcr.bazel.build/modules/apple_support/2.5.2/MODULE.bazel": "bb1b7081e390a8d3885f642cb0073dfcf8e7a36525e079fa8f5835af7079c0fe", - "https://bcr.bazel.build/modules/apple_support/2.5.4/MODULE.bazel": "964e9268b37edb64e9a0fa525e5b5e535ba56bf63cadc68375f92e69fcb734f6", - "https://bcr.bazel.build/modules/apple_support/2.8.0/MODULE.bazel": "c45f5176057092afba0be6c48a9ea02101666802f8be536947e099e94757f8ed", - "https://bcr.bazel.build/modules/apple_support/2.8.3/MODULE.bazel": "4afffdeb3a37825fdae637efb14ead4de27fe6310dbae96d071059e4e7b2e431", - "https://bcr.bazel.build/modules/apple_support/2.9.1/MODULE.bazel": "fb209b83ed172af587419acb3340389cfe3260669e5f1c05e1ac3974aca614e0", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.14.0/MODULE.bazel": "2b31ffcc9bdc8295b2167e07a757dbbc9ac8906e7028e5170a3708cecaac119f", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.19.2/MODULE.bazel": "30dfabbfae0139b1f0036e01c201dd4c0167da3017f0b7ef3820d78e07622989", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.19.3/MODULE.bazel": "253d739ba126f62a5767d832765b12b59e9f8d2bc88cc1572f4a73e46eb298ca", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.21.1/MODULE.bazel": "07e3ce3eaaa50dbd0be7fa0094e36890478937adc780ec53e77fd9fe543af8b1", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.22.5/MODULE.bazel": "004ba890363d05372a97248c37205ae64b6fa31047629cd2c0895a9d0c7779e8", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.22.5/source.json": "ac2c3213df8f985785f1d0aeb7f0f73d5324e6e67d593d9b9470fb74a25d4a9b", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.7.7/MODULE.bazel": "491f8681205e31bb57892d67442ce448cda4f472a8e6b3dc062865e29a64f89c", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.8.1/MODULE.bazel": "812d2dd42f65dca362152101fbec418029cc8fd34cbad1a2fde905383d705838", - "https://bcr.bazel.build/modules/aspect_rules_jest/0.26.0/MODULE.bazel": "b32a16d50f02d5c65f727a2c98a280739f7bccad3a5c691342503dbba8006312", - "https://bcr.bazel.build/modules/aspect_rules_jest/0.26.0/source.json": "e978f5f3f368a8fe4a56d3f01b2e77a53c7042ceb9cb6abad86193a9a19ba31a", - "https://bcr.bazel.build/modules/aspect_rules_js/2.0.0/MODULE.bazel": "b45b507574aa60a92796e3e13c195cd5744b3b8aff516a9c0cb5ae6a048161c5", - "https://bcr.bazel.build/modules/aspect_rules_js/3.0.1/MODULE.bazel": "130d15e83caf6fd46ba65a112686d93f20e6ee31e8171eb62f25b4eb11f663bf", - "https://bcr.bazel.build/modules/aspect_rules_js/3.5.2/MODULE.bazel": "9e8e4cc25b21a51cf9336aa7bd1a0d8c1c6b508b9f0ae663d617ac4223ebcdb9", - "https://bcr.bazel.build/modules/aspect_rules_js/3.5.2/source.json": "3d11af690a74823879b297ca0ae57c6e73a94ccd944a87fb1a82b1e53e6d8442", - "https://bcr.bazel.build/modules/aspect_rules_ts/3.10.1/MODULE.bazel": "035205a7834b0ed9724ed3c4790e12d1c779ef2520d72496ab234e6307715e6c", - "https://bcr.bazel.build/modules/aspect_rules_ts/3.10.1/source.json": "d42b6560206adb5524caad2abc40ae0b5b34478dd38184a9f6ea4a5fed848cd6", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.3.3/MODULE.bazel": "37c764292861c2f70314efa9846bb6dbb44fc0308903b3285da6528305450183", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.4.2/MODULE.bazel": "f31aa84151d31e98cffd43eb7217ccff5ec52bdd5f2d10db8f053aeb23342eca", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.5.1/MODULE.bazel": "9d94e5c22c0019995c0a3216a6abb1717dc3f35acccf4e6267a55d6df38367aa", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.5.2/MODULE.bazel": "c715a5fb6b13a0086c061618f00d033a4ab6d76cbd1083e38d7ca953b5e547f4", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.5.2/source.json": "4dd300d44767ad4860098b006dda614e67ab0409ae6ec6e133faad303fe9ede8", - "https://bcr.bazel.build/modules/avro-cpp/1.12.0.bcr.1/MODULE.bazel": "5a3ba733805370100b663a5e518aacbde8eed6a0d3fb927874fa47f8ed6ae0e8", - "https://bcr.bazel.build/modules/avro-cpp/1.12.0.bcr.1/source.json": "949a05d4ae35e198b2786e7b13a9cfbe462902ea1abbc20fb0af323e266b8907", - "https://bcr.bazel.build/modules/bazel_features/1.0.0/MODULE.bazel": "d7f022dc887efb96e1ee51cec7b2e48d41e36ff59a6e4f216c40e4029e1585bf", - "https://bcr.bazel.build/modules/bazel_features/1.1.0/MODULE.bazel": "cfd42ff3b815a5f39554d97182657f8c4b9719568eb7fded2b9135f084bf760b", - "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", - "https://bcr.bazel.build/modules/bazel_features/1.10.0/MODULE.bazel": "f75e8807570484a99be90abcd52b5e1f390362c258bcb73106f4544957a48101", - "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", - "https://bcr.bazel.build/modules/bazel_features/1.13.0/MODULE.bazel": "c14c33c7c3c730612bdbe14ebbb5e61936b6f11322ea95a6e91cd1ba962f94df", - "https://bcr.bazel.build/modules/bazel_features/1.17.0/MODULE.bazel": "039de32d21b816b47bd42c778e0454217e9c9caac4a3cf8e15c7231ee3ddee4d", - "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", - "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", - "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", - "https://bcr.bazel.build/modules/bazel_features/1.24.0/MODULE.bazel": "4796b4c25b47053e9bbffa792b3792d07e228ff66cd0405faef56a978708acd4", - "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", - "https://bcr.bazel.build/modules/bazel_features/1.28.0/MODULE.bazel": "4b4200e6cbf8fa335b2c3f43e1d6ef3e240319c33d43d60cc0fbd4b87ece299d", - "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", - "https://bcr.bazel.build/modules/bazel_features/1.32.0/MODULE.bazel": "095d67022a58cb20f7e20e1aefecfa65257a222c18a938e2914fd257b5f1ccdc", - "https://bcr.bazel.build/modules/bazel_features/1.33.0/MODULE.bazel": "8b8dc9d2a4c88609409c3191165bccec0e4cb044cd7a72ccbe826583303459f6", - "https://bcr.bazel.build/modules/bazel_features/1.34.0/MODULE.bazel": "e8475ad7c8965542e0c7aac8af68eb48c4af904be3d614b6aa6274c092c2ea1e", - "https://bcr.bazel.build/modules/bazel_features/1.36.0/MODULE.bazel": "596cb62090b039caf1cad1d52a8bc35cf188ca9a4e279a828005e7ee49a1bec3", - "https://bcr.bazel.build/modules/bazel_features/1.39.0/MODULE.bazel": "28739425c1fc283c91931619749c832b555e60bcd1010b40d8441ce0a5cf726d", - "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", - "https://bcr.bazel.build/modules/bazel_features/1.41.0/MODULE.bazel": "6e0f87fafed801273c371d41e22a15a6f8abf83fdd7f87d5e44ad317b94433d0", - "https://bcr.bazel.build/modules/bazel_features/1.42.0/MODULE.bazel": "e8ca15cb2639c5f12183db6dcb678735555d0cdd739b32a0418b6532b5e565f8", - "https://bcr.bazel.build/modules/bazel_features/1.42.1/MODULE.bazel": "275a59b5406ff18c01739860aa70ad7ccb3cfb474579411decca11c93b951080", - "https://bcr.bazel.build/modules/bazel_features/1.43.0/MODULE.bazel": "defa2226f06ba20550d6548c3a2ea2a7929634437a52973869c20c225450eb91", - "https://bcr.bazel.build/modules/bazel_features/1.48.1/MODULE.bazel": "8f43b2b90bd70402825ab07a85bf26079935271e2662a1df37fe0de969aa3ecf", - "https://bcr.bazel.build/modules/bazel_features/1.50.0/MODULE.bazel": "2083ef9c7a469f520890483ccf8e0189d6e71e2117e7752e15e6554433d5ae3e", - "https://bcr.bazel.build/modules/bazel_features/1.51.0/MODULE.bazel": "8e1310d09db6ee2e4f19f9994e360aca941ddc32083edc8d9bdc19c83c94cee4", - "https://bcr.bazel.build/modules/bazel_features/1.54.1/MODULE.bazel": "026b77134bd460e2ca0f44c57f4f3a3a8593f27a497b4ee98336e065047834f5", - "https://bcr.bazel.build/modules/bazel_features/1.54.1/source.json": "23ba6f9625d32f5f718393ae65f05ac70025448aed23543c238b1cffec08f28a", - "https://bcr.bazel.build/modules/bazel_features/1.9.0/MODULE.bazel": "885151d58d90d8d9c811eb75e3288c11f850e1d6b481a8c9f766adee4712358b", - "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", - "https://bcr.bazel.build/modules/bazel_lib/3.0.0-rc.0/MODULE.bazel": "d6e00979a98ac14ada5e31c8794708b41434d461e7e7ca39b59b765e6d233b18", - "https://bcr.bazel.build/modules/bazel_lib/3.0.0/MODULE.bazel": "22b70b80ac89ad3f3772526cd9feee2fa412c2b01933fea7ed13238a448d370d", - "https://bcr.bazel.build/modules/bazel_lib/3.1.0/MODULE.bazel": "6809765c14e3c766a9b9286c7b0ec56ed87a73326e48fe01749f0c0fdcfe3287", - "https://bcr.bazel.build/modules/bazel_lib/3.2.2/MODULE.bazel": "e2c890c8a515d6bca9c66d47718aa9e44b458fde64ec7204b8030bf2d349058c", - "https://bcr.bazel.build/modules/bazel_lib/3.3.1/MODULE.bazel": "732a0d516cf6400d9b3136e4356258aef1bf91de8d5240f87f0112f098920c1d", - "https://bcr.bazel.build/modules/bazel_lib/3.7.0/MODULE.bazel": "d7c10ed67f0f7f1fda179db8f86c22642581bd614882e1a50545fbe069525173", - "https://bcr.bazel.build/modules/bazel_lib/3.7.2/MODULE.bazel": "cbc920fff00a55b2fd663d40850560a6fb17fd5ef3a9f3d6cbf0d32908dd8a40", - "https://bcr.bazel.build/modules/bazel_lib/3.7.2/source.json": "7a9c2b06a113c4962d329bb68befdb90d0447788a19aabaa32b476a0458e7d28", - "https://bcr.bazel.build/modules/bazel_linux_packages/0.4.1/MODULE.bazel": "9bcd612b78aa98db07f01ca7edc3129148aced24d3726884bba1f321031e724d", - "https://bcr.bazel.build/modules/bazel_linux_packages/0.4.1/source.json": "f3bbbf0f046fbc692b5e00f317088c6163b1874213027f1047bf505a1b9c647b", - "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", - "https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e", - "https://bcr.bazel.build/modules/bazel_skylib/1.2.0/MODULE.bazel": "44fe84260e454ed94ad326352a698422dbe372b21a1ac9f3eab76eb531223686", - "https://bcr.bazel.build/modules/bazel_skylib/1.2.1/MODULE.bazel": "f35baf9da0efe45fa3da1696ae906eea3d615ad41e2e3def4aeb4e8bc0ef9a7a", - "https://bcr.bazel.build/modules/bazel_skylib/1.3.0/MODULE.bazel": "20228b92868bf5cfc41bda7afc8a8ba2a543201851de39d990ec957b513579c5", - "https://bcr.bazel.build/modules/bazel_skylib/1.4.0/MODULE.bazel": "2ab127ef8d56a739a99bb2ce00ec4c7d1ecc7977d4370c0ca6efd0d8f03d6d99", - "https://bcr.bazel.build/modules/bazel_skylib/1.4.1/MODULE.bazel": "a0dcb779424be33100dcae821e9e27e4f2901d9dfd5333efe5ac6a8d7ab75e1d", - "https://bcr.bazel.build/modules/bazel_skylib/1.4.2/MODULE.bazel": "3bd40978e7a1fac911d5989e6b09d8f64921865a45822d8b09e815eaa726a651", - "https://bcr.bazel.build/modules/bazel_skylib/1.5.0/MODULE.bazel": "32880f5e2945ce6a03d1fbd588e9198c0a959bb42297b2cfaf1685b7bc32e138", - "https://bcr.bazel.build/modules/bazel_skylib/1.6.1/MODULE.bazel": "8fdee2dbaace6c252131c00e1de4b165dc65af02ea278476187765e1a617b917", - "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/MODULE.bazel": "3120d80c5861aa616222ec015332e5f8d3171e062e3e804a2a0253e1be26e59b", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.0/MODULE.bazel": "2fb3fb53675f6adfc1ca5bfbd5cfb655ae350fba4706d924a8ec7e3ba945671c", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/MODULE.bazel": "88ade7293becda963e0e3ea33e7d54d3425127e0a326e0d17da085a5f1f03ff6", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.2/MODULE.bazel": "69ad6927098316848b34a9142bcc975e018ba27f08c4ff403f50c1b6e646ca67", - "https://bcr.bazel.build/modules/bazel_skylib/1.9.0/MODULE.bazel": "72997b29dfd95c3fa0d0c48322d05590418edef451f8db8db5509c57875fb4b7", - "https://bcr.bazel.build/modules/bazel_skylib/1.9.2/MODULE.bazel": "8c51259b0f4481475586dbfede7591e57b75702e637f840f6138eec80c34b270", - "https://bcr.bazel.build/modules/bazel_skylib/1.9.2/source.json": "41cbde7546542dee2f26e3f10bf1c4ac57909943194b7ac48cc5238a01893aa8", - "https://bcr.bazel.build/modules/bazel_worker_api/0.0.10/MODULE.bazel": "a426df551b40c3997c351d05f00f0d1f86b618ddb646012f1e9c72efce8ed939", - "https://bcr.bazel.build/modules/bazel_worker_api/0.0.11/MODULE.bazel": "fe09a8d3fb25c95414249f72cb0936201bf7e3c3f0e302175b2fc81e68bc6069", - "https://bcr.bazel.build/modules/bazel_worker_api/0.0.11/source.json": "7867c70965fccd202c57796de69fcbdf0555da34e3b09a14b06d74afb0f2f26d", - "https://bcr.bazel.build/modules/bazel_worker_java/0.0.11/MODULE.bazel": "1ee9e4c28ce455dbacdff8e007e133ea209e6f673a9e97cf20e99b161bc17548", - "https://bcr.bazel.build/modules/bazel_worker_java/0.0.11/source.json": "48b9b9c55f69cc360a54a712f47b889dd3d367ce2d45c3ccec242e9af86fe9cd", - "https://bcr.bazel.build/modules/bazelrc-preset.bzl/1.6.0/MODULE.bazel": "11bc946a2e1a9c1bea066e44a704091b482e6049164b75b2381e8419bf055cf1", - "https://bcr.bazel.build/modules/bazelrc-preset.bzl/1.6.0/source.json": "ad6cee6b42b5def78f6b3082c0bd7041a330003cbace330aaf1d3f94a122c48b", - "https://bcr.bazel.build/modules/boost.algorithm/1.87.0/MODULE.bazel": "d1c8f1466cc1a04a16eebeefe0f54a9508cc9f1a3c21d65d806acbc36593e204", - "https://bcr.bazel.build/modules/boost.algorithm/1.87.0/source.json": "9280ee3bfa6b9427aad20a450c33d74fabb93a69d81e201955098035a514f287", - "https://bcr.bazel.build/modules/boost.align/1.87.0/MODULE.bazel": "b9b08a94ac9db10fa17a58fc278a8c79fdb32c915de7a9133f6f01f6fe8887f7", - "https://bcr.bazel.build/modules/boost.align/1.87.0/source.json": "c41e1675e9686a3d82b130ccf496d5780fc4edf42ff2e91b2323fd05d3773e81", - "https://bcr.bazel.build/modules/boost.any/1.87.0/MODULE.bazel": "bd5e7c7abe254911ea9ee86877b2f9d72e5b01ba5e1d78224564d6919105e03a", - "https://bcr.bazel.build/modules/boost.any/1.87.0/source.json": "928d3773ee07be66fd2f1025cf63776bca9f80d7c57b705e994ed953cd17b6bb", - "https://bcr.bazel.build/modules/boost.array/1.87.0/MODULE.bazel": "beb11f5d659b17df58c07e039392edc9233e1be9565e5d4b1393fff9bf4457c4", - "https://bcr.bazel.build/modules/boost.array/1.87.0/source.json": "0583a9fd9d24a14e33b74b4342f94b4a4a3b539af11b0c12403a1a4da1f1548a", - "https://bcr.bazel.build/modules/boost.assert/1.87.0/MODULE.bazel": "8a950da6e19dd6d6427b95b1cfe1d2fc86eb598f6fb753345d925eb92d74a821", - "https://bcr.bazel.build/modules/boost.assert/1.87.0/source.json": "085a7c247d90bb4f8f5c3cc7eec1994f3d46d2a26af1947c85ff6f8ddd86ce59", - "https://bcr.bazel.build/modules/boost.atomic/1.87.0/MODULE.bazel": "7afe1354a8901637ba820edd6ec83a1602ba68f8af31d285d4704a1ec23a2fb6", - "https://bcr.bazel.build/modules/boost.atomic/1.87.0/source.json": "26badcfadd6846993f1ce2308da8af4f9477bc53587167229ec3cf0be4d2fdbf", - "https://bcr.bazel.build/modules/boost.bind/1.87.0/MODULE.bazel": "6d224cd013e45d15710476840fff34aa2da53389c3bfd252054e2efd893b0bf9", - "https://bcr.bazel.build/modules/boost.bind/1.87.0/source.json": "e93e696ab6140c1f07317357b04b4d0fcf0aefa61991b8fa8b65416d81677b44", - "https://bcr.bazel.build/modules/boost.chrono/1.87.0/MODULE.bazel": "ac035fc481cfaf6dd0b42c791938aa53d5ad7debba1a877c0169d1cc9deae874", - "https://bcr.bazel.build/modules/boost.chrono/1.87.0/source.json": "a050f84c8488008a3ac15550592259cbf90abf86ca31052f30f120f4e60de772", - "https://bcr.bazel.build/modules/boost.concept_check/1.87.0/MODULE.bazel": "6a935c9f5d739ad6d0401d1e5f71f4bfb538c66ccb1d3b8ac7a5a2b74bd207ff", - "https://bcr.bazel.build/modules/boost.concept_check/1.87.0/source.json": "45ffc4ae171c9b14bbe595e3d3e7d0a5065ceb18f949d1a2365d328ca89e1a1c", - "https://bcr.bazel.build/modules/boost.config/1.87.0/MODULE.bazel": "01da6517cb341d5abea9be54337bf85ba50132b3690a621f09be5890ecd12796", - "https://bcr.bazel.build/modules/boost.config/1.87.0/source.json": "9a00cd7c9afd6f58b349a806791c7aab040b1cd1a35464e59b79be724261a5ae", - "https://bcr.bazel.build/modules/boost.container/1.87.0/MODULE.bazel": "affb6e485eb13d3df0e9ee464f6a890175762526166da601a83f12d21b6c6950", - "https://bcr.bazel.build/modules/boost.container/1.87.0/source.json": "ddf180a658ad7743e081970719a184538945b9554be8278b55a67ba281ceede0", - "https://bcr.bazel.build/modules/boost.container_hash/1.87.0/MODULE.bazel": "a718ac13832c18ffc828f33e9cf8e566095d5ed8c80584bd1ad429c4ce91efa5", - "https://bcr.bazel.build/modules/boost.container_hash/1.87.0/source.json": "a7a90c4dfea2da1648ac530a838faebc093cbbaeab5e4f43a8532e5b76ff32d3", - "https://bcr.bazel.build/modules/boost.conversion/1.87.0/MODULE.bazel": "47bafdb6a14ec58feefe69a1367b537458563e0627e1986f377cc0b4e8ebd41e", - "https://bcr.bazel.build/modules/boost.conversion/1.87.0/source.json": "7aa865b11b0a699d15926eb87a21d17220d64265da3d280261a480b0d88b3dbb", - "https://bcr.bazel.build/modules/boost.core/1.87.0/MODULE.bazel": "33517eb46bb16f4b4f4a1bde61fe8b2475f45b5574bcd9f04c85f4bf3afe30d2", - "https://bcr.bazel.build/modules/boost.core/1.87.0/source.json": "9e2920b45c833a6a2cd42b16e17a5b97201bb73698a3902936cc90c1aa3de667", - "https://bcr.bazel.build/modules/boost.crc/1.87.0/MODULE.bazel": "99c5da72a920f6f8b86d2c2834ee132d39453e3d08892bf4ea231c6beeaac6c7", - "https://bcr.bazel.build/modules/boost.crc/1.87.0/source.json": "ca8e74014886ba5fa93808d59dd5541e1601994f000d05aca0c5f7920b63f8ed", - "https://bcr.bazel.build/modules/boost.describe/1.87.0/MODULE.bazel": "638752de4ad46348a7e3ac72910b699fde5a3c71d42fc69047d2aa8825411646", - "https://bcr.bazel.build/modules/boost.describe/1.87.0/source.json": "c260a5c38806ea88ce50b2d070484ae634941d2be7a1ddb0f959923ca8ef10d4", - "https://bcr.bazel.build/modules/boost.detail/1.87.0/MODULE.bazel": "64ed391c2b60b226263de4f486fad690414afc6a68d1a5e58eed70e4a63f2d80", - "https://bcr.bazel.build/modules/boost.detail/1.87.0/source.json": "dde910ab5e8ca18352cceaf4a922904b3de9ace042bf16f1a2015ca53776a568", - "https://bcr.bazel.build/modules/boost.dynamic_bitset/1.87.0/MODULE.bazel": "542b8afeb7534c248e9f28fdef589ba8a443d18c253a7ea06e283848bb06a237", - "https://bcr.bazel.build/modules/boost.dynamic_bitset/1.87.0/source.json": "5b15c2b7c3164175dd861bb7eba3af9d306858f267806743d0384ce32c51f404", - "https://bcr.bazel.build/modules/boost.exception/1.87.0/MODULE.bazel": "2bc7bfa2166bccb25c8b814ad8d5bf462448349ffd41e9541cfa7b849bd15ca8", - "https://bcr.bazel.build/modules/boost.exception/1.87.0/source.json": "987bb7df5cbf05e4c3349073fe889e33b8914ea9b9b0b5cf72bc742941343d8b", - "https://bcr.bazel.build/modules/boost.filesystem/1.87.0/MODULE.bazel": "a072d9c1d3f7dd251911224752998fa861eaaf0aee1911b1b3035cd0f290d154", - "https://bcr.bazel.build/modules/boost.filesystem/1.87.0/source.json": "3ceae891eb6db1970849731a0b84acbc6ac72fcfd351ca0267724d3f22ee71b6", - "https://bcr.bazel.build/modules/boost.function/1.87.0/MODULE.bazel": "d7ad93c26d0102b48cd6f781fcb68d16861fd6bf8772f784f034afabbabea391", - "https://bcr.bazel.build/modules/boost.function/1.87.0/source.json": "dd6765e2d9d902fc82da874f55061cf233a17affa66acb1641f478480b80d5d2", - "https://bcr.bazel.build/modules/boost.function_types/1.87.0/MODULE.bazel": "fed8aedff1fb01468a24e53a10793411330e36ebe29aeafaadeae00e25c20371", - "https://bcr.bazel.build/modules/boost.function_types/1.87.0/source.json": "c3a7fa0a172a109ae04a575eba033e133a38448005468dfddedab065d071dbbf", - "https://bcr.bazel.build/modules/boost.functional/1.87.0/MODULE.bazel": "5488597db90a4d8615505e9673806db23a98a4c73eadc16999478c7b1a6c1bc7", - "https://bcr.bazel.build/modules/boost.functional/1.87.0/source.json": "d39c98b1a9ae0a74da51ff049054fe6f77060d00c1768ea7eb6c629f3ac9eea5", - "https://bcr.bazel.build/modules/boost.fusion/1.87.0/MODULE.bazel": "2c28c212edcf35584dcf09089c51d6dcb2a01cf5d8d5c2b125dc91acb083a463", - "https://bcr.bazel.build/modules/boost.fusion/1.87.0/source.json": "35cb70a4a379e430e9efde27c9c2aa061791e9a1f693f7c85d2d4f1665ba2381", - "https://bcr.bazel.build/modules/boost.integer/1.87.0/MODULE.bazel": "2b862679c8595b6ecb3806ec5c7a1024c9e00fca94e5ee713d75ab022c6a7444", - "https://bcr.bazel.build/modules/boost.integer/1.87.0/source.json": "adce74ac44da997658d139f419f3c6a909fdc35d05566814c9c15e3ccb99fff6", - "https://bcr.bazel.build/modules/boost.intrusive/1.87.0/MODULE.bazel": "9dd904f7da54b7efa8476da8152e8cd60702e7b61bfae2689672f185458dc478", - "https://bcr.bazel.build/modules/boost.intrusive/1.87.0/source.json": "cc603911503905072f8596510bb6e95ce210a82564258d3fd319f9499f339cf6", - "https://bcr.bazel.build/modules/boost.io/1.87.0/MODULE.bazel": "30b1fbdc4a0463f727e2a78558550adf05c61e1fc209a6dcd35df03eaa4dafac", - "https://bcr.bazel.build/modules/boost.io/1.87.0/source.json": "b42dd52763c9bce54ed4a4c8ef48d560460f854bb53770f37c839180dba897e0", - "https://bcr.bazel.build/modules/boost.iostreams/1.87.0/MODULE.bazel": "c5cd8eb60e79c135185834e8727e1d1750cb6da2e6cb2c4d5f4b9418cd55ebe9", - "https://bcr.bazel.build/modules/boost.iostreams/1.87.0/source.json": "16dde1a58982ca8a2a63e710aacb149a6a85650acd227b83a3e3c3f90410a629", - "https://bcr.bazel.build/modules/boost.iterator/1.87.0/MODULE.bazel": "7e6ce23b059902c1709ba033dd1f4783b3de3f48ec4dc9f5e6ab82ddc699223e", - "https://bcr.bazel.build/modules/boost.iterator/1.87.0/source.json": "69d37225c6ffc3e8af0e7ea427ff51ccb04d84c6e7e361bbb8f1dc859b4412ea", - "https://bcr.bazel.build/modules/boost.lexical_cast/1.87.0/MODULE.bazel": "878478bbe6d3350cad171dd1b4558732dbee7021ab69e40a3c5bf9e59b37922c", - "https://bcr.bazel.build/modules/boost.lexical_cast/1.87.0/source.json": "80e0443943851508f2fa427c1c48b714690691c7022082ec65551dbe4680c82e", - "https://bcr.bazel.build/modules/boost.math/1.87.0/MODULE.bazel": "80f886ab97e394f8c106014a19a8c1de7a78b8fd7d5bfc89ac431896b26816b4", - "https://bcr.bazel.build/modules/boost.math/1.87.0/source.json": "8dd908b8e87cf8b2529b75e4571c4c772495f6e294ea7dc7fc36aeb8153ca1b9", - "https://bcr.bazel.build/modules/boost.move/1.87.0/MODULE.bazel": "5f26dacea41a8d617b6097219df961405c8a08a9315da14cefa8da15587a7fc5", - "https://bcr.bazel.build/modules/boost.move/1.87.0/source.json": "a95f9b258ddf918c3137c2b8d223b0b55cf9a17a52d4e19ccabfe650dcf118e3", - "https://bcr.bazel.build/modules/boost.mp11/1.87.0/MODULE.bazel": "af9644d2b668f3e014ac335a8a84ac74d9cb263454cd07cd5b84ce206f5dd81f", - "https://bcr.bazel.build/modules/boost.mp11/1.87.0/source.json": "fb17f9453d8e62a6425efccc3a827f29ddb4577aaffee68393c86bd21e517187", - "https://bcr.bazel.build/modules/boost.mpl/1.87.0/MODULE.bazel": "72eba3a8cc5711e15a852829d00482abbf7869ed2ee6f598b8f295261f3e5496", - "https://bcr.bazel.build/modules/boost.mpl/1.87.0/source.json": "81a99487d926f8a26dd5d80662e14baa0a6842b81a2a47f3f529064d0a36f36f", - "https://bcr.bazel.build/modules/boost.numeric_conversion/1.87.0/MODULE.bazel": "0164792509fbf8e6374eeb94a8e84ba8aa5e939620266177a112eac118e67f7c", - "https://bcr.bazel.build/modules/boost.numeric_conversion/1.87.0/source.json": "b19fe476ce051ee4b127f78b2ee4fcec917f60e2f0a06a26528c5666b355d623", - "https://bcr.bazel.build/modules/boost.optional/1.87.0/MODULE.bazel": "a12ca5b2394521bd60e432c9a98623d5a33edf9f7f891fb26c5d0840fb6b182e", - "https://bcr.bazel.build/modules/boost.optional/1.87.0/source.json": "38de88d9d67d2c7673a2c3a817a578c2ead946a11ae111f24f71859b401b0656", - "https://bcr.bazel.build/modules/boost.predef/1.87.0/MODULE.bazel": "4bb0cc9a326ea8ffde86044c2dbdf08b75d5e8fe7e4ea8c399b058262680a890", - "https://bcr.bazel.build/modules/boost.predef/1.87.0/source.json": "421162e76f175a64d22296b9cf3272441324fa994766acffd367182a777ad092", - "https://bcr.bazel.build/modules/boost.preprocessor/1.87.0/MODULE.bazel": "fdbcce15c585de47e4a5e9f6e2b9aa87f690a87e205eded400c5590f7e64535a", - "https://bcr.bazel.build/modules/boost.preprocessor/1.87.0/source.json": "ef9b9006890126f5880bb51ccbe8a97a95baf21606e2f30acdb1c30c0dd79758", - "https://bcr.bazel.build/modules/boost.program_options/1.87.0/MODULE.bazel": "186e44a5e01b9dedc91420141fba5b31cb73d04f374a6387f80ab53d725faafc", - "https://bcr.bazel.build/modules/boost.program_options/1.87.0/source.json": "53dacc9541ab7e68796c86cacb4d395b9a758a2a2fb2778f67ca5dcd1ef990e0", - "https://bcr.bazel.build/modules/boost.random/1.87.0/MODULE.bazel": "4e145cf085222598574e08e328867995b38d520f763d02a44f13cc0074762139", - "https://bcr.bazel.build/modules/boost.random/1.87.0/source.json": "d5ae4fbacf288a7b14984f2abddc87d9b98b3d6bb863ddf9e9a58b189bd18a5c", - "https://bcr.bazel.build/modules/boost.range/1.87.0/MODULE.bazel": "b1604553c080ca8620fb8e16267b397d4345986acae9ddd8277f36ad87236b60", - "https://bcr.bazel.build/modules/boost.range/1.87.0/source.json": "3477215270d2295f882b0b127347fddf69aecdb7cd77ba315e55199c36208661", - "https://bcr.bazel.build/modules/boost.ratio/1.87.0/MODULE.bazel": "c5a3695cd1bbb22d6a00a6df2c857be1f52f64f36fa3a89bd6835de94485fa60", - "https://bcr.bazel.build/modules/boost.ratio/1.87.0/source.json": "86662c1c2dd510741c8838c43b53a685183fd7ca793d04a8660f0d3f68317005", - "https://bcr.bazel.build/modules/boost.rational/1.87.0/MODULE.bazel": "421044b95b2db3ca1ae3a93ba12e235db938c9786c3a209a2b50754c3c0a07d7", - "https://bcr.bazel.build/modules/boost.rational/1.87.0/source.json": "876156ee5dacf41912b6f3516160ab70b07ee974321ec141f58f6caf99999630", - "https://bcr.bazel.build/modules/boost.regex/1.87.0/MODULE.bazel": "b91f176af90ce5ad96c8be6f83c4fb253fc8b391055e23a349f35e76e679e302", - "https://bcr.bazel.build/modules/boost.regex/1.87.0/source.json": "a887e4a0ac22ae2eb6203bbfbc2b6a9581edc1d65af0a8c392b30327a7688432", - "https://bcr.bazel.build/modules/boost.scope/1.87.0/MODULE.bazel": "7b2bbfc85dd0f19652bb08c4087ce1c09d766584d77d85d03ecea23f468bfe51", - "https://bcr.bazel.build/modules/boost.scope/1.87.0/source.json": "3ae2809ee428900a2941be74c9351a41b1c357aecd557fe1eff8df726a337492", - "https://bcr.bazel.build/modules/boost.smart_ptr/1.87.0/MODULE.bazel": "a2a2b804d33fd47e37b33bb0b47a66b07aab616c12083654f4d9b92ab1308470", - "https://bcr.bazel.build/modules/boost.smart_ptr/1.87.0/source.json": "ff2c2bc2620fd9f404ea1937f38c1776a6b88ae17516c440eda88366fbd14c91", - "https://bcr.bazel.build/modules/boost.static_assert/1.87.0/MODULE.bazel": "06e7170d6e4ec08d6a4a83d1f0bce3f7fdacd89e4dcaa93d508f971e4e363d4f", - "https://bcr.bazel.build/modules/boost.static_assert/1.87.0/source.json": "d5b3f81fba6382b83885ff2dfaef07a5788323ed82d472d2fd629fcbba04ec7a", - "https://bcr.bazel.build/modules/boost.system/1.87.0/MODULE.bazel": "fe98a0cf5cd04613f81b2b4338ccf22d75f4049875c294a35c0949c3c6e8cbc1", - "https://bcr.bazel.build/modules/boost.system/1.87.0/source.json": "470c81ca91d728f1410def4849789a329da81a9080acdca6e1dace58e30728bb", - "https://bcr.bazel.build/modules/boost.test/1.87.0/MODULE.bazel": "c4178121303e784ff5e783a4eee3bc71c6808796b9d0eee15e371127d6b38faf", - "https://bcr.bazel.build/modules/boost.test/1.87.0/source.json": "0bf69689bfc6bc71f7678907237d5c6056cd26d29d3c502962e106bd0cb01dbd", - "https://bcr.bazel.build/modules/boost.throw_exception/1.87.0/MODULE.bazel": "d02c1799ff6bc1bd0a9e7f149ac35a4851c89156be7d81805df9238d52047f02", - "https://bcr.bazel.build/modules/boost.throw_exception/1.87.0/source.json": "b52fb8b064d825ebb7047a72cf2c101a047dc60c1d0a89829b7ed8e39ff4fe6a", - "https://bcr.bazel.build/modules/boost.timer/1.87.0/MODULE.bazel": "ef942e1d3c04a65215e0bbddfeb60be5bf2f6d7c70a2563db7438713a5fe900e", - "https://bcr.bazel.build/modules/boost.timer/1.87.0/source.json": "1fee39edf29aa2e4777e9777c981faef4042d1c3687af45e1c829fc973444bf7", - "https://bcr.bazel.build/modules/boost.tokenizer/1.87.0/MODULE.bazel": "48ecacd7bf0fcb7cbf27b55a7d6bf82b988f308666bda2d51840450ea6d62401", - "https://bcr.bazel.build/modules/boost.tokenizer/1.87.0/source.json": "c39ec91706ad8eeab142528eac47737b6fc314b952ffdb9578ab95e5f3c690b4", - "https://bcr.bazel.build/modules/boost.tuple/1.87.0/MODULE.bazel": "94a17666a0d0e875a346b4e8db75ec05e3a1c9c7a681ac5eca80c18e68b5d547", - "https://bcr.bazel.build/modules/boost.tuple/1.87.0/source.json": "5f42023d26b3abefc034817a535d3d0ab06712f4740a93aa4e247287fba1cb47", - "https://bcr.bazel.build/modules/boost.type_index/1.87.0/MODULE.bazel": "a871d18870b21f00c89ba8dd469e027cd697363a9f3dd525176d91e837b8bb38", - "https://bcr.bazel.build/modules/boost.type_index/1.87.0/source.json": "fe14f80f9a857b92af204396d0e81bf57751113e37a77586b9610a7894407092", - "https://bcr.bazel.build/modules/boost.type_traits/1.87.0/MODULE.bazel": "8d2d44e992e85a59b6bd13b145ae27736d932a29e5aec743a0cfd014af5aee27", - "https://bcr.bazel.build/modules/boost.type_traits/1.87.0/source.json": "fd7434b8e36d19a1c8e9349e041ceaf19d0b98e90b6d4c7b86249735907cea34", - "https://bcr.bazel.build/modules/boost.typeof/1.87.0/MODULE.bazel": "c3cd122b8745c835229c58df8c46e81b944996b4bd3822f947873cb617374dd8", - "https://bcr.bazel.build/modules/boost.typeof/1.87.0/source.json": "ba36c7ce360efd31bf7ab5c1503b785de5c8db673056067ff8c7e3e94efccb68", - "https://bcr.bazel.build/modules/boost.unordered/1.87.0/MODULE.bazel": "bfee6daa324bb37c618fc073c50a0754985b9538e13de0e873381d41d634168c", - "https://bcr.bazel.build/modules/boost.unordered/1.87.0/source.json": "3b237fcd1dda18408dbdcb06984e50a13f0688fd0dca480a552f1ff37a6f50b5", - "https://bcr.bazel.build/modules/boost.utility/1.87.0/MODULE.bazel": "8ab710d4feac76acba004a1cac6d64823c812bfeefea18fb7b1a907c86a9ecf6", - "https://bcr.bazel.build/modules/boost.utility/1.87.0/source.json": "ab5744c8cc722dd83c96ae672e01010b944ad4e864e445de66f78164152a7a23", - "https://bcr.bazel.build/modules/boost.variant2/1.87.0/MODULE.bazel": "c0d8e1d486e3080200b74af21f50e4993b0d6dc649ae5700e42fc1d74e1f72b8", - "https://bcr.bazel.build/modules/boost.variant2/1.87.0/source.json": "d57a8992e410f6def5c2e876e53bb21d7907a0df1b9608f59ff90113a4879e67", - "https://bcr.bazel.build/modules/boost.winapi/1.87.0/MODULE.bazel": "b36870b9f3ebe56c1dadd0507fb6ee6b5a59e13c5c0b784baaa509722bd0ffba", - "https://bcr.bazel.build/modules/boost.winapi/1.87.0/source.json": "8e363a11b36f5f78b4d00a4543a8b181313d78abdcc5dec6e438a5c4b2fd2a7e", - "https://bcr.bazel.build/modules/buildozer/8.5.1/MODULE.bazel": "a35d9561b3fc5b18797c330793e99e3b834a473d5fbd3d7d7634aafc9bdb6f8f", - "https://bcr.bazel.build/modules/buildozer/8.5.1/source.json": "e3386e6ff4529f2442800dee47ad28d3e6487f36a1f75ae39ae56c70f0cd2fbd", - "https://bcr.bazel.build/modules/bzip2/1.0.8.bcr.2/MODULE.bazel": "43b570f55b7479bfa7c6675b227ccc3155d56377bb7782f178b2d1733196a435", - "https://bcr.bazel.build/modules/bzip2/1.0.8.bcr.3/MODULE.bazel": "29ecf4babfd3c762be00d7573c288c083672ab60e79c833ff7f49ee662e54471", - "https://bcr.bazel.build/modules/bzip2/1.0.8.bcr.3/source.json": "8be4a3ef2599693f759e5c0990a4cc5a246ac08db4c900a38f852ba25b5c39be", - "https://bcr.bazel.build/modules/elfutils/0.195/MODULE.bazel": "e76f1f423235a390e29c649f266a960a7563270cbffac9cdfb02136d449fc161", - "https://bcr.bazel.build/modules/elfutils/0.195/source.json": "3375293960b28396fc6e403ceebae20cca34537de22e1ad2acf586c3b8780c9f", - "https://bcr.bazel.build/modules/fmt/12.2.0.bcr.1/MODULE.bazel": "1f391c93affc305e3d32fa24024f132e465fcdeec3d39adfb01e7f3869b993a7", - "https://bcr.bazel.build/modules/fmt/12.2.0.bcr.1/source.json": "5a817473cfdd07162adbf555a3cd5c8a798f1f751b87a13a3464dc6d9370b0f3", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.1/MODULE.bazel": "cdf8cbe5ee750db04b78878c9633cc76e80dcf4416cbe982ac3a9222f80713c8", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.3/MODULE.bazel": "f1b7bb2dd53e8f2ef984b39485ec8a44e9076dda5c4b8efd2fb4c6a6e856a31d", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.7/MODULE.bazel": "1e5e03c383fa64ebbe0942a225c32168fd6ef6b270351bbec481d47d19d1b96d", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.7/source.json": "34a83d58ae2f1ef6731d1fc8a1b6f07825741aff3f5993b67b67ec21d2c2946e", - "https://bcr.bazel.build/modules/gazelle/0.32.0/MODULE.bazel": "b499f58a5d0d3537f3cf5b76d8ada18242f64ec474d8391247438bf04f58c7b8", - "https://bcr.bazel.build/modules/gazelle/0.33.0/MODULE.bazel": "a13a0f279b462b784fb8dd52a4074526c4a2afe70e114c7d09066097a46b3350", - "https://bcr.bazel.build/modules/gazelle/0.34.0/MODULE.bazel": "abdd8ce4d70978933209db92e436deb3a8b737859e9354fb5fd11fb5c2004c8a", - "https://bcr.bazel.build/modules/gazelle/0.36.0/MODULE.bazel": "e375d5d6e9a6ca59b0cb38b0540bc9a05b6aa926d322f2de268ad267a2ee74c0", - "https://bcr.bazel.build/modules/gazelle/0.47.0/MODULE.bazel": "b61bb007c4efad134aa30ee7f4a8e2a39b22aa5685f005edaa022fbd1de43ebc", - "https://bcr.bazel.build/modules/gazelle/0.51.3/MODULE.bazel": "618a729142f66de1e2cb776d026413763be5b80d5e3d29ffb9d3d90c5defde90", - "https://bcr.bazel.build/modules/gazelle/0.54.0/MODULE.bazel": "10620287bdf57c55c2321ed5a387ade11c7187aba444fdec583c9f21c3263f45", - "https://bcr.bazel.build/modules/gazelle/0.54.0/source.json": "6c9639ac87508c7edea37bd9d5380581c96defde056ca26518d201a8816805e4", - "https://bcr.bazel.build/modules/gcc_toolchain/0.13.0/MODULE.bazel": "8912be8684729c2814e922aa3555d163d1c6e7dbf620e72753fe44f3761250e4", - "https://bcr.bazel.build/modules/gcc_toolchain/0.13.0/source.json": "41e8693ad56244dde548f7711126deda72eeff630f66f5e2d8403227d4a78097", - "https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb", - "https://bcr.bazel.build/modules/google_benchmark/1.9.5/MODULE.bazel": "8a85cfd90b1e45e6e68f1aa2aa9efce3c04add57df732571d7fd54c07e7c5143", - "https://bcr.bazel.build/modules/google_benchmark/1.9.5/source.json": "0bd357fd9db30ee31d5eb4c78b1086ce3d79b4423ce76de19e8a2fa7b2fa2e10", - "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", - "https://bcr.bazel.build/modules/googletest/1.14.0/MODULE.bazel": "cfbcbf3e6eac06ef9d85900f64424708cc08687d1b527f0ef65aa7517af8118f", - "https://bcr.bazel.build/modules/googletest/1.15.2/MODULE.bazel": "6de1edc1d26cafb0ea1a6ab3f4d4192d91a312fd2d360b63adaa213cd00b2108", - "https://bcr.bazel.build/modules/googletest/1.17.0/MODULE.bazel": "dbec758171594a705933a29fcf69293d2468c49ec1f2ebca65c36f504d72df46", - "https://bcr.bazel.build/modules/googletest/1.17.0/source.json": "38e4454b25fc30f15439c0378e57909ab1fd0a443158aa35aec685da727cd713", - "https://bcr.bazel.build/modules/hermetic_launcher/0.0.17/MODULE.bazel": "afa67883ae04001c93578f80c39e5ec9231ae670978bc380778baf66e1936ad5", - "https://bcr.bazel.build/modules/hermetic_launcher/0.0.17/source.json": "46ee01ccb275e46f59a3c070f91be52eb113405efe577a99365dd69f168713ef", - "https://bcr.bazel.build/modules/jq.bzl/0.1.0/MODULE.bazel": "2ce69b1af49952cd4121a9c3055faa679e748ce774c7f1fda9657f936cae902f", - "https://bcr.bazel.build/modules/jq.bzl/0.4.0/MODULE.bazel": "a7b39b37589f2b0dad53fd6c1ccaabbdb290330caa920d7ef3e6aad068cd4ab2", - "https://bcr.bazel.build/modules/jq.bzl/0.4.0/source.json": "52ec7530c4618e03f634b30ff719814a68d7d39c235938b7aa2abbfe1eb1c52c", - "https://bcr.bazel.build/modules/jsoncpp/1.9.6.bcr.2/MODULE.bazel": "64f508885f907ac2518039b3d0c5c1703a8f6137d9f5d635067ba93d33c2670a", - "https://bcr.bazel.build/modules/jsoncpp/1.9.6.bcr.2/source.json": "13199fa0a267ca46814e9e6ab313a71890c8f1822e57376fdc23a2d2cd384051", - "https://bcr.bazel.build/modules/libpfm/4.11.0.bcr.1/MODULE.bazel": "e5362dadc90aab6724c83a2cc1e67cbed9c89a05d97fb1f90053c8deb1e445c8", - "https://bcr.bazel.build/modules/libpfm/4.11.0.bcr.1/source.json": "0646414d9037f8aad148781dd760bec90b0b25ac12fda5e03f8aadbd6b9c61e6", - "https://bcr.bazel.build/modules/libpfm/4.11.0/MODULE.bazel": "45061ff025b301940f1e30d2c16bea596c25b176c8b6b3087e92615adbd52902", - "https://bcr.bazel.build/modules/libxml2/2.15.3/MODULE.bazel": "a6bffafd8aa8b0c13eaa4bf25d55be188ec8548549395f03e98c39bab264adaa", - "https://bcr.bazel.build/modules/libxml2/2.15.4/MODULE.bazel": "8d0bca5635a3ba19dddd0fcf0578b032f3c127f597e7f6b24cec3462bf10b824", - "https://bcr.bazel.build/modules/libxml2/2.15.4/source.json": "8495e801060e7d4edb558fa1f02ccdbc4653e572e83103b4d723c9b80bfb53b6", - "https://bcr.bazel.build/modules/llvm/0.8.26/MODULE.bazel": "633a1076b1f20d4e6be387fa22f0b99a1b7e7d94d07b60a70c67f4f91f369423", - "https://bcr.bazel.build/modules/llvm/0.8.26/source.json": "2d6d463638dfec25acfcc8cefc56f8ad8fb215b7b1e699b3c2840590ce328fc1", - "https://bcr.bazel.build/modules/lua/5.4.6.bcr.1/MODULE.bazel": "8e3b950c34f8963eb57cca78fa4d37d81bc703aca155a9ca659f2643d38b8e94", - "https://bcr.bazel.build/modules/lua/5.4.6.bcr.1/source.json": "5b09c069b5837ba333df2aaa9f82ab987365f07b0845d4d1029216e23f3721cf", - "https://bcr.bazel.build/modules/mimalloc/3.5.3/MODULE.bazel": "d4555726ceff5240bef25b0ec38b1c80c68337eec2b4b5df20cf611df1383e6a", - "https://bcr.bazel.build/modules/mimalloc/3.5.3/source.json": "e94e4baf53f881236b86b16c436c6ab4a338b37135e370154802a7111c0dda28", - "https://bcr.bazel.build/modules/nlohmann_json/3.12.0.bcr.1/MODULE.bazel": "a1c8bb07b5b91d971727c635f449d05623ac9608f6fe4f5f04254ea12f08e349", - "https://bcr.bazel.build/modules/nlohmann_json/3.12.0.bcr.1/source.json": "93f82a5ae985eb935c539bfee95e04767187818189241ac956f3ccadbdb8fb02", - "https://bcr.bazel.build/modules/package_metadata/0.0.13/MODULE.bazel": "a9cc7e81640c1e7eaca5a465cdf4b63c88d416ca998fcded3680181b1602eee2", - "https://bcr.bazel.build/modules/package_metadata/0.0.13/source.json": "f488e4534468eac223f6417dfdf8d3b7299166d36536408d37c2493ca1e8539d", - "https://bcr.bazel.build/modules/package_metadata/0.0.2/MODULE.bazel": "fb8d25550742674d63d7b250063d4580ca530499f045d70748b1b142081ebb92", - "https://bcr.bazel.build/modules/package_metadata/0.0.3/MODULE.bazel": "77890552ecea9e284b5424c9de827a58099348763a4359e975c359a83d4faa83", - "https://bcr.bazel.build/modules/package_metadata/0.0.5/MODULE.bazel": "ef4f9439e3270fdd6b9fd4dbc3d2f29d13888e44c529a1b243f7a31dfbc2e8e4", - "https://bcr.bazel.build/modules/package_metadata/0.0.6/MODULE.bazel": "341dab6f417197494517d54c8e557c0baee1de7aec83543a4fbefe57900acb7e", - "https://bcr.bazel.build/modules/package_metadata/0.0.7/MODULE.bazel": "7adb03933fc8401f495800cf4eafcff0edc6da0ff55c7db223ef69d19f689486", - "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5", - "https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f", - "https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee", - "https://bcr.bazel.build/modules/platforms/0.0.5/MODULE.bazel": "5733b54ea419d5eaf7997054bb55f6a1d0b5ff8aedf0176fef9eea44f3acda37", - "https://bcr.bazel.build/modules/platforms/0.0.6/MODULE.bazel": "ad6eeef431dc52aefd2d77ed20a4b353f8ebf0f4ecdd26a807d2da5aa8cd0615", - "https://bcr.bazel.build/modules/platforms/0.0.7/MODULE.bazel": "72fd4a0ede9ee5c021f6a8dd92b503e089f46c227ba2813ff183b71616034814", - "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", - "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", - "https://bcr.bazel.build/modules/platforms/1.0.0/MODULE.bazel": "f05feb42b48f1b3c225e4ccf351f367be0371411a803198ec34a389fb22aa580", - "https://bcr.bazel.build/modules/platforms/1.1.0/MODULE.bazel": "1c0c09f5bdcf4b3f924720d2478a3711cb39f4977019ca5988685e5b7e18b3d2", - "https://bcr.bazel.build/modules/platforms/1.1.0/source.json": "fcf351c47596c939140ab0d333dfdd08ed1ea6ce33c2fe70c12493a301cf1344", - "https://bcr.bazel.build/modules/protobuf/36.2/MODULE.bazel": "7c2b9060f7770778a606e2147e69a17465e2a08c61bfb337eaf2da61aaf62b5f", - "https://bcr.bazel.build/modules/protobuf/36.2/source.json": "f9167721eeaa0f65b255aa30f1eb7d7655617d8d63823c3c48521159cf67672f", - "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1/MODULE.bazel": "88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e", - "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/MODULE.bazel": "e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34", - "https://bcr.bazel.build/modules/pybind11_bazel/3.0.0/MODULE.bazel": "a2bfa6020ed603a00d944161c63173c7f109774e99bee0c2cd8dbf24159f8134", - "https://bcr.bazel.build/modules/pybind11_bazel/3.0.0/source.json": "d8f5104d4c21d272bf327ebe44366fb0b4c036cdaa1f5cceb21a408ca4ef2ef8", - "https://bcr.bazel.build/modules/re2/2023-09-01/MODULE.bazel": "cb3d511531b16cfc78a225a9e2136007a48cf8a677e4264baeab57fe78a80206", - "https://bcr.bazel.build/modules/re2/2024-07-02.bcr.1/MODULE.bazel": "b4963dda9b31080be1905ef085ecd7dd6cd47c05c79b9cdf83ade83ab2ab271a", - "https://bcr.bazel.build/modules/re2/2024-07-02/MODULE.bazel": "0eadc4395959969297cbcf31a249ff457f2f1d456228c67719480205aa306daa", - "https://bcr.bazel.build/modules/re2/2025-11-05.bcr.1/MODULE.bazel": "3d9d4995833fc0334fc5c88b56a05288dd25d651544cd7b2233bbd6357bbeba0", - "https://bcr.bazel.build/modules/re2/2025-11-05.bcr.1/source.json": "7df1394aabda1c9bc188a302f5d54b1c657924edd04ebc57d2be29dbd7efd141", - "https://bcr.bazel.build/modules/rules_android/0.8.0/MODULE.bazel": "92961a7a1218694a31fa748eba164db2721f5c42f2d7ed3325c52b19d00ae2f5", - "https://bcr.bazel.build/modules/rules_android/0.8.0/source.json": "efec84c34a78d0b6a23b7a07d51e810942428a5b980857284806d0a59762591f", - "https://bcr.bazel.build/modules/rules_apple/4.1.0/MODULE.bazel": "76e10fd4a48038d3fc7c5dc6e63b7063bbf5304a2e3bd42edda6ec660eebea68", - "https://bcr.bazel.build/modules/rules_apple/5.2.0/MODULE.bazel": "9b46da6889ba44e1b61dda2b4456f69606064cf38a95c1aacab5ae408f2aa735", - "https://bcr.bazel.build/modules/rules_apple/5.4.0/MODULE.bazel": "35332c590fdb8e03f208e200b6077856b2504ef8fd52aebca729d1a4e2ced010", - "https://bcr.bazel.build/modules/rules_apple/5.4.0/source.json": "7dd022593cf2800dc16c7e581a0fc45743f0e6c7ea52bbf125bc42f0295657ba", - "https://bcr.bazel.build/modules/rules_batch/0.1.1/MODULE.bazel": "d86a3773a3aed23878baaf7263917ea7dd71d2100934e989d2f303246389fdcb", - "https://bcr.bazel.build/modules/rules_batch/0.1.1/source.json": "7280584357144d887d386f436ea0e8f9629a68d6396458f65f5fb4e49d8a185d", - "https://bcr.bazel.build/modules/rules_cc/0.0.1/MODULE.bazel": "cb2aa0747f84c6c3a78dad4e2049c154f08ab9d166b1273835a8174940365647", - "https://bcr.bazel.build/modules/rules_cc/0.0.10/MODULE.bazel": "ec1705118f7eaedd6e118508d3d26deba2a4e76476ada7e0e3965211be012002", - "https://bcr.bazel.build/modules/rules_cc/0.0.15/MODULE.bazel": "6704c35f7b4a72502ee81f61bf88706b54f06b3cbe5558ac17e2e14666cd5dcc", - "https://bcr.bazel.build/modules/rules_cc/0.0.17/MODULE.bazel": "2ae1d8f4238ec67d7185d8861cb0a2cdf4bc608697c331b95bf990e69b62e64a", - "https://bcr.bazel.build/modules/rules_cc/0.0.2/MODULE.bazel": "6915987c90970493ab97393024c156ea8fb9f3bea953b2f3ec05c34f19b5695c", - "https://bcr.bazel.build/modules/rules_cc/0.0.6/MODULE.bazel": "abf360251023dfe3efcef65ab9d56beefa8394d4176dd29529750e1c57eaa33f", - "https://bcr.bazel.build/modules/rules_cc/0.0.8/MODULE.bazel": "964c85c82cfeb6f3855e6a07054fdb159aced38e99a5eecf7bce9d53990afa3e", - "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel": "836e76439f354b89afe6a911a7adf59a6b2518fafb174483ad78a2a2fde7b1c5", - "https://bcr.bazel.build/modules/rules_cc/0.1.1/MODULE.bazel": "2f0222a6f229f0bf44cd711dc13c858dad98c62d52bd51d8fc3a764a83125513", - "https://bcr.bazel.build/modules/rules_cc/0.1.2/MODULE.bazel": "557ddc3a96858ec0d465a87c0a931054d7dcfd6583af2c7ed3baf494407fd8d0", - "https://bcr.bazel.build/modules/rules_cc/0.1.5/MODULE.bazel": "88dfc9361e8b5ae1008ac38f7cdfd45ad738e4fa676a3ad67d19204f045a1fd8", - "https://bcr.bazel.build/modules/rules_cc/0.2.0/MODULE.bazel": "b5c17f90458caae90d2ccd114c81970062946f49f355610ed89bebf954f5783c", - "https://bcr.bazel.build/modules/rules_cc/0.2.13/MODULE.bazel": "eecdd666eda6be16a8d9dc15e44b5c75133405e820f620a234acc4b1fdc5aa37", - "https://bcr.bazel.build/modules/rules_cc/0.2.14/MODULE.bazel": "353c99ed148887ee89c54a17d4100ae7e7e436593d104b668476019023b58df8", - "https://bcr.bazel.build/modules/rules_cc/0.2.15/MODULE.bazel": "6a0a4a75a57aa6dc888300d848053a58c6b12a29f89d4304e1c41448514ec6e8", - "https://bcr.bazel.build/modules/rules_cc/0.2.16/MODULE.bazel": "9242fa89f950c6ef7702801ab53922e99c69b02310c39fb6e62b2bd30df2a1d4", - "https://bcr.bazel.build/modules/rules_cc/0.2.17/MODULE.bazel": "1849602c86cb60da8613d2de887f9566a6d354a6df6d7009f9d04a14402f9a84", - "https://bcr.bazel.build/modules/rules_cc/0.2.18/MODULE.bazel": "4460ec36adc8f722a6a2a4ac9374cb91f2acebadaa93fc37966129afb3dece87", - "https://bcr.bazel.build/modules/rules_cc/0.2.20/MODULE.bazel": "f5c07bce5ddcb99be21a0812ff5aadb439e688b7449c6542152363b2fd859c1a", - "https://bcr.bazel.build/modules/rules_cc/0.2.25/MODULE.bazel": "4a3d4f3606d3b3190be495dbc497acca552807d1d5540661ef0d1658472882e3", - "https://bcr.bazel.build/modules/rules_cc/0.2.26/MODULE.bazel": "a9f7b7f4a52747910965bddb1f58fc1fef50604ed1980ebdd16ea6f446d92249", - "https://bcr.bazel.build/modules/rules_cc/0.2.27/MODULE.bazel": "99483699eeba3ec1159e938d724134762e748e8dc16dd0d8cbcc3d01a3d19440", - "https://bcr.bazel.build/modules/rules_cc/0.2.27/source.json": "a1e5e45c8a56ec19fadf109ef34abb06979982badf55a504d3f82a1258d83e3f", - "https://bcr.bazel.build/modules/rules_cc/0.2.4/MODULE.bazel": "1ff1223dfd24f3ecf8f028446d4a27608aa43c3f41e346d22838a4223980b8cc", - "https://bcr.bazel.build/modules/rules_cc/0.2.8/MODULE.bazel": "f1df20f0bf22c28192a794f29b501ee2018fa37a3862a1a2132ae2940a23a642", - "https://bcr.bazel.build/modules/rules_cc/0.2.9/MODULE.bazel": "34263f1dca62ea664265438cef714d7db124c03e1ed55ebb4f1dc860164308d1", - "https://bcr.bazel.build/modules/rules_dart/0.8.1/MODULE.bazel": "33619834fd31d962818d096d9a39195a8c656752e0734237e159254df9b3dc79", - "https://bcr.bazel.build/modules/rules_dart/0.8.1/source.json": "ef64102b1100ed61c1eb00e11ee049265523d8469d624e7e8a4484cac55a321f", - "https://bcr.bazel.build/modules/rules_flutter/0.0.8/MODULE.bazel": "8066f31443a0dcc2b198ce64149d60569f13cb2b497e94095c3a16420bd0ac9d", - "https://bcr.bazel.build/modules/rules_flutter/0.0.8/source.json": "c932c3f0d3e84b433e914e9057c5188b32539f6fe68f620699081a7c40e8dc0e", - "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", - "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel": "55861d8e8bb0e62cbd2896f60ff303f62ffcb0eddb74ecb0e5c0cbe36fc292c8", - "https://bcr.bazel.build/modules/rules_go/0.42.0/MODULE.bazel": "8cfa875b9aa8c6fce2b2e5925e73c1388173ea3c32a0db4d2b4804b453c14270", - "https://bcr.bazel.build/modules/rules_go/0.46.0/MODULE.bazel": "3477df8bdcc49e698b9d25f734c4f3a9f5931ff34ee48a2c662be168f5f2d3fd", - "https://bcr.bazel.build/modules/rules_go/0.53.0/MODULE.bazel": "a4ed760d3ac0dbc0d7b967631a9a3fd9100d28f7d9fcf214b4df87d4bfff5f9a", - "https://bcr.bazel.build/modules/rules_go/0.59.0/MODULE.bazel": "b7e43e7414a3139a7547d1b4909b29085fbe5182b6c58cbe1ed4c6272815aeae", - "https://bcr.bazel.build/modules/rules_go/0.62.0/MODULE.bazel": "8ee616065c3d2b2f7ac0880108316ce8d0c332b3a30aad24e95c0bc124ec853e", - "https://bcr.bazel.build/modules/rules_go/0.64.2/MODULE.bazel": "178287400ec88bc4e20c048b5cf9b8e619d9879eb6118592f8572e49d5342c74", - "https://bcr.bazel.build/modules/rules_go/0.65.0/MODULE.bazel": "9aedb8cc7186d99881b438b545334e6c8ea38619a43b79b4240d1181d5e88abe", - "https://bcr.bazel.build/modules/rules_go/0.65.0/source.json": "36eb4ae1387d5f910968c277de3f8d91627c7b3a321f3b3de166ea7014fd00f3", - "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", - "https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86", - "https://bcr.bazel.build/modules/rules_java/6.0.0/MODULE.bazel": "8a43b7df601a7ec1af61d79345c17b31ea1fedc6711fd4abfd013ea612978e39", - "https://bcr.bazel.build/modules/rules_java/6.3.0/MODULE.bazel": "a97c7678c19f236a956ad260d59c86e10a463badb7eb2eda787490f4c969b963", - "https://bcr.bazel.build/modules/rules_java/7.12.2/MODULE.bazel": "579c505165ee757a4280ef83cda0150eea193eed3bef50b1004ba88b99da6de6", - "https://bcr.bazel.build/modules/rules_java/7.3.2/MODULE.bazel": "50dece891cfdf1741ea230d001aa9c14398062f2b7c066470accace78e412bc2", - "https://bcr.bazel.build/modules/rules_java/7.4.0/MODULE.bazel": "a592852f8a3dd539e82ee6542013bf2cadfc4c6946be8941e189d224500a8934", - "https://bcr.bazel.build/modules/rules_java/7.6.0/MODULE.bazel": "14cd36d05b60aa53c345b5b436c1c4a1f1dec58e82e480ffb9657038e323d330", - "https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe", - "https://bcr.bazel.build/modules/rules_java/8.6.0/MODULE.bazel": "9c064c434606d75a086f15ade5edb514308cccd1544c2b2a89bbac4310e41c71", - "https://bcr.bazel.build/modules/rules_java/8.6.1/MODULE.bazel": "f4808e2ab5b0197f094cabce9f4b006a27766beb6a9975931da07099560ca9c2", - "https://bcr.bazel.build/modules/rules_java/8.9.0/MODULE.bazel": "e17c876cb53dcd817b7b7f0d2985b710610169729e8c371b2221cacdcd3dce4a", - "https://bcr.bazel.build/modules/rules_java/9.1.0/MODULE.bazel": "ee63f27e36a3fada80342869361182f120a9819c74320e8e65b1e04ba0cd7a9d", - "https://bcr.bazel.build/modules/rules_java/9.3.0/MODULE.bazel": "f657c72d65ac449caae9abf2e68e66c0d36f9416848c4c4903d0b3234229e7f2", - "https://bcr.bazel.build/modules/rules_java/9.9.0/MODULE.bazel": "6b2092957b4849ffcbb84d5c7fe0d5a4582f5e3062bc84d607122ac4ef832e55", - "https://bcr.bazel.build/modules/rules_java/9.9.0/source.json": "9c4e694db18812d19b5c1e279ba9dffc1adc3fcac163896829f374a7c426fe12", - "https://bcr.bazel.build/modules/rules_julia/0.8.0/MODULE.bazel": "8d0283ad5e93092dcf7f1c6320c844b30cae1e1b52c7a15c221da090a98f02d4", - "https://bcr.bazel.build/modules/rules_julia/0.8.0/source.json": "8911ab3baabdf30d74a36423ab2890d9d6b32b0174afd1807b7ba7bfaee06a8b", - "https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036", - "https://bcr.bazel.build/modules/rules_jvm_external/6.1/MODULE.bazel": "75b5fec090dbd46cf9b7d8ea08cf84a0472d92ba3585b476f44c326eda8059c4", - "https://bcr.bazel.build/modules/rules_jvm_external/6.2/MODULE.bazel": "36a6e52487a855f33cb960724eb56547fa87e2c98a0474c3acad94339d7f8e99", - "https://bcr.bazel.build/modules/rules_jvm_external/6.7/MODULE.bazel": "e717beabc4d091ecb2c803c2d341b88590e9116b8bf7947915eeb33aab4f96dd", - "https://bcr.bazel.build/modules/rules_jvm_external/6.8/MODULE.bazel": "b5afe861e867e4c8e5b88e401cb7955bd35924258f97b1862cc966cbcf4f1a62", - "https://bcr.bazel.build/modules/rules_jvm_external/6.9/MODULE.bazel": "07c5db05527db7744a54fcffd653e1550d40e0540207a7f7e6d0a4de5bef8274", - "https://bcr.bazel.build/modules/rules_jvm_external/7.1/MODULE.bazel": "e151b1beaa45bfc9e5de4df637d980e27039eb2b1092a95972bf2adbf99ac1a0", - "https://bcr.bazel.build/modules/rules_jvm_external/7.2/MODULE.bazel": "e4f60a972780ca22128d5377d6131b4f9c000854e8bc89e212202676e41e78ce", - "https://bcr.bazel.build/modules/rules_jvm_external/7.2/source.json": "b0e87d55b9c5dd01852ad75641e62f16e5bcbaedd40cb43fc2a2738840e678ff", - "https://bcr.bazel.build/modules/rules_kotlin/2.4.21/MODULE.bazel": "a7f6b1c34486c5112c2d461ce70e14d07421a01519580ba825ef4ade4218b131", - "https://bcr.bazel.build/modules/rules_kotlin/2.4.21/source.json": "c42c737b7acef4e695ce40c68aec5cb6f5f8ed14b1863f2bb3236345e547cf70", - "https://bcr.bazel.build/modules/rules_license/0.0.3/MODULE.bazel": "627e9ab0247f7d1e05736b59dbb1b6871373de5ad31c3011880b4133cafd4bd0", - "https://bcr.bazel.build/modules/rules_license/0.0.7/MODULE.bazel": "088fbeb0b6a419005b89cf93fe62d9517c0a2b8bb56af3244af65ecfe37e7d5d", - "https://bcr.bazel.build/modules/rules_license/1.0.0/MODULE.bazel": "a7fda60eefdf3d8c827262ba499957e4df06f659330bbe6cdbdb975b768bb65c", - "https://bcr.bazel.build/modules/rules_license/1.0.0/source.json": "a52c89e54cc311196e478f8382df91c15f7a2bfdf4c6cd0e2675cc2ff0b56efb", - "https://bcr.bazel.build/modules/rules_m4/0.3.1/MODULE.bazel": "dcfb70aa14ba4ab99bcda9605d6fd0c8de4531a74bf854fb76ecd9f93a6f1e7e", - "https://bcr.bazel.build/modules/rules_m4/0.3.1/source.json": "43e9093a7921c709a70395f4af26da7af6e1419c8e9d76726bce1ea9d90557fd", - "https://bcr.bazel.build/modules/rules_nodejs/6.2.0/MODULE.bazel": "ec27907f55eb34705adb4e8257952162a2d4c3ed0f0b3b4c3c1aad1fac7be35e", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.3/MODULE.bazel": "c22a48b2a0dbf05a9dc5f83837bbc24c226c1f6e618de3c3a610044c9f336056", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.4/MODULE.bazel": "e6a241a55c82e999145553d2e00a08fc6ebadf62b63d108fb5e984696ffd0bd2", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.7/MODULE.bazel": "e80c95eebba3e38fa28ea0553ec580e4bffbbe8d0e8fa892457fa0e6b616f3d8", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.7/source.json": "60081c2448d70db3c5c0e75f55c0a55a22b2144646c21977c46c4986dacacdb6", - "https://bcr.bazel.build/modules/rules_oci/2.3.0/MODULE.bazel": "49075197960c924c0a4d759b7c765c3d00a41d2fdd4a943b42823c1d016ab4ec", - "https://bcr.bazel.build/modules/rules_oci/2.3.0/source.json": "47710c28446211b5e61a24015a4669c50c6862d5f91e6bdbc710de8d750cf613", - "https://bcr.bazel.build/modules/rules_perl/1.5.0/MODULE.bazel": "7a7cb1197e01287cded2c7c46a11e921ab5eb4a3a3b834dcf734740a5d656b02", - "https://bcr.bazel.build/modules/rules_perl/1.5.0/source.json": "d7d3504a77bb226609e4258033973b58d8ccc84acde048a08d825da84df5b197", - "https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff", - "https://bcr.bazel.build/modules/rules_pkg/1.3.0/MODULE.bazel": "ae0bdefbacc990c91f843206c90cf0f4be620639a5bf22119043599ba86d51a3", - "https://bcr.bazel.build/modules/rules_pkg/1.3.0/source.json": "58ae84c545141762f7c434c0ce78bfb55ef0be08d84863e7f0503fff135fe4e2", - "https://bcr.bazel.build/modules/rules_proto/4.0.0/MODULE.bazel": "a7a7b6ce9bee418c1a760b3d84f83a299ad6952f9903c67f19e4edd964894e06", - "https://bcr.bazel.build/modules/rules_proto/6.0.0/MODULE.bazel": "b531d7f09f58dce456cd61b4579ce8c86b38544da75184eadaf0a7cb7966453f", - "https://bcr.bazel.build/modules/rules_proto/6.0.2/MODULE.bazel": "ce916b775a62b90b61888052a416ccdda405212b6aaeb39522f7dc53431a5e73", - "https://bcr.bazel.build/modules/rules_proto/7.0.2/MODULE.bazel": "bf81793bd6d2ad89a37a40693e56c61b0ee30f7a7fdbaf3eabbf5f39de47dea2", - "https://bcr.bazel.build/modules/rules_proto/7.1.0/MODULE.bazel": "002d62d9108f75bb807cd56245d45648f38275cb3a99dcd45dfb864c5d74cb96", - "https://bcr.bazel.build/modules/rules_proto/7.1.0/source.json": "39f89066c12c24097854e8f57ab8558929f9c8d474d34b2c00ac04630ad8940e", - "https://bcr.bazel.build/modules/rules_python/2.4.6/MODULE.bazel": "edd87d5af3d4cc3c6e233c4450209bad2f4d6124d24c647670ee8062cfdf822e", - "https://bcr.bazel.build/modules/rules_python/2.4.6/source.json": "2e5154205999e263cdee7399111b09acfb9361a205f29e95af93f9423be674d6", - "https://bcr.bazel.build/modules/rules_robolectric/4.14.1.2/MODULE.bazel": "d44fec647d0aeb67b9f3b980cf68ba634976f3ae7ccd6c07d790b59b87a4f251", - "https://bcr.bazel.build/modules/rules_robolectric/4.14.1.2/source.json": "37c10335f2361c337c5c1f34ed36d2da70534c23088062b33a8bdaab68aa9dea", - "https://bcr.bazel.build/modules/rules_rust/0.75.0/MODULE.bazel": "77452ad75faf65400abc8d0956033d5732c68d39478c9ac064288d3f484f6e34", - "https://bcr.bazel.build/modules/rules_rust/0.75.0/source.json": "6205a2156646606f99828f217931f4cd5c68f3ada35916dab6601020358bfc63", - "https://bcr.bazel.build/modules/rules_rust_prost/0.75.0/MODULE.bazel": "352c97c54b4938acaae4f5be9cf380845d56ce6f062cf161f78059764f7d901a", - "https://bcr.bazel.build/modules/rules_rust_prost/0.75.0/source.json": "fdd8bb6bd5fca6d0f672a2438312016e91c8010fdd9c9355a8eec4f503aa5ac5", - "https://bcr.bazel.build/modules/rules_rust_wasm_bindgen/0.75.0/MODULE.bazel": "2da21af41a035b2c603b2b8fe768d63746df1bae69fadd2d762c0436cd601ac8", - "https://bcr.bazel.build/modules/rules_rust_wasm_bindgen/0.75.0/source.json": "f0ce711d9162d4fda731e58d2939358d70bc35ac641c9890f998e6852842cec2", - "https://bcr.bazel.build/modules/rules_scala/7.4.1/MODULE.bazel": "74174791015794a463fb0f1e5b68d281dbb64d0afea01a539b21abe922eab79d", - "https://bcr.bazel.build/modules/rules_scala/7.4.1/source.json": "6d44092458477113b4f1b0e2eaad2475afbb13ecad97ac04a5ee5112be55b1fe", - "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", - "https://bcr.bazel.build/modules/rules_shell/0.3.0/MODULE.bazel": "de4402cd12f4cc8fda2354fce179fdb068c0b9ca1ec2d2b17b3e21b24c1a937b", - "https://bcr.bazel.build/modules/rules_shell/0.4.1/MODULE.bazel": "00e501db01bbf4e3e1dd1595959092c2fadf2087b2852d3f553b5370f5633592", - "https://bcr.bazel.build/modules/rules_shell/0.6.1/MODULE.bazel": "72e76b0eea4e81611ef5452aa82b3da34caca0c8b7b5c0c9584338aa93bae26b", - "https://bcr.bazel.build/modules/rules_shell/0.7.1/MODULE.bazel": "257dd8d667371de804918dfceb86f6ddd2e1b5e025f5d9322878d4a73dc8aa58", - "https://bcr.bazel.build/modules/rules_shell/0.8.0/MODULE.bazel": "f6a89f1d6a669a26f28fe814503857055d76306b79cfc11d12399af08d0b80ae", - "https://bcr.bazel.build/modules/rules_shell/0.8.0/source.json": "eb53cc815bc503c6683c5fe12d943f98883f81fc22f51403ec8a95610cba4195", - "https://bcr.bazel.build/modules/rules_swift/4.2.2/MODULE.bazel": "dce65c0c22c5880dc0060b525dbbb7c44ede24e317e27509064512aa92fe237e", - "https://bcr.bazel.build/modules/rules_swift/4.2.2/source.json": "4d8348d47ac5495a40a86235fff26202f9e578188fae00dec806b7c6d9d73487", - "https://bcr.bazel.build/modules/rules_zig/0.17.0/MODULE.bazel": "2c1c08adc986cfdb5fee97e21982cac846f8a20a6a8054ae9cab8b02721c2011", - "https://bcr.bazel.build/modules/rules_zig/0.17.0/source.json": "488f71f57c596ed9b7635ebeb28066b23c6fc1802c30749d06bdad261d7b04a2", - "https://bcr.bazel.build/modules/sqlite3/3.53.4/MODULE.bazel": "1827a71c19204893597a5cd8450d4ca0a64ddea87641522499051407f9c13b77", - "https://bcr.bazel.build/modules/sqlite3/3.53.4/source.json": "3e645ccf3ad53c308491605be7dbf5259b4bdf8274bf186c8e739a18ab2f4eb2", - "https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c", - "https://bcr.bazel.build/modules/stardoc/0.5.4/MODULE.bazel": "6569966df04610b8520957cb8e97cf2e9faac2c0309657c537ab51c16c18a2a4", - "https://bcr.bazel.build/modules/stardoc/0.5.6/MODULE.bazel": "c43dabc564990eeab55e25ed61c07a1aadafe9ece96a4efabb3f8bf9063b71ef", - "https://bcr.bazel.build/modules/stardoc/0.6.2/MODULE.bazel": "7060193196395f5dd668eda046ccbeacebfd98efc77fed418dbe2b82ffaa39fd", - "https://bcr.bazel.build/modules/stardoc/0.7.0/MODULE.bazel": "05e3d6d30c099b6770e97da986c53bd31844d7f13d41412480ea265ac9e8079c", - "https://bcr.bazel.build/modules/stardoc/0.7.1/MODULE.bazel": "3548faea4ee5dda5580f9af150e79d0f6aea934fc60c1cc50f4efdd9420759e7", - "https://bcr.bazel.build/modules/stardoc/0.7.1/source.json": "b6500ffcd7b48cd72c29bb67bcac781e12701cc0d6d55d266a652583cfcdab01", - "https://bcr.bazel.build/modules/swift_argument_parser/1.7.0/MODULE.bazel": "40d4e44950e44973dcf8590bcee637591de196b5dbe3696d07eb342b74d53672", - "https://bcr.bazel.build/modules/swift_argument_parser/1.7.0/source.json": "b9b952cba0c748083b9b891e6ac46d347c92d37e8a92ead96d2a54b966bacd87", - "https://bcr.bazel.build/modules/tar.bzl/0.10.1/MODULE.bazel": "bf5fda5b5ccef8c3c4a5f4886144377386e0baa382972f257acb42dcf40ea908", - "https://bcr.bazel.build/modules/tar.bzl/0.10.4/MODULE.bazel": "e8f9ff79199e8d9eaad7f1b0a77ad74b30bb82d794b87d8ca942bead5de83ae9", - "https://bcr.bazel.build/modules/tar.bzl/0.10.9/MODULE.bazel": "4636f5f6a7c34d3d0653634ed95a34560426d548c5301c6c5924c885ef737b46", - "https://bcr.bazel.build/modules/tar.bzl/0.10.9/source.json": "30a5cf0a8281adce53ab1c5a4291e88b2c161e2df1feb6cba4ee50556f1748d7", - "https://bcr.bazel.build/modules/tar.bzl/0.2.1/MODULE.bazel": "52d1c00a80a8cc67acbd01649e83d8dd6a9dc426a6c0b754a04fe8c219c76468", - "https://bcr.bazel.build/modules/tar.bzl/0.5.1/MODULE.bazel": "7c2eb3dcfc53b0f3d6f9acdfd911ca803eaf92aadf54f8ca6e4c1f3aee288351", - "https://bcr.bazel.build/modules/tar.bzl/0.6.0/MODULE.bazel": "a3584b4edcfafcabd9b0ef9819808f05b372957bbdff41601429d5fd0aac2e7c", - "https://bcr.bazel.build/modules/tar.bzl/0.7.0/MODULE.bazel": "cc1acd85da33c80e430b65219a620d54d114628df24a618c3a5fa0b65e988da9", - "https://bcr.bazel.build/modules/toml.bzl/0.3.0/MODULE.bazel": "5016e5dd1ad2200e119a4b28b2b3935e276c4b480f2fe3e952bea7eeba88f578", - "https://bcr.bazel.build/modules/toml.bzl/0.4.1/MODULE.bazel": "6bc0b938f03ade8d58c2fca0ad5c3fa12b4764e1e1927ad50b0c860286db2167", - "https://bcr.bazel.build/modules/toml.bzl/0.5.0/MODULE.bazel": "29c04b37a3f50c8dfcdc0c742eec7561ecb3d0cfea353bdb445ad8f6e0c81370", - "https://bcr.bazel.build/modules/toml.bzl/0.5.0/source.json": "a80e38d7d03cee9de004f49f0b817943332fc357ec0ca9b123a334ac6e9722ca", - "https://bcr.bazel.build/modules/windows_support/0.4.1/MODULE.bazel": "2287f95ac65c48ea05197f626a9b5711ea3c88cea61f2a5782882bdd55fdeb51", - "https://bcr.bazel.build/modules/windows_support/0.4.1/source.json": "bdb72e6717b00135e0a4a8512b3f6b626df0baea0bde74bf7312c7484f791287", - "https://bcr.bazel.build/modules/with_cfg.bzl/0.12.0/MODULE.bazel": "b573395fe63aef4299ba095173e2f62ccfee5ad9bbf7acaa95dba73af9fc2b38", - "https://bcr.bazel.build/modules/with_cfg.bzl/0.12.0/source.json": "3f3fbaeafecaf629877ad152a2c9def21f8d330d91aa94c5dc75bbb98c10b8b8", - "https://bcr.bazel.build/modules/xctestrunner/0.2.16-20260212-4c6f493/MODULE.bazel": "df9d74c77698e7dbc52a65ebdd6de5727044e98121ac309b5d046f2d04121d56", - "https://bcr.bazel.build/modules/xctestrunner/0.2.16-20260212-4c6f493/source.json": "73a5421c8ef51cd455a572dee5bb9415351ab5acbcb65d4efa56a574790bd2f2", - "https://bcr.bazel.build/modules/yaml.bzl/0.1.2/MODULE.bazel": "bd9b2434761c3b1ee41e77fcda787af3bcd7874513d1a5eba4a7395cbd5ed618", - "https://bcr.bazel.build/modules/yaml.bzl/0.1.2/source.json": "fc9af4a6e1ebc109f7d9d85cd75f112d495b448a8defa88af9c2a2148be0498a", - "https://bcr.bazel.build/modules/yq.bzl/0.1.1/MODULE.bazel": "9039681f9bcb8958ee2c87ffc74bdafba9f4369096a2b5634b88abc0eaefa072", - "https://bcr.bazel.build/modules/yq.bzl/0.3.2/MODULE.bazel": "0384efa70e8033d842ea73aa4b7199fa099709e236a7264345c03937166670b6", - "https://bcr.bazel.build/modules/yq.bzl/0.3.4/MODULE.bazel": "d3a270662f5d766cd7229732d65a5a5bc485240c3007343dd279edfb60c9ae27", - "https://bcr.bazel.build/modules/yq.bzl/0.3.4/source.json": "786dafdc2843722da3416e4343ee1a05237227f068590779a6e8496a2064c0f9", - "https://bcr.bazel.build/modules/zlib-ng/2.3.3.bcr.2/MODULE.bazel": "86130924115bf8dfc4aba286fb49a2ec8d32430a21771db9ccf5381acf0d10cc", - "https://bcr.bazel.build/modules/zlib-ng/2.3.3.bcr.2/source.json": "7aa4112eb2fbb99757e97cf0b7a4e2bdb3464b2b3cfb351bc807ffcb34bd349f", - "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", - "https://bcr.bazel.build/modules/zlib/1.3.2.bcr.3/MODULE.bazel": "0b6a197b824f4882f97f6717d81e09b10c7562023370bf7e9da6380238e9c212", - "https://bcr.bazel.build/modules/zlib/1.3.2.bcr.3/source.json": "00797abf23e06df10af2d7b78cff7d3360349e72c434329faeb532f9c358449b", - "https://bcr.bazel.build/modules/zlib/1.3.2/MODULE.bazel": "7303cb87d80e438f313194fc640e38475a8d337b8c70ff6a0725f55236566a33", - "https://bcr.bazel.build/modules/zstd/1.5.7.bcr.1/MODULE.bazel": "c5977176dd8555be7a9d598512ae0cae11831259c06f00a5e5e0037d5db4e3f5", - "https://bcr.bazel.build/modules/zstd/1.5.7.bcr.1/source.json": "aa95e0b5aac9d80195b9047d223beaf26b1948be55d49f0e803e180e9ccc6e75", - "https://bcr.bazel.build/modules/zstd/1.5.7/MODULE.bazel": "f5780cdbd6f4c5bb985a20f839844316fe48fb5e463056f372dbc37cfabdf450" - }, - "selectedYankedVersions": {}, - "moduleExtensions": { - "@@aspect_tools_telemetry+//:extension.bzl%telemetry": { - "general": { - "bzlTransitiveDigest": "ihzLOoAnQP6Y5iSYOhEjvb6uxEbA6ZgH8Qikau2lGRU=", - "usagesDigest": "9jD5ypNZfOa8PCtqb7zh2LhW4lsg4BaSkXHt/JHi9rk=", - "recordedInputs": [ - "REPO_MAPPING:aspect_tools_telemetry+,bazel_lib bazel_lib+", - "REPO_MAPPING:aspect_tools_telemetry+,bazel_skylib bazel_skylib+", - "ENV:ASPECT_TOOLS_TELEMETRY_TEST \\0" - ], - "generatedRepoSpecs": { - "aspect_tools_telemetry_report": { - "repoRuleId": "@@aspect_tools_telemetry+//:extension.bzl%tel_repository", - "attributes": { - "deps": { - "aspect_rules_js": "3.5.2", - "aspect_rules_ts": "3.10.1", - "aspect_rules_jest": "0.26.0", - "aspect_tools_telemetry": "0.5.2" - }, - "last_notice": 0 - } - } - }, - "moduleExtensionMetadata": { - "useAllRepos": "NO", - "reproducible": false - } - } - }, - "@@gcc_toolchain+//:internal.bzl%non_bazel_dependencies": { - "general": { - "bzlTransitiveDigest": "2lJ032c8fOuugvP5l8O9QCbfJ0bax+IIqOgaFwlNDec=", - "usagesDigest": "sKYmx+ooOsbnANJqjmba+8IeuYjA9CbwKfQETYhyNuU=", - "recordedInputs": [ - "REPO_MAPPING:gcc_toolchain+,bazel_tools bazel_tools", - "REPO_MAPPING:gcc_toolchain+,lapack gcc_toolchain++non_bazel_dependencies+lapack" - ], - "generatedRepoSpecs": { - "openssl": { - "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", - "attributes": { - "build_file_content": "filegroup(\n name = \"srcs\",\n srcs = glob(\n include = [\"**\"],\n exclude = [\"**/* *\"],\n ),\n visibility = [\"//visibility:public\"],\n)\n", - "sha256": "40dceb51a4f6a5275bde0e6bf20ef4b91bfc32ed57c0552e2e8e15463372b17a", - "strip_prefix": "openssl-1.1.1n", - "url": "https://www.openssl.org/source/openssl-1.1.1n.tar.gz" - } - }, - "lapack": { - "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", - "attributes": { - "build_file_content": "filegroup(\n name = \"srcs\",\n srcs = glob(\n include = [\"**\"],\n exclude = [\"**/* *\"],\n ),\n visibility = [\"//visibility:public\"],\n)\n", - "patch_cmds": [ - "cat > make.inc < - #include - - namespace avro { -diff --git a/include/avro/buffer/detail/BufferDetail.hh b/include/avro/buffer/detail/BufferDetail.hh ---- a/include/avro/buffer/detail/BufferDetail.hh -+++ b/include/avro/buffer/detail/BufferDetail.hh -@@ -31,6 +31,7 @@ - #include - #include - #include -+#include - - /** - * \file BufferDetail.hh -diff --git a/include/avro/Layout.hh b/include/avro/Layout.hh ---- a/include/avro/Layout.hh -+++ b/include/avro/Layout.hh -@@ -20,6 +20,8 @@ - #define avro_Layout_hh__ - - #include "Config.hh" -+#include -+#include - #include - - /// \file Layout.hh -diff --git a/include/avro/Node.hh b/include/avro/Node.hh ---- a/include/avro/Node.hh -+++ b/include/avro/Node.hh -@@ -24,6 +24,7 @@ - #include - #include - #include -+#include - #include - - #include "CustomAttributes.hh" -diff --git a/include/avro/Exception.hh b/include/avro/Exception.hh ---- a/include/avro/Exception.hh -+++ b/include/avro/Exception.hh -@@ -20,7 +20,7 @@ - #define avro_Exception_hh__ - - #include "Config.hh" --#include -+#include - #include - - namespace avro { diff --git a/families/julia/third_party/rules_dx/gcc_toolchain.native_include_layout.patch b/families/julia/third_party/rules_dx/gcc_toolchain.native_include_layout.patch deleted file mode 100644 index 274d949843..0000000000 --- a/families/julia/third_party/rules_dx/gcc_toolchain.native_include_layout.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -109,7 +109,7 @@ - ] - - cxx_builtin_includes = [] -- if target_arch == ARCHS.x86_64: -+ if target_arch == ARCHS.x86_64 or not rctx.path("{}include/c++".format(include_prefix)).exists: - cxx_builtin_includes.extend([ - include.format( - gcc_version = rctx.attr.gcc_version, diff --git a/families/julia/third_party/rules_dx/gcc_toolchain.runtime_libs.patch b/families/julia/third_party/rules_dx/gcc_toolchain.runtime_libs.patch deleted file mode 100644 index df5d4a6995..0000000000 --- a/families/julia/third_party/rules_dx/gcc_toolchain.runtime_libs.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -982,6 +982,8 @@ - strip_files = ":strip_files", - coverage_files = ":coverage_files", - supports_param_files = {supports_param_files}, -+ dynamic_runtime_lib = ":dx_dynamic_runtime_lib", -+ static_runtime_lib = ":dx_static_runtime_lib", - toolchain_config = ":cc_toolchain_config", - toolchain_identifier = "gcc-toolchain", - ) -@@ -1001,6 +1003,24 @@ - ) - - filegroup( -+ name = "dx_dynamic_runtime_lib", -+ srcs = glob( -+ include = [ -+ "lib64/libstdc++.so.6", -+ "lib64/libgcc_s.so.1", -+ "*/lib64/libstdc++.so.6", -+ "*/lib64/libgcc_s.so.1", -+ ], -+ allow_empty = True, -+ ), -+) -+ -+filegroup( -+ name = "dx_static_runtime_lib", -+ srcs = [], -+) -+ -+filegroup( - name = "all_files", - srcs = [ - ":ar_files", diff --git a/families/julia/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch b/families/julia/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch deleted file mode 100644 index b1e88ba100..0000000000 --- a/families/julia/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -1081,6 +1081,7 @@ - "**/*.la", - "**/*.o", - "**/*.lo", -+ "**/lib*/libsanitizer.spec", - ], - exclude = ["lib*/**/*python*/**"], - allow_empty = True, diff --git a/families/julia/third_party/rules_dx/gcc_toolchain.target_identity_config.patch b/families/julia/third_party/rules_dx/gcc_toolchain.target_identity_config.patch deleted file mode 100644 index be5fc75deb..0000000000 --- a/families/julia/third_party/rules_dx/gcc_toolchain.target_identity_config.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/toolchain/cc_toolchain_config.bzl -+++ b/toolchain/cc_toolchain_config.bzl -@@ -587,7 +587,7 @@ - - return [ - cc_common.create_cc_toolchain_config_info( -- abi_libc_version = "local", -+ abi_libc_version = ctx.attr.target_libc, - abi_version = "local", - action_configs = action_configs, - artifact_name_patterns = [], -@@ -599,8 +599,8 @@ - host_system_name = "local", - make_variables = [], - target_cpu = "local", -- target_libc = "local", -- target_system_name = "local", -+ target_libc = ctx.attr.target_libc, -+ target_system_name = ctx.attr.target_system_name, - tool_paths = [ - tool_path(name = name, path = path) - for name, path in tool_paths.items() -@@ -614,6 +614,8 @@ - attrs = { - "cxx_builtin_include_directories": attr.string_list(mandatory = True), - "enable_fortran": attr.bool(mandatory = True), -+ "target_libc": attr.string(default = "local"), -+ "target_system_name": attr.string(default = "local"), - "extra_cflags": attr.string_list(mandatory = True), - "extra_cxxflags": attr.string_list(mandatory = True), - "extra_enabled_features": attr.label_list(mandatory = True), diff --git a/families/julia/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch b/families/julia/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch deleted file mode 100644 index 5d9ee89d29..0000000000 --- a/families/julia/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -269,6 +269,8 @@ - - # cc_toolchain attributes - supports_param_files = 1 if rctx.attr.supports_param_files else 0, -+ target_libc = rctx.attr.target_libc, -+ target_system_name = "{}-linux-gnu".format(rctx.attr.target_arch), - - # Fortran, if enabled - **_fortran_vars( -@@ -490,6 +492,10 @@ - doc = "The target architecture this toolchain produces. E.g. x86_64.", - mandatory = True, - ), -+ "target_libc": attr.string( -+ doc = "The libc name and version reported in the cc toolchain identity. E.g. glibc_2.28.", -+ default = "local", -+ ), - } - - # Attributes of the `toolchain` declarations, which live in the hub rather than in the repository -@@ -674,6 +680,7 @@ - "extra_target_compatible_with", - "extra_target_settings", - "supports_param_files", -+ "target_libc", - ] - } - -@@ -997,6 +1004,8 @@ - extra_fflags = {extra_fflags}, - extra_ldflags = {extra_ldflags}, - extra_asmflags = {extra_asmflags}, -+ target_libc = "{target_libc}", -+ target_system_name = "{target_system_name}", - extra_enabled_features = {extra_enabled_features}, - extra_known_features = {extra_known_features}, - tool_paths = tool_paths, diff --git a/families/julia/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch b/families/julia/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch deleted file mode 100644 index 206afb59a8..0000000000 --- a/families/julia/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/toolchain/module_extensions.bzl -+++ b/toolchain/module_extensions.bzl -@@ -25,6 +25,7 @@ - extra_target_compatible_with = declare.extra_target_compatible_with, - extra_target_settings = declare.extra_target_settings, - supports_param_files = declare.supports_param_files, -+ target_libc = declare.target_libc, - ) - - # Since we know that for each gcc toolchain repository we'll generate the same files, we mark the rule as reproducible. diff --git a/families/julia/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch b/families/julia/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch deleted file mode 100644 index 0599d7222f..0000000000 --- a/families/julia/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch +++ /dev/null @@ -1,50 +0,0 @@ -diff -ru a/launcher/private/prebuilt/BUILD.bazel b/launcher/private/prebuilt/BUILD.bazel ---- a/launcher/private/prebuilt/BUILD.bazel -+++ b/launcher/private/prebuilt/BUILD.bazel -@@ -11,6 +11,7 @@ - finalizers = { - "aarch64_linux": "@finalize_stub_aarch64_linux//file", - "aarch64_macos": "@finalize_stub_aarch64_macos//file", -+ "aarch64_windows": "@finalize_stub_aarch64_windows//file", - "s390x_linux": "@finalize_stub_s390x_linux//file", - "x86_64_linux": "@finalize_stub_x86_64_linux//file", - "x86_64_macos": "@finalize_stub_x86_64_macos//file", -@@ -19,6 +20,7 @@ - templates = { - "aarch64_linux": "@runfiles_stub_aarch64_linux//file", - "aarch64_macos": "@runfiles_stub_aarch64_macos//file", -+ "aarch64_windows": "@runfiles_stub_aarch64_windows//file", - "s390x_linux": "@runfiles_stub_s390x_linux//file", - "x86_64_linux": "@runfiles_stub_x86_64_linux//file", - "x86_64_macos": "@runfiles_stub_x86_64_macos//file", -diff -ru a/launcher/private/toolchains.bzl b/launcher/private/toolchains.bzl ---- a/launcher/private/toolchains.bzl -+++ b/launcher/private/toolchains.bzl -@@ -22,14 +22,14 @@ - attrs = {"src": attr.label(mandatory = True)}, - ) - --# The platforms toolchains are registered for. Windows/aarch64 ships for --# standalone use but has no auto-registered Bazel toolchain (see README --# "Supported platforms"). -+# The platforms toolchains are registered for. A platform missing from the -+# templates or finalizers dict of a stub source is skipped for that source. - # - # (name, cpu, os) - PLATFORMS = [ - ("aarch64_linux", "aarch64", "linux"), - ("aarch64_macos", "aarch64", "macos"), -+ ("aarch64_windows", "aarch64", "windows"), - ("s390x_linux", "s390x", "linux"), - ("x86_64_linux", "x86_64", "linux"), - ("x86_64_macos", "x86_64", "macos"), -@@ -56,6 +56,9 @@ - target_settings = ["//launcher/private:stub_source_" + name] - - for (platform, cpu, os) in PLATFORMS: -+ if platform not in templates or platform not in finalizers: -+ continue -+ - constraints = [ - "@platforms//cpu:" + cpu, - "@platforms//os:" + os, diff --git a/families/julia/third_party/rules_dx/llvm.aarch64_outline_atomics.patch b/families/julia/third_party/rules_dx/llvm.aarch64_outline_atomics.patch deleted file mode 100644 index 436a00ebeb..0000000000 --- a/families/julia/third_party/rules_dx/llvm.aarch64_outline_atomics.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -@@ -751,6 +751,10 @@ - "//conditions:default": [], - }), - deps = select({ -+ # Clang only defaults to outline atomics on Linux-like targets, so -+ # nothing calls the __aarch64_* helpers on macOS or Windows. -+ "@llvm//platforms/config:macos_aarch64": [], -+ "@llvm//platforms/config:windows_aarch64": [], - "@platforms//cpu:aarch64": [ - ":builtins_aarch64_atomic", - ], diff --git a/families/julia/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch b/families/julia/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch deleted file mode 100644 index 5df92a2b33..0000000000 --- a/families/julia/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff -ruN a/toolchain/args/windows/msvc/BUILD.bazel b/toolchain/args/windows/msvc/BUILD.bazel ---- a/toolchain/args/windows/msvc/BUILD.bazel 2026-11-06 03:26:58.926919250 +0100 -+++ b/toolchain/args/windows/msvc/BUILD.bazel 2026-11-06 03:26:58.932824171 +0100 -@@ -219,6 +219,24 @@ - ) - - cc_args( -+ name = "dynamic_crt_default_lib", -+ actions = ["@rules_cc//cc/toolchains/actions:link_actions"], -+ args = [ -+ "/clang:-Xlinker", -+ "/clang:/DEFAULTLIB:msvcrt.lib", -+ ], -+) -+ -+cc_args( -+ name = "static_crt_default_lib", -+ actions = ["@rules_cc//cc/toolchains/actions:link_actions"], -+ args = [ -+ "/clang:-Xlinker", -+ "/clang:/DEFAULTLIB:libcmt.lib", -+ ], -+) -+ -+cc_args( - name = "sdk_library_search_paths", - actions = [ - "@rules_cc//cc/toolchains/actions:link_actions", -@@ -279,8 +297,8 @@ - "common_support_library_search_paths", - "com_support_library_search_paths", - ] + select({ -- "//toolchain/features/msvc:static_crt_config": ["static_crt_library_search_paths"], -- "//conditions:default": ["dynamic_crt_library_search_paths"], -+ "//toolchain/features/msvc:static_crt_config": ["static_crt_library_search_paths", "static_crt_default_lib"], -+ "//conditions:default": ["dynamic_crt_library_search_paths", "dynamic_crt_default_lib"], - }) + select({ - # Hosted C construction tools need the target CRT and SDK, but do not - # consume the C++ standard library. diff --git a/families/julia/third_party/rules_dx/llvm.libunwind_copy.patch b/families/julia/third_party/rules_dx/llvm.libunwind_copy.patch deleted file mode 100644 index 527a5b3ccc..0000000000 --- a/families/julia/third_party/rules_dx/llvm.libunwind_copy.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -ruN a/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel b/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel ---- a/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel -@@ -176,7 +176,6 @@ - name = "libunwind.static.gnu_link_name", - src = "libunwind.static", - out = "libunwind.a", -- allow_symlink = True, - visibility = ["//visibility:public"], - ) - diff --git a/families/julia/third_party/rules_dx/llvm.lse_atomic_sources.patch b/families/julia/third_party/rules_dx/llvm.lse_atomic_sources.patch deleted file mode 100644 index f3c913e6fe..0000000000 --- a/families/julia/third_party/rules_dx/llvm.lse_atomic_sources.patch +++ /dev/null @@ -1,189 +0,0 @@ -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel b/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel -index 454cd22..c9ad737 100644 ---- a/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel -@@ -9,10 +9,13 @@ bzl_library( - name = "targets", - srcs = ["targets.bzl"], - visibility = ["//visibility:public"], -- deps = [ -- "@bazel_lib//lib:copy_file", -- "@rules_cc//cc:core_rules", -- ], -+ deps = ["@rules_cc//cc:core_rules"], -+) -+ -+bzl_library( -+ name = "lse_variants", -+ srcs = ["lse_variants.bzl"], -+ visibility = ["//visibility:public"], - ) - - bzl_library( -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel b/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -index 0fa0744..3c53c15 100644 ---- a/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -@@ -5,6 +5,7 @@ load("@bazel_skylib//rules/directory:directory.bzl", "directory") - load("@bazel_skylib//rules/directory:subdirectory.bzl", "subdirectory") - load("@llvm//:sh_script.bzl", "sh_script") - load("@llvm//3rd_party/llvm-project/x.x/compiler-rt:filter_builtin_sources.bzl", "filter_builtin_sources") -+load("@llvm//3rd_party/llvm-project/x.x/compiler-rt:lse_variants.bzl", "LSE_ATOMIC_VARIANTS") - load("@llvm//3rd_party/llvm-project/x.x/compiler-rt:targets.bzl", "atomic_helper_cc_library") - load( - "@llvm//3rd_party/llvm-project/x.x/compiler-rt:weak_symbols.bzl", -@@ -512,29 +513,7 @@ builtins_aarch64_atomic_deps = [ - model = model, - pat = pat, - ) -- for pat in [ -- "cas", -- "swp", -- "ldadd", -- "ldclr", -- "ldeor", -- "ldset", -- ] -- for size in [ -- 1, -- 2, -- 4, -- 8, -- 16, -- ] -- for model in [ -- 1, -- 2, -- 3, -- 4, -- 5, -- ] -- if pat == "cas" or size != 16 -+ for pat, size, model in LSE_ATOMIC_VARIANTS - ] - - cc_library( -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/lse_variants.bzl b/3rd_party/llvm-project/x.x/compiler-rt/lse_variants.bzl -new file mode 100644 -index 0000000..b275140 ---- /dev/null -+++ b/3rd_party/llvm-project/x.x/compiler-rt/lse_variants.bzl -@@ -0,0 +1,33 @@ -+""" -+The aarch64 outline atomic helpers built from lib/builtins/aarch64/lse.S. -+ -+Each (pat, size, model) gets its own lse___.S copy, written -+when llvm-project is fetched, so cc_static_library sees distinct object names. -+""" -+ -+LSE_ATOMIC_VARIANTS = [ -+ (pat, size, model) -+ for pat in [ -+ "cas", -+ "swp", -+ "ldadd", -+ "ldclr", -+ "ldeor", -+ "ldset", -+ ] -+ for size in [ -+ 1, -+ 2, -+ 4, -+ 8, -+ 16, -+ ] -+ for model in [ -+ 1, -+ 2, -+ 3, -+ 4, -+ 5, -+ ] -+ if pat == "cas" or size != 16 -+] -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl b/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl -index 541c39a..0be33c6 100644 ---- a/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl -+++ b/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl -@@ -2,7 +2,6 @@ - Helper functions for defining targets. - """ - --load("@bazel_lib//lib:copy_file.bzl", "copy_file") - load("@rules_cc//cc:cc_library.bzl", "cc_library") - - def atomic_helper_cc_library(name, pat, size, model): -@@ -10,17 +9,11 @@ def atomic_helper_cc_library(name, pat, size, model): - - # cc_library will always produce an archive file containing lse.o. - # Because those end up in a static library, cc_static_library will complain -- # that the archive has lse.o specified multiple times. -- copy_file( -- name = unique_filename, -- src = "lib/builtins/aarch64/lse.S", -- out = "{}.S".format(unique_filename), -- allow_symlink = True, -- ) -- -+ # that the archive has lse.o specified multiple times. The renamed copies -+ # are written when llvm-project is fetched (see lse_variants.bzl). - cc_library( - name = name, -- srcs = [unique_filename], -+ srcs = ["lib/builtins/aarch64/{}.S".format(unique_filename)], - copts = select({ - # The clang-cl hermetic compilation policy already supplies both - # options with its required /clang: spelling. -diff --git a/private/BUILD.bazel b/private/BUILD.bazel -index 4e70eeb..3b366e2 100644 ---- a/private/BUILD.bazel -+++ b/private/BUILD.bazel -@@ -13,6 +13,7 @@ bzl_library( - deps = [ - ":llvm_project_common", - "//:http_bsdtar_archive", -+ "//3rd_party/llvm-project/x.x/compiler-rt:lse_variants", - "@bazel_lib//lib:repo_utils", - "@bazel_skylib//lib:paths", - "@bazel_tools//tools/build_defs/repo:cache.bzl", -diff --git a/private/llvm_project_archive.bzl b/private/llvm_project_archive.bzl -index 366dd80..7855a24 100644 ---- a/private/llvm_project_archive.bzl -+++ b/private/llvm_project_archive.bzl -@@ -12,6 +12,7 @@ load( - "update_attrs", - ) - load("//:http_bsdtar_archive.bzl", "download_remote_files") -+load("//3rd_party/llvm-project/x.x/compiler-rt:lse_variants.bzl", "LSE_ATOMIC_VARIANTS") - load(":llvm_project_common.bzl", "LLVM_PROJECT_OVERLAY", "write_llvm_project_files") - - _DEFAULT_OVERLAY_FILES = { -@@ -177,6 +178,19 @@ def _copy_files(rctx, module_root): - fail("Input {} does not exist".format(label)) - rctx.file(path, rctx.read(source, watch = "no"), executable = False) - -+def _write_lse_atomic_sources(rctx): -+ # One copy of lse.S per atomic helper, so the objects get distinct names -+ # without a copy or symlink action each. Only the compiler-rt BUILD file -+ # in overlay_files uses them. -+ content = rctx.read("compiler-rt/lib/builtins/aarch64/lse.S") -+ for pat, size, model in LSE_ATOMIC_VARIANTS: -+ rctx.file( -+ "compiler-rt/lib/builtins/aarch64/lse_{}_{}_{}.S".format(pat, size, model), -+ content, -+ executable = False, -+ legacy_utf8 = False, -+ ) -+ - def _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info): - overrides = {} - if not rctx.attr.sha256 and not rctx.attr.integrity: -@@ -216,6 +230,7 @@ def _llvm_project_archive_impl(rctx): - module_root = _watch_llvm_project_inputs(rctx) - remote_patches_info = _patch(rctx, module_root) - _copy_files(rctx, module_root) -+ _write_lse_atomic_sources(rctx) - write_llvm_project_files(rctx) - - return _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info) diff --git a/families/julia/third_party/rules_dx/llvm.msvc_source_directories.patch b/families/julia/third_party/rules_dx/llvm.msvc_source_directories.patch deleted file mode 100644 index 95a77ef740..0000000000 --- a/families/julia/third_party/rules_dx/llvm.msvc_source_directories.patch +++ /dev/null @@ -1,187 +0,0 @@ -diff --git a/runtimes/msvc/BUILD.bazel b/runtimes/msvc/BUILD.bazel ---- a/runtimes/msvc/BUILD.bazel -+++ b/runtimes/msvc/BUILD.bazel -@@ -1,71 +1,7 @@ --load("@bazel_lib//lib:copy_to_directory.bzl", "copy_to_directory") - load("//:case_insensitive_vfs.bzl", "case_insensitive_vfs_overlay") --load("//:directory.bzl", "directory_info") - - package(default_visibility = ["//visibility:public"]) - --# These archives do not select a CRT mode. Their directives may request other --# support archives or SDK libraries, so expose the complete native closure. --_MSVC_COMMON_SUPPORT_LIBRARIES = [ -- "exe_initialize_mta.lib", -- "iso_stdio_wide_specifiers.lib", -- "legacy_stdio_definitions.lib", -- "legacy_stdio_wide_specifiers.lib", -- "oldnames.lib", --] -- --_MSVC_DYNAMIC_RUNTIME_LIBRARIES = [ -- "msvcprt.lib", -- "msvcrt.lib", -- "vcruntime.lib", --] -- --_MSVC_STATIC_RUNTIME_LIBRARIES = [ -- "libcmt.lib", -- "libcpmt.lib", -- "libvcruntime.lib", --] -- --# Keep LLVM's COM compiler-support dependency separate from the Microsoft STL. --# new.h is already provided by the selected UCRT include tree. --_MSVC_COM_SUPPORT_HEADERS = [ -- "comdef.h", -- "comdefsp.h", -- "comip.h", -- "comutil.h", --] -- --_MSVC_COM_SUPPORT_LIBRARIES = [ -- "comsupp.lib", -- "comsuppw.lib", --] -- --# Keep Layer 1's VCRuntime ABI surface separate from Microsoft STL. These are --# the compiler/exception runtime headers required by clang-cl and libc++; the --# selected C++ standard-library headers still come exclusively from libc++. --_MSVC_VCRUNTIME_HEADERS = [ -- "CodeAnalysis/sourceannotations.h", -- "concurrencysal.h", -- "crtdefs.h", -- "eh.h", -- "ehdata.h", -- "ehdata_forceinclude.h", -- "ehdata_values.h", -- "excpt.h", -- "sal.h", -- "setjmp.h", -- "setjmpex.h", -- "threads.h", -- "vadefs.h", -- "vcruntime.h", -- "vcruntime_exception.h", -- "vcruntime_new.h", -- "vcruntime_new_debug.h", -- "vcruntime_string.h", -- "vcruntime_startup.h", -- "vcruntime_typeinfo.h", --] -- - alias( - name = "msvc_include", - actual = "@msvc_runtime//:msvc_include", -@@ -104,30 +40,26 @@ - actual = "@msvc_runtime//:msvc_lib_x64", - ) - --copy_to_directory( -+# @msvc_runtime copies these subsets when it is fetched, so they are not -+# build actions. -+alias( - name = "msvc_vcruntime_headers_source", -- srcs = [":msvc_include"], -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_VCRUNTIME_HEADERS, -- root_paths = ["**/include"], -+ actual = "@msvc_runtime//:msvc_vcruntime_include", - ) - --directory_info( -+alias( - name = "msvc_vcruntime_headers", -- src = ":msvc_vcruntime_headers_source", -+ actual = "@msvc_runtime//:msvc_vcruntime_include", - ) - --copy_to_directory( -+alias( - name = "msvc_com_support_headers_source", -- srcs = [":msvc_include"], -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_COM_SUPPORT_HEADERS, -- root_paths = ["**/include"], -+ actual = "@msvc_runtime//:msvc_com_support_include", - ) - --directory_info( -+alias( - name = "msvc_com_support_headers", -- src = ":msvc_com_support_headers_source", -+ actual = "@msvc_runtime//:msvc_com_support_include", - ) - - case_insensitive_vfs_overlay( -@@ -150,62 +82,22 @@ - ], - ) - --copy_to_directory( -+alias( - name = "msvc_com_support_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_COM_SUPPORT_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_com_libraries", - ) - --copy_to_directory( -+alias( - name = "msvc_common_support_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_COMMON_SUPPORT_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_common_libraries", - ) - --copy_to_directory( -+alias( - name = "msvc_dynamic_runtime_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_DYNAMIC_RUNTIME_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_dynamic_libraries", - ) - --copy_to_directory( -+alias( - name = "msvc_static_runtime_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_STATIC_RUNTIME_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_static_libraries", - ) diff --git a/families/julia/third_party/rules_dx/llvm.stage0_runtime_features.patch b/families/julia/third_party/rules_dx/llvm.stage0_runtime_features.patch deleted file mode 100644 index b4a9edc8db..0000000000 --- a/families/julia/third_party/rules_dx/llvm.stage0_runtime_features.patch +++ /dev/null @@ -1,165 +0,0 @@ -diff -ruN a/tests/stage0_features/BUILD.bazel b/tests/stage0_features/BUILD.bazel ---- a/tests/stage0_features/BUILD.bazel 1970-01-01 01:00:00.000000000 +0100 -+++ b/tests/stage0_features/BUILD.bazel 2026-11-07 13:47:32.681561424 +0100 -@@ -0,0 +1,17 @@ -+load(":stage0_features_test.bzl", "bin_dir_probe", "stage0_bin_dir_probe", "stage0_features_test", "stage_roots") -+ -+bin_dir_probe(name = "probe") -+ -+stage0_bin_dir_probe(name = "stage0_probe") -+ -+stage_roots( -+ name = "roots", -+ bootstrap = ":probe", -+ tags = ["manual"], -+ with_cfg = ":stage0_probe", -+) -+ -+stage0_features_test( -+ name = "stage0_features_test", -+ target_under_test = ":roots", -+) -diff -ruN a/tests/stage0_features/stage0_features_test.bzl b/tests/stage0_features/stage0_features_test.bzl ---- a/tests/stage0_features/stage0_features_test.bzl 1970-01-01 01:00:00.000000000 +0100 -+++ b/tests/stage0_features/stage0_features_test.bzl 2026-11-07 13:47:32.681700032 +0100 -@@ -0,0 +1,54 @@ -+"""Tests that cc_stage0_object and the with_cfg stage0 runtimes share a configuration.""" -+ -+load("@bazel_skylib//lib:unittest.bzl", "analysistest", "asserts") -+load("@with_cfg.bzl", "with_cfg") -+load("//toolchain/runtimes:cc_stage0_object.bzl", "bootstrap_transition") -+load("//toolchain/runtimes:with_cfg_runtimes_common.bzl", "configure_builder_for_runtimes") -+ -+def _bin_dir_probe_impl(ctx): -+ out = ctx.actions.declare_file(ctx.label.name + ".txt") -+ ctx.actions.write(out, "") -+ return [DefaultInfo(files = depset([out]))] -+ -+bin_dir_probe = rule( -+ implementation = _bin_dir_probe_impl, -+) -+ -+stage0_bin_dir_probe, _stage0_bin_dir_probe_internal = configure_builder_for_runtimes( -+ with_cfg(bin_dir_probe), -+ "stage0", -+).build() -+ -+StageRootsInfo = provider( -+ doc = "Output roots of the same probe reached through both stage0 transitions.", -+ fields = ["bootstrap", "with_cfg"], -+) -+ -+def _stage_roots_impl(ctx): -+ return [StageRootsInfo( -+ bootstrap = ctx.file.bootstrap.root.path, -+ with_cfg = ctx.file.with_cfg.root.path, -+ )] -+ -+stage_roots = rule( -+ implementation = _stage_roots_impl, -+ attrs = { -+ "bootstrap": attr.label(allow_single_file = True, cfg = bootstrap_transition), -+ "with_cfg": attr.label(allow_single_file = True), -+ }, -+) -+ -+def _stage0_features_test_impl(ctx): -+ env = analysistest.begin(ctx) -+ roots = analysistest.target_under_test(env)[StageRootsInfo] -+ asserts.equals(env, roots.with_cfg, roots.bootstrap) -+ return analysistest.end(env) -+ -+# cc_stage0_object is reached from runtimes that already set the linkmode, which -+# bootstrap_transition leaves alone. -+stage0_features_test = analysistest.make( -+ _stage0_features_test_impl, -+ config_settings = { -+ str(Label("//runtimes:linkmode")): "static", -+ }, -+) -diff -ruN a/toolchain/runtimes/BUILD.bazel b/toolchain/runtimes/BUILD.bazel ---- a/toolchain/runtimes/BUILD.bazel 2026-11-07 13:47:31.802888290 +0100 -+++ b/toolchain/runtimes/BUILD.bazel 2026-11-07 13:47:31.811194201 +0100 -@@ -324,6 +324,7 @@ - srcs = ["cc_stage0_object.bzl"], - visibility = ["//visibility:public"], - deps = [ -+ "@llvm//toolchain/runtimes:with_cfg_runtimes_common", - "@rules_cc//cc:action_names_bzl", - "@rules_cc//cc:find_cc_toolchain_bzl", - "@rules_cc//cc/common", -diff -ruN a/toolchain/runtimes/cc_stage0_object.bzl b/toolchain/runtimes/cc_stage0_object.bzl ---- a/toolchain/runtimes/cc_stage0_object.bzl 2026-11-07 13:47:31.801872345 +0100 -+++ b/toolchain/runtimes/cc_stage0_object.bzl 2026-11-07 13:47:31.811147655 +0100 -@@ -1,10 +1,18 @@ -+load("@llvm//toolchain/runtimes:with_cfg_runtimes_common.bzl", "RUNTIME_RESET_FEATURES") - load("@rules_cc//cc:action_names.bzl", "ACTION_NAMES") - load("@rules_cc//cc:find_cc_toolchain.bzl", "CC_TOOLCHAIN_TYPE", "find_cc_toolchain", "use_cc_toolchain") - load("@rules_cc//cc/common:cc_common.bzl", "cc_common") - --#TODO(cerisier): use a single shared transition --bootstrap_transition = transition( -- implementation = lambda settings, attr: { -+def _bootstrap_transition_impl(settings, _attr): -+ features = settings["//command_line_option:features"] -+ -+ # Append the reset the same way with_cfg's extend does, so stage0 objects -+ # share a configuration with the other stage0 runtimes. -+ if features[-len(RUNTIME_RESET_FEATURES):] != RUNTIME_RESET_FEATURES: -+ features = features + RUNTIME_RESET_FEATURES -+ -+ return { -+ "//command_line_option:features": features, - # we are compiling runtimes without any kind of other dependencies - "//toolchain:runtime_stage": "stage0", - # Stage0 objects (crtbegin/crtend) are linked into every binary and -@@ -49,9 +57,13 @@ - "//config:host_xray": False, - "//config:host_fuzzer": False, - "//config:host_profile": False, -- }, -- inputs = [], -+ } -+ -+bootstrap_transition = transition( -+ implementation = _bootstrap_transition_impl, -+ inputs = ["//command_line_option:features"], - outputs = [ -+ "//command_line_option:features", - "//toolchain:runtime_stage", - "//command_line_option:copt", - "//command_line_option:cxxopt", -diff -ruN a/toolchain/runtimes/with_cfg_runtimes_common.bzl b/toolchain/runtimes/with_cfg_runtimes_common.bzl ---- a/toolchain/runtimes/with_cfg_runtimes_common.bzl 2026-11-07 13:47:31.802490308 +0100 -+++ b/toolchain/runtimes/with_cfg_runtimes_common.bzl 2026-11-07 13:47:31.811169606 +0100 -@@ -1,3 +1,13 @@ -+# Release policy is expressed through compiler-personality features rather -+# than user compile options. Reset it at the same runtime boundary as the -+# user options: each runtime owns its exception, RTTI, and frame-pointer -+# requirements independently from the final LLVM product. -+RUNTIME_RESET_FEATURES = [ -+ "-no_exceptions", -+ "-no_rtti", -+ "-omit_frame_pointer", -+] -+ - def configure_builder_for_runtimes(builder, runtime_stage, linkmode = "static", sanitizers = False, inherit_asan = False): - # The problem is that compiler-rt and start libs can only be compiled with - # a specific set of flags and compilation mode. It is not safe to let the user -@@ -12,15 +22,7 @@ - builder.set("host_conlyopt", []) - builder.set("host_linkopt", []) - -- # Release policy is expressed through compiler-personality features rather -- # than user compile options. Reset it at the same runtime boundary as the -- # options above: each runtime owns its exception, RTTI, and frame-pointer -- # requirements independently from the final LLVM product. -- builder.extend("features", [ -- "-no_exceptions", -- "-no_rtti", -- "-omit_frame_pointer", -- ]) -+ builder.extend("features", RUNTIME_RESET_FEATURES) - - # We are compiling runtimes without any kind of other dependencies. - builder.set( diff --git a/families/julia/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch b/families/julia/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch deleted file mode 100644 index 3ce2f77756..0000000000 --- a/families/julia/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch +++ /dev/null @@ -1,68 +0,0 @@ -diff -ruN a/private/llvm_project_archive.bzl b/private/llvm_project_archive.bzl ---- a/private/llvm_project_archive.bzl 2026-11-07 03:07:33.986516422 +0100 -+++ b/private/llvm_project_archive.bzl 2026-11-07 03:07:43.390885795 +0100 -@@ -133,14 +133,49 @@ - overlay_prefix.count("/") + 1, - ) - --def _copy_files(rctx): -+# Patches and overlay files under this tree are read as plain paths and the -+# tree is watched once. A path() call per label records one file input each, -+# and Bazel checks those one at a time against the repo contents cache. -+_LLVM_PROJECT_INPUTS = Label("//3rd_party/llvm-project:BUILD.bazel") -+ -+def _watch_llvm_project_inputs(rctx): -+ inputs = rctx.path(_LLVM_PROJECT_INPUTS).dirname -+ rctx.watch_tree(inputs) -+ return inputs.dirname.dirname -+ -+def _input_path(rctx, module_root, label): -+ if label.repo_name == _LLVM_PROJECT_INPUTS.repo_name and (label.package + "/").startswith(_LLVM_PROJECT_INPUTS.package + "/"): -+ return module_root.get_child(label.package, label.name) -+ return rctx.path(label) -+ -+def _native_patch_strip(rctx): -+ attr = rctx.attr -+ if attr.patch_tool or attr.patch_cmds or attr.patch_cmds_win or attr.remote_patches or attr.remote_module_file_urls: -+ return None -+ args = ["-p%s" % attr.patch_strip] + attr.patch_args -+ for arg in args: -+ if not arg.startswith("-p"): -+ return None -+ return int(args[-1][2:]) -+ -+def _patch(rctx, module_root): -+ strip = _native_patch_strip(rctx) -+ if strip == None: -+ return patch(rctx) -+ if rctx.attr.patches: -+ rctx.report_progress("Patching repository") -+ for label in rctx.attr.patches: -+ rctx.patch(_input_path(rctx, module_root, label), strip, watch_patch = "no") -+ return {} -+ -+def _copy_files(rctx, module_root): - files = dict(rctx.attr.overlay_files) - files.update(rctx.attr.files) - for path, label in files.items(): -- source = rctx.path(label) -+ source = _input_path(rctx, module_root, label) - if not source.exists: - fail("Input {} does not exist".format(label)) -- rctx.file(path, rctx.read(source), executable = False) -+ rctx.file(path, rctx.read(source, watch = "no"), executable = False) - - def _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info): - overrides = {} -@@ -178,8 +213,9 @@ - rctx.delete(archive) - - remote_files_info = download_remote_files(rctx) -- remote_patches_info = patch(rctx) -- _copy_files(rctx) -+ module_root = _watch_llvm_project_inputs(rctx) -+ remote_patches_info = _patch(rctx, module_root) -+ _copy_files(rctx, module_root) - write_llvm_project_files(rctx) - - return _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info) diff --git a/families/julia/third_party/rules_dx/protobuf.no_crate_universe.patch b/families/julia/third_party/rules_dx/protobuf.no_crate_universe.patch deleted file mode 100644 index ddbda76023..0000000000 --- a/families/julia/third_party/rules_dx/protobuf.no_crate_universe.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- a/MODULE.bazel -+++ b/MODULE.bazel -@@ -193,29 +193,6 @@ - versions = ["1.85.0"], - ) - --crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate") --crate.spec( -- package = "googletest", -- version = ">0.0.0", --) --crate.spec( -- package = "linkme", -- version = "0.3.35", --) --crate.spec( -- package = "paste", -- version = ">=1", --) --crate.spec( -- package = "quote", -- version = ">=1", --) --crate.spec( -- package = "syn", -- version = "2", --) --crate.from_specs() --use_repo(crate, crate_index = "crates") - - # Keep this list minimal; these dependencies will be part of the common `maven` install and could affect end-user projects. - PROTOBUF_MAVEN_ARTIFACTS = [ diff --git a/families/julia/third_party/rules_dx/rules_android.bundle_keystore_properties.patch b/families/julia/third_party/rules_dx/rules_android.bundle_keystore_properties.patch deleted file mode 100644 index 1e591f0c29..0000000000 --- a/families/julia/third_party/rules_dx/rules_android.bundle_keystore_properties.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/rules/common.bzl -+++ b/rules/common.bzl -@@ -118,10 +118,15 @@ - - def _create_signer_properties(ctx, oldest_key): - properties = ctx.actions.declare_file("%s/keystore.properties" % ctx.label.name) -- ctx.actions.expand_template( -- template = ctx.file._bundle_keystore_properties, -+ ctx.actions.write( - output = properties, -- substitutions = {"%oldest_key%": oldest_key.short_path}, -+ content = "\n".join([ -+ "ks=" + oldest_key.short_path, -+ "ks-key-alias=androiddebugkey", -+ "ks-pass=pass:android", -+ "key-pass=pass:android", -+ "", -+ ]), - ) - return properties - diff --git a/families/julia/third_party/rules_dx/rules_dart.coverage.patch b/families/julia/third_party/rules_dx/rules_dart.coverage.patch deleted file mode 100644 index a29a09c5ca..0000000000 --- a/families/julia/third_party/rules_dx/rules_dart.coverage.patch +++ /dev/null @@ -1,84 +0,0 @@ -diff -ruN a/dart/private/tools/test_runner.dart b/dart/private/tools/test_runner.dart ---- a/dart/private/tools/test_runner.dart -+++ b/dart/private/tools/test_runner.dart -@@ -146,6 +146,8 @@ - final xmlOutput = env['XML_OUTPUT_FILE']; - final shardStatus = env['TEST_SHARD_STATUS_FILE']; - final report = _join(tmp.path, 'results.json'); -+ final coverageOutput = env['COVERAGE_OUTPUT_FILE']; -+ final coverageDir = File(_join(tmp.path, 'coverage/raw')).parent.path; - - // Touched before the run, as Bazel asks: it is how a test runner says it - // supports sharding at all. -@@ -165,6 +167,7 @@ - // timeout a test states on its own case, and that one is the author's. - '--timeout=${_suiteTimeout(env)}', - '--file-reporter=json:$report', -+ if (coverageOutput != null) '--coverage=$coverageDir', - if (filter != null && filter.isNotEmpty) ...['--name', filter], - if (totalShards != null && shardIndex != null) ...[ - '--total-shards', -@@ -196,6 +199,15 @@ - code = 0; - } - -+ if (coverageOutput != null) { -+ final documents = [ -+ for (final entity in Directory(coverageDir).listSync(recursive: true)) -+ if (entity is File && entity.path.endsWith('.json')) -+ entity.readAsStringSync(), -+ ]; -+ File(coverageOutput).writeAsStringSync(lcovFromCoverage(documents)); -+ } -+ - if (xmlOutput != null) { - final reportFile = File(report); - if (reportFile.existsSync()) { -@@ -207,6 +219,47 @@ - return code; - } - -+/// Converts the VM service coverage `package:test --coverage` writes into LCOV. -+/// -+/// Sources are reported as the VM names them: `org-dartlang-root:///` for -+/// files of the workspace and `package:/` for libraries. The `dart:` -+/// core libraries and the test bootstrap are left out. -+String lcovFromCoverage(List documents) { -+ final hits = >{}; -+ for (final document in documents) { -+ final decoded = jsonDecode(document); -+ if (decoded is! Map) continue; -+ for (final entry in (decoded['coverage'] as List? ?? const [])) { -+ final source = (entry as Map)['source'] as String; -+ final reportable = -+ source.startsWith('org-dartlang-root:///') || -+ source.startsWith('package:'); -+ if (!reportable || source.endsWith('.vm_test.dart')) continue; -+ final lines = hits.putIfAbsent(source, () => {}); -+ final pairs = (entry['hits'] as List).cast(); -+ for (var i = 0; i + 1 < pairs.length; i += 2) { -+ if (pairs[i + 1] > (lines[pairs[i]] ?? -1)) { -+ lines[pairs[i]] = pairs[i + 1]; -+ } -+ } -+ } -+ } -+ final out = StringBuffer(); -+ for (final source in hits.keys.toList()..sort()) { -+ final lines = hits[source]!; -+ final numbers = lines.keys.toList()..sort(); -+ out.writeln('SF:$source'); -+ for (final line in numbers) { -+ out.writeln('DA:$line,${lines[line]}'); -+ } -+ out -+ ..writeln('LF:${numbers.length}') -+ ..writeln('LH:${numbers.where((line) => lines[line]! > 0).length}') -+ ..writeln('end_of_record'); -+ } -+ return out.toString(); -+} -+ - /// Lays out `workspace`'s runfiles under [into] from the lines of a runfiles - /// manifest, each ` `. - /// diff --git a/families/julia/third_party/rules_dx/rules_dart.external_pkgsrcs.patch b/families/julia/third_party/rules_dx/rules_dart.external_pkgsrcs.patch deleted file mode 100644 index 7e0d9a4f49..0000000000 --- a/families/julia/third_party/rules_dx/rules_dart.external_pkgsrcs.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -ruN a/dart/private/source_set.bzl b/dart/private/source_set.bzl ---- a/dart/private/source_set.bzl -+++ b/dart/private/source_set.bzl -@@ -183,11 +183,22 @@ - mangled = p.package_name - for ch in ["/", ":", ".", "+"]: - mangled = mangled.replace(ch, "_") -+ root_paths = [p.lib_root] if p.lib_root else ["."] -+ external_repos = [] -+ if p.lib_root.startswith("../"): -+ # An external package's lib_root is short_path style -+ # (`../repo/pkg`), but copy_to_directory drops external files -+ # unless their repo is listed and matches root_paths against the -+ # repo-relative path (`pkg`). -+ repo, _, rest = p.lib_root[len("../"):].partition("/") -+ root_paths = [rest] if rest else [] -+ external_repos = [repo] - assembled = assemble_source_dir( - ctx, - ctx.label.name + "." + mangled + ".pkgsrcs", - files, -- root_paths = [p.lib_root] if p.lib_root else ["."], -+ root_paths = root_paths, -+ include_external_repositories = external_repos, - ) - - # Only `lib_root` changes. Everything else the record carries — diff --git a/families/julia/third_party/rules_dx/rules_dx.MODULE.bazel b/families/julia/third_party/rules_dx/rules_dx.MODULE.bazel deleted file mode 100644 index bec8122ced..0000000000 --- a/families/julia/third_party/rules_dx/rules_dx.MODULE.bazel +++ /dev/null @@ -1,174 +0,0 @@ -# Generated by dx; do not edit. Regenerate with `tools/dx init --apply`. -# Root-only overrides rules_dx needs; see -# https://github.com/devhusdk/rules_dx/blob/main/patches/README.md - -single_version_override( - module_name = "rules_rust", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_rust.clippy_metadata_inputs.patch", - "//third_party/rules_dx:rules_rust.pipelined_rmeta_path.patch", - "//third_party/rules_dx:rules_rust.crate_universe_root_lookup.patch", - "//third_party/rules_dx:rules_rust.exec_cc_toolchain_env.patch", - "//third_party/rules_dx:rules_rust.msvc_pdb_output.patch", - "//third_party/rules_dx:rules_rust.rust_lld_msvc_libpath.patch", - "//third_party/rules_dx:rules_rust.crate_universe_lazy_host_tools.patch", - "//third_party/rules_dx:rules_rust.cargo_toml_env_vars_flag.patch", - ], - version = "0.75.0", -) - -single_version_override( - module_name = "rules_android", - patch_strip = 1, - patches = ["//third_party/rules_dx:rules_android.bundle_keystore_properties.patch"], - version = "0.8.0", -) - -single_version_override( - module_name = "rules_kotlin", - patch_strip = 1, - patches = ["//third_party/rules_dx:rules_kotlin.windows_coverage_test_suite.patch"], - version = "2.4.21", -) - -single_version_override( - module_name = "rules_dart", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_dart.coverage.patch", - "//third_party/rules_dx:rules_dart.external_pkgsrcs.patch", - ], - version = "0.8.1", -) - -single_version_override( - module_name = "rules_julia", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_julia.package_annotation_version.patch", - "//third_party/rules_dx:rules_julia.package_name.patch", - "//third_party/rules_dx:rules_julia.portable_cpu_target.patch", - "//third_party/rules_dx:rules_julia.template_action_input.patch", - ], - version = "0.8.0", -) - -single_version_override( - module_name = "protobuf", - patch_strip = 1, - patches = ["//third_party/rules_dx:protobuf.no_crate_universe.patch"], - version = "36.2", -) - -single_version_override( - module_name = "rules_python", - patch_strip = 1, - patches = ["//third_party/rules_dx:rules_python.single_import_lib.patch"], - version = "2.4.6", -) - -archive_override( - module_name = "rules_py", - integrity = "sha256-TlCUj7uFZKizo7HzVM2ex//f4wT2PGpf6x/bz7/Hgr0=", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_py.py_cc_toolchain_platform.patch", - "//third_party/rules_dx:rules_py.native_sdist_toolchain_flags.patch", - "//third_party/rules_dx:rules_py.pep517_msvc.patch", - "//third_party/rules_dx:rules_py.venv_bin_files.patch", - "//third_party/rules_dx:rules_py.host_interpreter_windows_arm64.patch", - "//third_party/rules_dx:rules_py.external_repo_pytest_paths.patch", - ], - strip_prefix = "rules_py-2.0.0-alpha.11", - urls = ["https://github.com/aspect-build/rules_py/releases/download/v2.0.0-alpha.11/rules_py-v2.0.0-alpha.11.tar.gz"], -) - -single_version_override( - module_name = "aspect_rules_ts", - patch_strip = 1, - patches = ["//third_party/rules_dx:aspect_rules_ts.typecheck_root_dir.patch"], - version = "3.10.1", -) - -single_version_override( - module_name = "avro-cpp", - patch_strip = 1, - patches = ["//third_party/rules_dx:avro-cpp.iterator.patch"], - version = "1.12.0.bcr.1", -) - -single_version_override( - module_name = "gcc_toolchain", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:gcc_toolchain.sanitizer_spec.patch", - "//third_party/rules_dx:gcc_toolchain.runtime_libs.patch", - "//third_party/rules_dx:gcc_toolchain.target_identity_config.patch", - "//third_party/rules_dx:gcc_toolchain.target_identity_defs.patch", - "//third_party/rules_dx:gcc_toolchain.target_identity_extension.patch", - "//third_party/rules_dx:gcc_toolchain.native_include_layout.patch", - ], - version = "0.13.0", -) - -single_version_override( - module_name = "fmt", - version = "12.2.0.bcr.1", -) - -single_version_override( - module_name = "rules_flutter", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_flutter.missing_font.patch", - "//third_party/rules_dx:rules_flutter.lock_extension.patch", - "//third_party/rules_dx:rules_flutter.registrant_javacopts.patch", - ], - version = "0.0.8", -) - -single_version_override( - module_name = "hermetic_launcher", - patch_strip = 1, - patches = ["//third_party/rules_dx:hermetic_launcher.windows_arm64_toolchains.patch"], - version = "0.0.17", -) - -single_version_override( - module_name = "llvm", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:llvm.libunwind_copy.patch", - "//third_party/rules_dx:llvm.clang_cl_crt_default_lib.patch", - "//third_party/rules_dx:llvm.unwatched_overlay_inputs.patch", - "//third_party/rules_dx:llvm.msvc_source_directories.patch", - "//third_party/rules_dx:llvm.lse_atomic_sources.patch", - "//third_party/rules_dx:llvm.stage0_runtime_features.patch", - "//third_party/rules_dx:llvm.aarch64_outline_atomics.patch", - ], - version = "0.8.26", -) - -single_version_override( - module_name = "windows_support", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:windows_support.host_tools.patch", - "//third_party/rules_dx:windows_support.rules_dx_hosts.patch", - "//third_party/rules_dx:windows_support.hostarm64_packages.patch", - "//third_party/rules_dx:windows_support.dx_msvc_layout.patch", - "//third_party/rules_dx:windows_support.source_directory_headers.patch", - ], - version = "0.4.1", -) - -single_version_override( - module_name = "rules_swift", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_swift.toolchain_sysroot_env.patch", - "//third_party/rules_dx:rules_swift.non_root_toolchain.patch", - ], - version = "4.2.2", -) diff --git a/families/julia/third_party/rules_dx/rules_flutter.lock_extension.patch b/families/julia/third_party/rules_dx/rules_flutter.lock_extension.patch deleted file mode 100644 index bc042b3bd7..0000000000 --- a/families/julia/third_party/rules_dx/rules_flutter.lock_extension.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/flutter/extensions.bzl -+++ b/flutter/extensions.bzl -@@ -262,7 +262,7 @@ - # the full set makes tidy force repos they don't. Letting users maintain - # their own use_repo lists (rules_python does the same) is the right - # tradeoff for an extension with this many optional outputs. -- return module_ctx.extension_metadata(reproducible = True) -+ return module_ctx.extension_metadata(reproducible = False) - - flutter = module_extension( - implementation = _toolchain_extension, diff --git a/families/julia/third_party/rules_dx/rules_flutter.missing_font.patch b/families/julia/third_party/rules_dx/rules_flutter.missing_font.patch deleted file mode 100644 index 447f91a11b..0000000000 --- a/families/julia/third_party/rules_dx/rules_flutter.missing_font.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/flutter/private/flutter_library.bzl b/flutter/private/flutter_library.bzl -index 7eb21be..51e9f12 100644 ---- a/flutter/private/flutter_library.bzl -+++ b/flutter/private/flutter_library.bzl -@@ -57,8 +57,9 @@ def build_pub_contributions(package_name, fonts_json, font_files_dict, pkg_asset - weight = font.get("weight"), - style = font.get("style"), - )) -- if asset_path in path_to_file: -- file_list.append(path_to_file[asset_path]) -+ if asset_path not in path_to_file: -+ fail("fonts_json names font asset \"%s\" but font_files does not provide it" % asset_path) -+ file_list.append(path_to_file[asset_path]) - extra_pub_fonts.append(struct( - package_name = package_name, - family = family, diff --git a/families/julia/third_party/rules_dx/rules_flutter.registrant_javacopts.patch b/families/julia/third_party/rules_dx/rules_flutter.registrant_javacopts.patch deleted file mode 100644 index 0d5a787241..0000000000 --- a/families/julia/third_party/rules_dx/rules_flutter.registrant_javacopts.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- a/flutter/android.bzl -+++ b/flutter/android.bzl -@@ -52,6 +52,7 @@ - load("@bazel_skylib//rules:write_file.bzl", "write_file") - load("@rules_android//android:rules.bzl", _android_binary = "android_binary", _android_library = "android_library") - load("@rules_java//java:java_import.bzl", _java_import = "java_import") -+load("@rules_kotlin//kotlin:jvm.bzl", _kt_javac_options = "kt_javac_options") - load("@rules_kotlin//kotlin:android.bzl", _kt_android_library = "kt_android_library") - load("//flutter/private:constants.bzl", _ANDROID_ABI_FOR_ARCH = "ANDROID_ABI_FOR_ARCH", _ANDROID_MIN_SDK_VERSION = "ANDROID_MIN_SDK_VERSION", _ANDROID_TARGET_SDK_VERSION = "ANDROID_TARGET_SDK_VERSION") - load("//flutter/private:flutter_android_application.bzl", _flutter_android_bundle = "flutter_android_bundle") -@@ -621,10 +622,16 @@ - registrant_deps.append("@%s//android:all_android_plugin_libs" % pub_hub_name) - registrant_deps = registrant_deps + deps - -+ _kt_javac_options( -+ name = "__%s_registrant_javac_opts" % name, -+ x_lint = ["-options"], -+ ) -+ - _kt_android_library( - name = "__%s_registrant" % name, - srcs = ["__%s_registrant_src" % name], - custom_package = "io.flutter.plugins", -+ javac_opts = "__%s_registrant_javac_opts" % name, - tags = tags, - deps = registrant_deps, - ) diff --git a/families/julia/third_party/rules_dx/rules_julia.package_annotation_version.patch b/families/julia/third_party/rules_dx/rules_julia.package_annotation_version.patch deleted file mode 100644 index d6ea02e65e..0000000000 --- a/families/julia/third_party/rules_dx/rules_julia.package_annotation_version.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/julia/pkg/private/pkg.bzl -+++ b/julia/pkg/private/pkg.bzl -@@ -482,7 +482,7 @@ - deps = [dep for dep in all_deps if dep in all_package_names] - - repo_name = "{}__{}".format(prefix, package_name) -- package_annotations = annotations.get(package_name) -+ package_annotations = annotations.get("{}@{}".format(package_name, version)) or annotations.get(package_name) - - artifact_deps = _artifact_repositories( - hub = attrs.name, diff --git a/families/julia/third_party/rules_dx/rules_julia.package_name.patch b/families/julia/third_party/rules_dx/rules_julia.package_name.patch deleted file mode 100644 index 35c6c5b1a0..0000000000 --- a/families/julia/third_party/rules_dx/rules_julia.package_name.patch +++ /dev/null @@ -1,76 +0,0 @@ -diff -ruN a/julia/private/julia.bzl b/julia/private/julia.bzl ---- a/julia/private/julia.bzl -+++ b/julia/private/julia.bzl -@@ -40,6 +40,7 @@ - depot = julia_common.precompile( - ctx, - name = ctx.label.name, -+ package = ctx.attr.package_name or ctx.label.name, - includes = includes, - runfiles = runfiles, - dep_depots = dep_depots, -@@ -51,7 +52,7 @@ - - return [ - JuliaInfo( -- app_name = ctx.label.name, -+ app_name = ctx.attr.package_name or ctx.label.name, - srcs = srcs, - transitive_srcs = transitive_srcs, - include = layout.include, -diff -ruN a/julia/private/julia_common.bzl b/julia/private/julia_common.bzl ---- a/julia/private/julia_common.bzl -+++ b/julia/private/julia_common.bzl -@@ -202,7 +202,7 @@ - - path = "{}/{}".format(workspace_name, ctx.label.package).rstrip("/") - -- entry_name = ctx.label.name + ".jl" -+ entry_name = (ctx.attr.package_name or ctx.label.name) + ".jl" - if "src/" + entry_name in rel_paths: - src_layout = True - entry = rel_paths["src/" + entry_name] -@@ -476,7 +476,7 @@ - - return [ - JuliaInfo( -- app_name = ctx.label.name, -+ app_name = ctx.attr.package_name or ctx.label.name, - srcs = depset(srcs), - transitive_srcs = transitive_srcs, - include = layout.include, -@@ -579,12 +579,13 @@ - **kwargs - ) - --def _precompile(ctx, *, name, includes, runfiles, dep_depots, toolchain_info, artifact_depots = None): -+def _precompile(ctx, *, name, includes, runfiles, dep_depots, toolchain_info, artifact_depots = None, package = None): - """Precompile a Julia package into a depot directory. - - Args: - ctx: Rule context. -- name (str): The package (module) name. -+ name (str): The name used for output files. -+ package (str): The package (module) name; defaults to name. - includes (depset[str]): Include paths of the package and its dependencies. - runfiles (runfiles): Runfiles of the package and its dependencies. - dep_depots (depset[File]): Depots of dependencies. -@@ -609,7 +610,7 @@ - args.add("--config", config) - args.add("--manifest", manifest) - args.add("--depot", depot.path) -- args.add("--package", name) -+ args.add("--package", package or name) - - _run_driver( - ctx, -@@ -626,6 +627,9 @@ - - # Attributes every rule using the build-time drivers needs. - DRIVER_ATTRS = { -+ "package_name": attr.string( -+ doc = "Package name; picks the `.jl` entry. Defaults to the target name.", -+ ), - "_rules_julia_common": attr.label( - default = Label("//julia/private:rules_julia_common.jl"), - allow_single_file = True, diff --git a/families/julia/third_party/rules_dx/rules_julia.portable_cpu_target.patch b/families/julia/third_party/rules_dx/rules_julia.portable_cpu_target.patch deleted file mode 100644 index a17dd37e9f..0000000000 --- a/families/julia/third_party/rules_dx/rules_julia.portable_cpu_target.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -ruN a/julia/private/precompile.jl b/julia/private/precompile.jl ---- a/julia/private/precompile.jl -+++ b/julia/private/precompile.jl -@@ -11,6 +11,15 @@ - - include(joinpath(@__DIR__, "rules_julia_common.jl")) - -+# Package images default to the build host's CPU, which a remote worker with a -+# different CPU rejects. Build for the same portable targets as Julia's own -+# images instead. -+function portable_cpu_target() -+ Sys.ARCH === :x86_64 && return "generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)" -+ Sys.ARCH === :aarch64 && return "generic;cortex-a57;thunderx2t99;carmel,clone_all;apple-m1,base(3);neoverse-512tvb,base(3)" -+ return "generic" -+end -+ - function main() - flags = parse_flags(ARGS; scalars = ["--config", "--manifest", "--depot", "--package"]) - config = require_flag(flags, "--config") -@@ -25,6 +34,8 @@ - - # Julia writes new caches to the first depot. The tree and dependency - # depots follow, then the bundled depots for stdlib caches. -+ ENV["JULIA_CPU_TARGET"] = portable_cpu_target() -+ - copy!(DEPOT_PATH, [depot]) - configure_depots!(tree, depots) - append_bundled_depots!(DEPOT_PATH) diff --git a/families/julia/third_party/rules_dx/rules_julia.template_action_input.patch b/families/julia/third_party/rules_dx/rules_julia.template_action_input.patch deleted file mode 100644 index 92a496a1e0..0000000000 --- a/families/julia/third_party/rules_dx/rules_julia.template_action_input.patch +++ /dev/null @@ -1,60 +0,0 @@ -diff -ruN a/julia/private/julia_common.bzl b/julia/private/julia_common.bzl ---- a/julia/private/julia_common.bzl 2026-11-09 15:12:22.821045394 +0100 -+++ b/julia/private/julia_common.bzl 2026-11-09 15:12:22.830896307 +0100 -@@ -383,19 +383,32 @@ - else: - julia_flags_str = " ".join([_shell_quote(arg) for arg in all_flags]) - -- ctx.actions.expand_template( -- template = template_file, -- output = wrapper, -- substitutions = { -- "{config}": config_rloc, -- "{entrypoint}": entrypoint_rloc, -- "{interpreter}": julia_rloc, -- "{julia_flags}": julia_flags_str, -- "{main}": main_rloc, -- "{sysimage}": sysimage_rloc, -- "{test_compiled_modules}": test_compiled_modules, -- }, -- is_executable = True, -+ # The template is generated by an action, so it must be an action input. -+ # expand_template reads it during analysis, which fails when the template -+ # is not downloaded locally (the default remote download mode). -+ args = ctx.actions.args() -+ args.add("--output", wrapper) -+ args.add("--template", template_file) -+ for old, new in { -+ "{config}": config_rloc, -+ "{entrypoint}": entrypoint_rloc, -+ "{interpreter}": julia_rloc, -+ "{julia_flags}": julia_flags_str, -+ "{main}": main_rloc, -+ "{sysimage}": sysimage_rloc, -+ "{test_compiled_modules}": test_compiled_modules, -+ }.items(): -+ args.add("--substitution") -+ args.add(old) -+ args.add(new) -+ _run_driver( -+ ctx, -+ toolchain_info = toolchain_info, -+ driver = ctx.file._wrapper_maker, -+ arguments = args, -+ inputs = depset([template_file]), -+ outputs = [wrapper], -+ mnemonic = "JuliaWrapper", - ) - - return wrapper -@@ -642,6 +655,10 @@ - default = Label("//julia/private:entrypoint.jl"), - allow_single_file = True, - ), -+ "_wrapper_maker": attr.label( -+ default = Label("//julia/private:binary_wrapper_maker.jl"), -+ allow_single_file = True, -+ ), - "_wrapper_template": attr.label( - default = Label("//julia/private:binary_wrapper.tpl"), - allow_single_file = True, diff --git a/families/julia/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch b/families/julia/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch deleted file mode 100644 index d5c389c999..0000000000 --- a/families/julia/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/kotlin/internal/jvm/impl.bzl -+++ b/kotlin/internal/jvm/impl.bzl -@@ -171,10 +171,6 @@ - jar.short_path.replace("../", "external/") - for jar in rjars.to_list() - ])) -- jvm_flags_list.extend([ -- "-ea", -- "-Dbazel.test_suite=" + main_class, -- ]) - _create_windows_exe_launcher( - ctx, - executable = executable, diff --git a/families/julia/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch b/families/julia/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch deleted file mode 100644 index 1c1a865474..0000000000 --- a/families/julia/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/py/private/pytest_main.py -+++ b/py/private/pytest_main.py -@@ -40,7 +40,14 @@ - target_name = os.environ.get("BAZEL_TARGET_NAME", "") - target = os.environ.get("BAZEL_TARGET", "") - if target: -- package = target.split(":")[0].lstrip("/") -+ repo, sep, label = target.partition("//") -+ if not sep: -+ repo, label = "", target -+ package = label.split(":")[0].lstrip("/") -+ repo = repo.lstrip("@") -+ if repo: -+ # A target in an external repository lives at ..//. -+ package = os.path.join("..", repo, package) - paths_file = os.path.join(package, target_name + ".pytest_paths") - if os.path.isfile(paths_file): - with open(paths_file) as f: diff --git a/families/julia/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch b/families/julia/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch deleted file mode 100644 index e3e9e912d3..0000000000 --- a/families/julia/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/MODULE.bazel -+++ b/MODULE.bazel -@@ -73,6 +73,7 @@ - # Individual platform repos — must be visible so the uv extension can - # reference the host interpreter for sdist configure tooling. - "python_3_13_aarch64_apple_darwin", -+ "python_3_13_aarch64_pc_windows_msvc", - "python_3_13_aarch64_unknown_linux_gnu", - "python_3_13_aarch64_unknown_linux_musl", - "python_3_13_i686_pc_windows_msvc", diff --git a/families/julia/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch b/families/julia/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch deleted file mode 100644 index 4c5d28c86e..0000000000 --- a/families/julia/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch +++ /dev/null @@ -1,220 +0,0 @@ -diff --git a/uv/private/extension/defs.bzl b/uv/private/extension/defs.bzl ---- a/uv/private/extension/defs.bzl -+++ b/uv/private/extension/defs.bzl -@@ -1055,7 +1055,7 @@ - ), - "env": attr.string_dict( - default = {}, -- doc = "Extra environment variables merged into the build action's `env` dict. Values may reference $(VAR) make-variables sourced from extra `toolchains` listed above. Prefix an execroot-relative path with `$(EXECROOT)/` so it remains valid after the backend changes into the unpacked source tree. Omit CC/CXX/AR/LD/STRIP to use the configured C++ action tools.", -+ doc = "Extra environment variables merged into the build action's `env` dict. Values may reference $(VAR) make-variables sourced from extra `toolchains` listed above. Prefix an execroot-relative path with `$(EXECROOT)/` so it remains valid after the backend changes into the unpacked source tree. Omit CC/CXX/AR/LD/STRIP to use the configured C++ action tools; while CC and CXX are omitted, the toolchain's compile and link flags are passed too.", - ), - "config_settings": attr.string_list_dict( - default = {}, -diff --git a/uv/private/pep517_whl/cc_layer.bzl b/uv/private/pep517_whl/cc_layer.bzl ---- a/uv/private/pep517_whl/cc_layer.bzl -+++ b/uv/private/pep517_whl/cc_layer.bzl -@@ -13,6 +13,9 @@ - - _PATH_FLAG_PREFIXES = ("-I", "-L", "-isysroot", "-iwithsysroot", "-isystem", "-B") - -+# Execroot-relative roots a `-flag=` value may start with. -+_EXECROOT_ROOTS = ("external/", "bazel-out/") -+ - CC_LAYER_ATTRS = { - "_os_linux": attr.label(default = "@platforms//os:linux"), - "_os_macos": attr.label(default = "@platforms//os:macos"), -@@ -41,6 +44,13 @@ - rest = flag[len(pfx):] - if rest and not rest.startswith("/") and "/" in rest: - return pfx + _EXECROOT_MARKER + "/" + rest -+ -+ # `-resource-dir=`, `-fsanitize-ignorelist=`, `-Wl,--opt=` and similar -+ # carry an execroot-relative path after the first `=`. `--sysroot=` is -+ # left to build_helper's _absolutize_sysroot_flags. -+ name, sep, value = flag.partition("=") -+ if sep and name != "--sysroot" and value.startswith(_EXECROOT_ROOTS): -+ return name + sep + _EXECROOT_MARKER + "/" + value - return flag - - def get_target_platform(ctx): -@@ -73,8 +83,9 @@ - def extract_cc_layer(ctx, cc_toolchain): - """Extract CC toolchain tools, flags, and target platform info. - -- Called only in cross-compilation mode. The native path relies on the -- existing _cc_toolchain_inputs_and_tools + backend self-discovery. -+ Called for cross builds and for native builds whose toolchain carries a -+ feature configuration: a hermetic toolchain supplies its libc headers, -+ crt objects and runtime only through these flags. - - Args: - ctx: The rule context. Must include CC_LAYER_ATTRS and -diff --git a/uv/private/pep517_whl/pep517_native_whl.bzl b/uv/private/pep517_whl/pep517_native_whl.bzl ---- a/uv/private/pep517_whl/pep517_native_whl.bzl -+++ b/uv/private/pep517_whl/pep517_native_whl.bzl -@@ -308,10 +308,21 @@ - env[_INFER_CXX_COMPANION] = "1" - - cross_args = [] -- if cross: -- cc_toolchain = cc_toolchain_raw -- if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -- cc_toolchain = cc_toolchain.cc -+ cc_toolchain = cc_toolchain_raw -+ if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -+ cc_toolchain = cc_toolchain.cc -+ -+ # A hermetic C++ toolchain reaches its libc headers, crt objects and -+ # runtime only through its action flags, so native builds need them too. -+ # Native builds keep the backend's self-discovery when `env` replaces the -+ # toolchain's compiler (its flags may not suit another driver) or the -+ # provider has no feature configuration to derive flags from. -+ native_toolchain_flags = ( -+ hasattr(cc_toolchain, "ar_executable") and -+ "CC" not in ctx.attr.env and -+ "CXX" not in ctx.attr.env -+ ) -+ if cross or native_toolchain_flags: - cc_layer = extract_cc_layer(ctx, cc_toolchain) - - # Toolchain flags first, then any flags the package set via `env` -@@ -338,31 +349,34 @@ - if cc_layer.static_runtime_paths: - env["RULES_PY_CXX_STATIC_RUNTIME"] = ":".join(cc_layer.static_runtime_paths) - -- cross_args = [ -- "--cross", -- "--target-os", -- cc_layer.target_os or "", -- "--target-cpu", -- cc_layer.target_cpu or "", -- "--target-libc", -- ctx.attr._platform_libc[BuildSettingInfo].value, -- ] -- -- py_toolchain = ctx.toolchains[PY_TOOLCHAIN] -- if py_toolchain != None: -- runtime = getattr(py_toolchain, "py3_runtime", None) -- if runtime: -- artifacts = _target_python_artifacts(runtime) -- if artifacts.sysconfig: -- extra_inputs.append(depset([artifacts.sysconfig])) -- env["RULES_PY_TARGET_SYSCONFIGDATA"] = artifacts.sysconfig.path -- if artifacts.include_dir: -- extra_inputs.append(depset(artifacts.include_files)) -- env["RULES_PY_TARGET_INCLUDE"] = artifacts.include_dir -- -- host_platform = _derive_python_host_platform(cc_layer.target_os, cc_layer.target_cpu) -- if host_platform: -- env["_PYTHON_HOST_PLATFORM"] = host_platform -+ if not cross: -+ cross_args = ["--toolchain-flags"] -+ else: -+ cross_args = [ -+ "--cross", -+ "--target-os", -+ cc_layer.target_os or "", -+ "--target-cpu", -+ cc_layer.target_cpu or "", -+ "--target-libc", -+ ctx.attr._platform_libc[BuildSettingInfo].value, -+ ] -+ -+ py_toolchain = ctx.toolchains[PY_TOOLCHAIN] -+ if py_toolchain != None: -+ runtime = getattr(py_toolchain, "py3_runtime", None) -+ if runtime: -+ artifacts = _target_python_artifacts(runtime) -+ if artifacts.sysconfig: -+ extra_inputs.append(depset([artifacts.sysconfig])) -+ env["RULES_PY_TARGET_SYSCONFIGDATA"] = artifacts.sysconfig.path -+ if artifacts.include_dir: -+ extra_inputs.append(depset(artifacts.include_files)) -+ env["RULES_PY_TARGET_INCLUDE"] = artifacts.include_dir -+ -+ host_platform = _derive_python_host_platform(cc_layer.target_os, cc_layer.target_cpu) -+ if host_platform: -+ env["_PYTHON_HOST_PLATFORM"] = host_platform - - tool = ctx.attr.tool[DefaultInfo].files_to_run - io_args = ctx.actions.args() -@@ -418,7 +432,8 @@ - "execroot-relative path with " + - "`$(EXECROOT)/` so it remains valid after the backend changes into " + - "the unpacked source tree. Omit CC/CXX/AR/LD/STRIP to use the " + -- "configured C++ action tools.", -+ "configured C++ action tools; while CC and CXX are omitted, " + -+ "the toolchain's compile and link flags are passed too.", - ), - "_platform_libc": attr.label( - default = "//uv/private/constraints/platform:platform_libc", -diff --git a/uv/private/pep517_whl/tools/build_helper.py b/uv/private/pep517_whl/tools/build_helper.py ---- a/uv/private/pep517_whl/tools/build_helper.py -+++ b/uv/private/pep517_whl/tools/build_helper.py -@@ -582,6 +582,7 @@ - cross: bool = False, - target_os: str = "", - target_cpu: str = "", -+ toolchain_flags: bool = False, - ) -> dict[str, str]: - env = dict(os.environ) - if execroot_marker: -@@ -634,8 +635,9 @@ - cxx_path = _local_cxx_companion(env.get("CXX"), cxx_path) - - sysroot = _darwin_sysroot() -+ toolchain_flags = toolchain_flags or cross - -- if cross: -+ if toolchain_flags: - # Toolchain flag strings (from cc_layer.bzl) contain execroot-relative - # sysroots; absolutize while still in the execroot, before the backend - # chdirs into the unpacked sdist. -@@ -650,14 +652,15 @@ - # runtime's: distutils still injects the running interpreter's - # include path, but CFLAGS-supplied -I directories are searched - # first. -- target_include = env.pop("RULES_PY_TARGET_INCLUDE", "") -+ target_include = env.pop("RULES_PY_TARGET_INCLUDE", "") if cross else "" - if target_include: - include_flag = "-I" + _absolutize_path(target_include) - for key in ("CFLAGS", "CXXFLAGS"): - env[key] = (include_flag + " " + env.get(key, "")).strip() - - wrapper_flags = _get_wrapper_flags(env.get("CFLAGS", "")) -- is_darwin_target = target_os == "darwin" -+ # A native build targets the exec host's own OS. -+ is_darwin_target = target_os == "darwin" if cross else _platform.system() == "Darwin" - - # An LLVM-style toolchain (BCR `llvm` module) reaches its crt objects - # and runtime libraries only through the link action's flags; detect -@@ -691,11 +694,12 @@ - env.setdefault("CC", cc) - env.setdefault("CXX", cxx) - -- if cross: -+ if toolchain_flags: - ldshared_flags = env.get("LDSHAREDFLAGS", "") - env["LDSHARED"] = cc + ((" " + ldshared_flags) if ldshared_flags else "") - env["LDCXXSHARED"] = cxx + ((" " + ldshared_flags) if ldshared_flags else "") - -+ if cross: - deployment_target = None - target_sysconfig = env.get("RULES_PY_TARGET_SYSCONFIGDATA") - if target_sysconfig and path.exists(target_sysconfig): -@@ -1135,6 +1139,7 @@ - PARSER.add_argument("--patch", action="append", default=[], dest="patches", help="Patch file to apply (repeatable)") - PARSER.add_argument("--execroot-marker", help="Token in env values to replace with the absolute execroot") - PARSER.add_argument("--cross", action="store_true", help="Cross-compilation mode: target platform != exec platform") -+PARSER.add_argument("--toolchain-flags", action="store_true", help="CFLAGS/CXXFLAGS/LDFLAGS/LDSHAREDFLAGS carry the C++ toolchain's action flags") - PARSER.add_argument("--target-os", default="", help="Target platform OS the wheel must be tagged for (linux, darwin, windows)") - PARSER.add_argument("--target-libc", default="", help="Target platform C library the wheel must link against (glibc, musl, libsystem)") - PARSER.add_argument("--target-cpu", default="", help="Target platform CPU the wheel must be tagged for (x86_64, aarch64, ...)") -@@ -1191,6 +1196,7 @@ - cross=opts.cross, - target_os=opts.target_os, - target_cpu=opts.target_cpu, -+ toolchain_flags=opts.toolchain_flags, - ) - - if _legacy_metadata_conflicts_with_pyproject(t): diff --git a/families/julia/third_party/rules_dx/rules_py.pep517_msvc.patch b/families/julia/third_party/rules_dx/rules_py.pep517_msvc.patch deleted file mode 100644 index 98da8d6002..0000000000 --- a/families/julia/third_party/rules_dx/rules_py.pep517_msvc.patch +++ /dev/null @@ -1,334 +0,0 @@ -diff -ru a/uv/private/pep517_whl/cc_layer.bzl b/uv/private/pep517_whl/cc_layer.bzl ---- a/uv/private/pep517_whl/cc_layer.bzl -+++ b/uv/private/pep517_whl/cc_layer.bzl -@@ -226,8 +226,65 @@ - static_runtime_paths = static_runtime_paths, - ) - -+def _absolutize_msvc_entries(value): -+ """Prefix the execroot-relative entries of a `;` separated Windows path list.""" -+ entries = [] -+ for entry in value.split(";"): -+ if entry and not entry.startswith(("\\", "/")) and entry[1:2] != ":": -+ entry = _EXECROOT_MARKER + "\\" + entry -+ entries.append(entry) -+ return ";".join(entries) -+ -+def extract_msvc_layer(ctx, cc_toolchain): -+ """Extract the PATH, INCLUDE and LIB a cl.exe toolchain sets. -+ -+ cl.exe and link.exe find the Windows SDK and the MSVC headers and -+ libraries through these variables, not through command line flags. -+ -+ Args: -+ ctx: The rule context, with fragments = ["cpp"]. -+ cc_toolchain: The resolved CcToolchainInfo. -+ -+ Returns: -+ struct(path, include, lib) of `;` separated strings whose -+ execroot-relative entries start with the EXECROOT marker. -+ """ -+ feature_configuration = cc_common.configure_features( -+ ctx = ctx, -+ cc_toolchain = cc_toolchain, -+ requested_features = ctx.features, -+ unsupported_features = ctx.disabled_features + _CC_DISABLED_FEATURES, -+ ) -+ compile_env = cc_common.get_environment_variables( -+ feature_configuration = feature_configuration, -+ action_name = ACTION_NAMES.c_compile, -+ variables = cc_common.create_compile_variables( -+ feature_configuration = feature_configuration, -+ cc_toolchain = cc_toolchain, -+ ), -+ ) -+ -+ # LIB is only set on link actions. -+ link_env = cc_common.get_environment_variables( -+ feature_configuration = feature_configuration, -+ action_name = ACTION_NAMES.cpp_link_dynamic_library, -+ variables = cc_common.create_link_variables( -+ cc_toolchain = cc_toolchain, -+ feature_configuration = feature_configuration, -+ is_using_linker = True, -+ is_linking_dynamic_library = True, -+ must_keep_debug = False, -+ ), -+ ) -+ return struct( -+ path = _absolutize_msvc_entries(compile_env.get("PATH", "")), -+ include = _absolutize_msvc_entries(compile_env.get("INCLUDE", "")), -+ lib = _absolutize_msvc_entries(link_env.get("LIB", "")), -+ ) -+ - # Exposed for the unit tests in tests/pep517_whl_test.bzl only. - cc_layer_test_util = struct( - absolutize_flag = _absolutize_flag, -+ absolutize_msvc_entries = _absolutize_msvc_entries, - execroot_marker = _EXECROOT_MARKER, - ) -diff -ru a/uv/private/pep517_whl/pep517_native_whl.bzl b/uv/private/pep517_whl/pep517_native_whl.bzl ---- a/uv/private/pep517_whl/pep517_native_whl.bzl -+++ b/uv/private/pep517_whl/pep517_native_whl.bzl -@@ -10,7 +10,7 @@ - load("@rules_cc//cc/common:cc_common.bzl", "cc_common") - load("//py/private/interpreter:versions.bzl", "PLATFORMS") - load("//py/private/toolchain:types.bzl", "EXEC_TOOLS_TOOLCHAIN", "NATIVE_BUILD_TOOLCHAIN", "PY_TOOLCHAIN") --load(":cc_layer.bzl", "CC_LAYER_ATTRS", "extract_cc_layer") -+load(":cc_layer.bzl", "CC_LAYER_ATTRS", "extract_cc_layer", "extract_msvc_layer") - load( - ":common.bzl", - "PEP517_WHL_ATTRS", -@@ -42,6 +42,9 @@ - _EXECROOT_MARKER = "__RULES_PY_EXECROOT__" - _INFER_CXX_COMPANION = "RULES_PY_INFER_CXX_COMPANION" - -+# CcToolchainInfo.compiler values that cl.exe builds are driven by. -+_MSVC_COMPILERS = ["msvc-cl"] -+ - def _collect_toolchain_inputs_and_vars(ctx): - """Gather files + Make-variable substitutions from `ctx.attr.toolchains`. - -@@ -182,6 +185,29 @@ - include_dir = include_dir, - ) - -+def _windows_python_artifacts(runtime): -+ """Collect the Windows interpreter files an MSVC build compiles and links against. -+ -+ CPython for Windows keeps its headers in `include/` and its import -+ libraries in `libs/`: `Python.h` and `pyconfig.h` for cl.exe and -+ `python3*.lib` for link.exe. -+ """ -+ files = runtime.files.to_list() if runtime and hasattr(runtime, "files") else [] -+ include_dir = None -+ lib_files = [] -+ for f in files: -+ if f.basename == "pyconfig.h" and f.dirname.endswith("/include"): -+ include_dir = f.dirname -+ elif f.extension == "lib" and f.basename.startswith("python3") and f.dirname.endswith("/libs"): -+ lib_files.append(f) -+ include_files = [f for f in files if include_dir and f.path.startswith(include_dir + "/")] -+ return struct( -+ include_files = include_files, -+ include_dir = include_dir, -+ lib_files = lib_files, -+ lib_dir = lib_files[0].dirname if lib_files else None, -+ ) -+ - def _derive_python_host_platform(target_os, target_cpu): - """Derive _PYTHON_HOST_PLATFORM from target platform constraints. - -@@ -283,6 +309,11 @@ - fail("A toolchain listed in `toolchains` exports the reserved `EXECROOT` make-variable.") - known_variables["EXECROOT"] = _EXECROOT_MARKER - -+ cc_toolchain = cc_toolchain_raw -+ if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -+ cc_toolchain = cc_toolchain.cc -+ msvc = getattr(cc_toolchain, "compiler", None) in _MSVC_COMPILERS -+ - cc_files, cc_tools, infer_cxx = _cc_toolchain_inputs_and_tools(ctx) - if cc_files: - extra_inputs.append(cc_files) -@@ -299,18 +330,16 @@ - for k, v in ctx.attr.env.items(): - env[k] = ctx.expand_make_variables("env", v, known_variables) - -+ # cl.exe is found through PATH, and setuptools drives it without CC. - for key, value in cc_tools.items(): -- if key not in ctx.attr.env: -+ if key not in ctx.attr.env and not msvc: - env[key] = value - - env.pop(_INFER_CXX_COMPANION, None) -- if "CXX" not in ctx.attr.env and cc_tools.get("CXX") and infer_cxx: -+ if "CXX" not in ctx.attr.env and cc_tools.get("CXX") and infer_cxx and not msvc: - env[_INFER_CXX_COMPANION] = "1" - - cross_args = [] -- cc_toolchain = cc_toolchain_raw -- if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -- cc_toolchain = cc_toolchain.cc - - # A hermetic C++ toolchain reaches its libc headers, crt objects and - # runtime only through its action flags, so native builds need them too. -@@ -322,7 +351,21 @@ - "CC" not in ctx.attr.env and - "CXX" not in ctx.attr.env - ) -- if cross or native_toolchain_flags: -+ if msvc: -+ if cross: -+ fail("{}: MSVC sdist builds need a Windows execution platform matching the target".format(ctx.label)) -+ msvc_layer = extract_msvc_layer(ctx, cc_toolchain) -+ py_toolchain = ctx.toolchains[PY_TOOLCHAIN] -+ runtime = getattr(py_toolchain, "py3_runtime", None) if py_toolchain != None else None -+ artifacts = _windows_python_artifacts(runtime) -+ if not artifacts.include_dir or not artifacts.lib_dir: -+ fail("{}: the target interpreter has no include/pyconfig.h and libs/python3*.lib to build against".format(ctx.label)) -+ extra_inputs.append(depset(artifacts.include_files + artifacts.lib_files)) -+ env["PATH"] = msvc_layer.path -+ env["INCLUDE"] = ";".join([msvc_layer.include, _EXECROOT_MARKER + "\\" + artifacts.include_dir.replace("/", "\\")]) -+ env["LIB"] = ";".join([msvc_layer.lib, _EXECROOT_MARKER + "\\" + artifacts.lib_dir.replace("/", "\\")]) -+ cross_args = ["--msvc"] -+ elif cross or native_toolchain_flags: - cc_layer = extract_cc_layer(ctx, cc_toolchain) - - # Toolchain flags first, then any flags the package set via `env` -diff -ru a/uv/private/pep517_whl/tools/build_helper.py b/uv/private/pep517_whl/tools/build_helper.py ---- a/uv/private/pep517_whl/tools/build_helper.py -+++ b/uv/private/pep517_whl/tools/build_helper.py -@@ -10,6 +10,7 @@ - - from argparse import ArgumentParser - from collections.abc import Mapping -+import hashlib - import importlib - import os - import platform as _platform -@@ -576,6 +577,25 @@ - return site_dir - - -+def _add_cargo_and_ant(env: dict[str, str], tmpdir: str) -> None: -+ # maturin locates cargo via shutil.which, not $CARGO — without it on -+ # PATH it auto-installs a Rust toolchain (puccinialin), which fails in -+ # the sandbox. This bites native builds too, so it is not cross-gated. -+ cargo_path = env.get("CARGO") -+ if cargo_path: -+ env["PATH"] = pathsep.join([path.dirname(cargo_path), env.get("PATH", defpath)]) -+ -+ # Cargo's default $CARGO_HOME (~/.cargo) is unwritable in the sandbox. -+ cargo_home = path.join(tmpdir, ".cargo_home") -+ makedirs(cargo_home, exist_ok=True) -+ env.setdefault("CARGO_HOME", cargo_home) -+ -+ # CMake's find_program(ANT_EXECUTABLE) (jpype1 et al.) needs ant on PATH. -+ ant_bin_dir = env.pop("RULES_PY_ANT_BIN_DIR", None) -+ if ant_bin_dir: -+ env["PATH"] = pathsep.join([ant_bin_dir, env.get("PATH", defpath)]) -+ -+ - def _compiler_env( - tmpdir: str, - execroot_marker: str | None = None, -@@ -583,6 +603,7 @@ - target_os: str = "", - target_cpu: str = "", - toolchain_flags: bool = False, -+ msvc: bool = False, - ) -> dict[str, str]: - env = dict(os.environ) - if execroot_marker: -@@ -629,6 +650,21 @@ - # helper still runs there; bare tool names deliberately remain on PATH. - _absolutize_tool_paths(env) - -+ if msvc: -+ # setuptools finds cl.exe through PATH, INCLUDE and LIB from the -+ # toolchain, and only when it is told no Visual Studio is needed. -+ for key in ("CC", "CXX", "CPP", "AR", "LDSHARED", "LDCXXSHARED"): -+ env.pop(key, None) -+ env["DISTUTILS_USE_SDK"] = "1" -+ env["MSSdk"] = "1" -+ _add_cargo_and_ant(env, tmpdir) -+ if len(sys.executable) >= 250: -+ # CreateProcess rejects a venv interpreter under the deep runfiles -+ # tree; run the short base interpreter against the venv packages. -+ env["PYTHONPATH"] = pathsep.join(entry for entry in sys.path if entry) -+ sys.executable = sys._base_executable -+ return env -+ - cc_path = _resolve_compiler_path(env, "CC", "cc") - cxx_path = _resolve_compiler_path(env, "CXX", "c++") - if env.pop("RULES_PY_INFER_CXX_COMPANION", None) == "1": -@@ -756,22 +792,7 @@ - ]: - _override_tool(env, key, wrapper) - -- # maturin locates cargo via shutil.which, not $CARGO — without it on -- # PATH it auto-installs a Rust toolchain (puccinialin), which fails in -- # the sandbox. This bites native builds too, so it is not cross-gated. -- cargo_path = env.get("CARGO") -- if cargo_path: -- env["PATH"] = pathsep.join([path.dirname(cargo_path), env.get("PATH", defpath)]) -- -- # Cargo's default $CARGO_HOME (~/.cargo) is unwritable in the sandbox. -- cargo_home = path.join(tmpdir, ".cargo_home") -- makedirs(cargo_home, exist_ok=True) -- env.setdefault("CARGO_HOME", cargo_home) -- -- # CMake's find_program(ANT_EXECUTABLE) (jpype1 et al.) needs ant on PATH. -- ant_bin_dir = env.pop("RULES_PY_ANT_BIN_DIR", None) -- if ant_bin_dir: -- env["PATH"] = pathsep.join([ant_bin_dir, env.get("PATH", defpath)]) -+ _add_cargo_and_ant(env, tmpdir) - - return env - -@@ -1140,10 +1161,32 @@ - PARSER.add_argument("--execroot-marker", help="Token in env values to replace with the absolute execroot") - PARSER.add_argument("--cross", action="store_true", help="Cross-compilation mode: target platform != exec platform") - PARSER.add_argument("--toolchain-flags", action="store_true", help="CFLAGS/CXXFLAGS/LDFLAGS/LDSHAREDFLAGS carry the C++ toolchain's action flags") -+PARSER.add_argument("--msvc", action="store_true", help="cl.exe build: the environment carries PATH, INCLUDE and LIB, and no GNU-style compiler variables are set") - PARSER.add_argument("--target-os", default="", help="Target platform OS the wheel must be tagged for (linux, darwin, windows)") - PARSER.add_argument("--target-libc", default="", help="Target platform C library the wheel must link against (glibc, musl, libsystem)") - PARSER.add_argument("--target-cpu", default="", help="Target platform CPU the wheel must be tagged for (x86_64, aarch64, ...)") - -+def _msvc_worktree_root(output: str) -> str: -+ # link.exe cannot open paths past MAX_PATH, and the default worktree under -+ # a deep output_base pushes the .exp file over it (LNK1104). Unpack into a -+ # short root that is fixed per output. It is not a declared Bazel output; -+ # that is fine because Windows actions run without a sandbox. -+ digest = hashlib.sha256(path.abspath(output).encode()).hexdigest()[:10] -+ return path.join(os.getcwd(), "_pep517", digest) -+ -+ -+def _shorten_bin_dirs(env: dict[str, str], short_root: str) -> None: -+ # CreateProcess cannot start an executable past MAX_PATH, and the -+ # whl_install bin/ dirs deep in the runfiles tree hold maturin.exe and -+ # friends (WinError 206). Copy them under the short root instead. -+ entries = env.get("PATH", "").split(pathsep) -+ for i, entry in enumerate(entries): -+ if entry.endswith("actual_install.install" + os.sep + "bin") and path.isdir(entry): -+ entries[i] = path.join(short_root, "bin", str(i)) -+ shutil.copytree(entry, entries[i]) -+ env["PATH"] = pathsep.join(entries) -+ -+ - def main() -> None: - opts, _ = PARSER.parse_known_args() - -@@ -1152,6 +1195,11 @@ - makedirs(tmp_root, exist_ok=False) - - t = path.join(tmp_root, "worktree") -+ msvc_root = None -+ if opts.msvc: -+ msvc_root = _msvc_worktree_root(opts.output) -+ shutil.rmtree(msvc_root, ignore_errors=True) -+ t = path.join(msvc_root, "w") - - shutil.unpack_archive(opts.srcarchive, t) - -@@ -1197,7 +1245,10 @@ - target_os=opts.target_os, - target_cpu=opts.target_cpu, - toolchain_flags=opts.toolchain_flags, -+ msvc=opts.msvc, - ) -+ if msvc_root: -+ _shorten_bin_dirs(build_env, msvc_root) - - if _legacy_metadata_conflicts_with_pyproject(t): - print( -@@ -1306,6 +1357,8 @@ - exit(1) - - os.replace(path.join(outdir, inventory[0]), path.abspath(opts.output)) -+ if msvc_root: -+ shutil.rmtree(msvc_root, ignore_errors=True) - - - if __name__ == "__main__": diff --git a/families/julia/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch b/families/julia/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch deleted file mode 100644 index d558c1111f..0000000000 --- a/families/julia/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch +++ /dev/null @@ -1,635 +0,0 @@ -diff --git a/py/private/interpreter/repository.bzl b/py/private/interpreter/repository.bzl ---- a/py/private/interpreter/repository.bzl -+++ b/py/private/interpreter/repository.bzl -@@ -43,8 +43,19 @@ def _python_interpreter_impl(rctx): - if "linux" in platform: - rctx.delete("share/terminfo") - -+ if is_windows: -+ sys_platform = "win32" -+ elif is_macos: -+ sys_platform = "darwin" -+ else: -+ sys_platform = "linux" -+ platform_machine = "aarch64" if platform.startswith(("aarch64", "arm64")) else "x86_64" -+ - rctx.file("BUILD.bazel", content = _build_file_content( - abi_flags = rctx.attr.abi_flags, -+ sys_platform = sys_platform, -+ platform_machine = platform_machine, -+ libc = "musl" if "musl" in platform else "", - major = major, - minor = minor, - micro = micro, -@@ -92,7 +103,7 @@ filegroup( - - return "\n".join(lines), all_excludes - --def _build_file_content(major, minor, micro, python_bin, is_macos, is_windows, abi_flags, releaselevel, serial): -+def _build_file_content(major, minor, micro, python_bin, is_macos, is_windows, abi_flags, releaselevel, serial, sys_platform, platform_machine, libc): - """Generate the full BUILD.bazel content for an interpreter repo.""" - - # A free-threaded build's standard library is lib/python3.14t, not -@@ -276,9 +287,14 @@ py_cc_toolchain( - name = "py_cc_toolchain", - headers = ":python_headers", - {headers_abi3_attr}{libs_attr} python_version = "{major}.{minor}", --) -+ sys_platform = "{sys_platform}", -+ platform_machine = "{platform_machine}", -+{libc_attr}) - """.format( - abi_flags = abi_flags, -+ libc_attr = " libc = \"{}\",\n".format(libc) if libc else "", -+ platform_machine = platform_machine, -+ sys_platform = sys_platform, - abi3_header_target = abi3_header_target, - header_interface_deps = repr(header_interface_deps), - headers_abi3_attr = headers_abi3_attr, -diff --git a/py/private/interpreter/repository.bzl.orig b/py/private/interpreter/repository.bzl.orig -new file mode 100644 ---- /dev/null -+++ b/py/private/interpreter/repository.bzl.orig -@@ -0,0 +1,582 @@ -+"""Repository rules for Python interpreter toolchains.""" -+ -+load(":exclude_feature.bzl", "INTERPRETER_FEATURES") -+ -+_PYTHON_VERSION_FLAG = "@rules_py//py/private/interpreter:python_version" -+_RPY_VERSION_FLAG = "@rules_python//python/config_settings:python_version" -+_FREETHREADING_FLAG = "@rules_py//py/private/interpreter:freethreaded" -+_EXCLUDE_FEATURE_FLAG = "@rules_py//py/private/interpreter:exclude_feature" -+ -+def _python_interpreter_impl(rctx): -+ """Downloads and extracts a Python interpreter from PBS.""" -+ url = rctx.attr.url -+ platform = rctx.attr.platform -+ -+ python_version = rctx.attr.python_version -+ sha256 = rctx.attr.sha256 -+ strip_prefix = rctx.attr.strip_prefix -+ rctx.download_and_extract( -+ url = [url], -+ sha256 = sha256, -+ stripPrefix = strip_prefix, -+ ) -+ -+ # Determine the Python binary path -+ is_macos = "apple-darwin" in platform -+ is_windows = "windows" in platform -+ python_bin = "python.exe" if is_windows else "bin/python3" -+ version_parts = python_version.split(".") -+ major = version_parts[0] -+ minor = version_parts[1] -+ micro = version_parts[2] if len(version_parts) > 2 else "0" -+ releaselevel = "final" -+ serial = "0" -+ for marker, level in [("rc", "candidate"), ("b", "beta"), ("a", "alpha")]: -+ marker_index = micro.find(marker) -+ if marker_index >= 0: -+ serial = micro[marker_index + len(marker):] or "0" -+ micro = micro[:marker_index] or "0" -+ releaselevel = level -+ break -+ -+ # Delete terminfo symlink loops on newer PBS releases (linux only) -+ if "linux" in platform: -+ rctx.delete("share/terminfo") -+ -+ rctx.file("BUILD.bazel", content = _build_file_content( -+ abi_flags = rctx.attr.abi_flags, -+ major = major, -+ minor = minor, -+ micro = micro, -+ python_bin = python_bin, -+ is_macos = is_macos, -+ is_windows = is_windows, -+ releaselevel = releaselevel, -+ serial = serial, -+ )) -+ -+ return rctx.repo_metadata(reproducible = True) -+ -+def _feature_filegroups(stdlib, is_windows): -+ """Generate per-feature filegroup targets and config_settings. -+ -+ Returns a tuple of (feature_targets_str, all_feature_exclude_patterns). -+ The exclude patterns are used to carve out feature files from the core filegroup. -+ """ -+ if is_windows: -+ return "", [] -+ -+ lines = [] -+ all_excludes = [] -+ -+ for feature_name, feature_info in INTERPRETER_FEATURES.items(): -+ patterns = [ -+ p.format(stdlib = stdlib) -+ for p in feature_info["include"] -+ ] -+ all_excludes.extend(patterns) -+ -+ lines.append("""\ -+config_setting( -+ name = "_exclude_{feature}", -+ flag_values = {{"{flag}": "{feature}"}}, -+) -+""".format(feature = feature_name, flag = _EXCLUDE_FEATURE_FLAG)) -+ -+ lines.append("""\ -+filegroup( -+ name = "_feature_{feature}", -+ srcs = glob({patterns}, exclude = ["**/__pycache__/*.pyc*"], allow_empty = True), -+) -+""".format(feature = feature_name, patterns = repr(patterns))) -+ -+ return "\n".join(lines), all_excludes -+ -+def _build_file_content(major, minor, micro, python_bin, is_macos, is_windows, abi_flags, releaselevel, serial): -+ """Generate the full BUILD.bazel content for an interpreter repo.""" -+ -+ # A free-threaded build's standard library is lib/python3.14t, not -+ # lib/python3.14. -+ stdlib = "lib/python{}.{}{}".format(major, minor, "t" if "t" in abi_flags else "") -+ feature_targets, feature_excludes = _feature_filegroups(stdlib, is_windows) -+ -+ include_dirs = ["include"] -+ if not is_windows: -+ include_dirs.append("include/python{}.{}{}".format(major, minor, abi_flags)) -+ -+ library_targets = "" -+ header_interface_deps = [] -+ abi3_header_target = "" -+ headers_abi3_attr = "" -+ libs_attr = "" -+ -+ # Unlike POSIX, Windows extensions must link a Python import library: -+ # https://docs.python.org/3/extending/windows.html#differences-between-unix-and-windows -+ # -+ # Free-threaded CPython 3.13 rejects the regular stable ABI: -+ # https://github.com/python/cpython/blob/v3.13.5/Include/Python.h#L53-L56 -+ if is_windows: -+ # Windows extensions link an import library. Regular stable-ABI -+ # extensions use python3.lib. -+ # https://docs.python.org/3.13/c-api/stable.html#stable-application-binary-interface -+ library_targets = """\ -+cc_import( -+ name = "interface", -+ interface_library = "libs/python{major}{minor}{abi_flags}.lib", -+ system_provided = True, -+ visibility = ["//visibility:private"], -+) -+""".format( -+ abi_flags = abi_flags, -+ major = major, -+ minor = minor, -+ ) -+ libs_attr = " libs = \":interface\",\n" -+ header_interface_deps = [":interface"] -+ if abi_flags == "": -+ library_targets += """ -+cc_import( -+ name = "abi3_interface", -+ interface_library = "libs/python3.lib", -+ system_provided = True, -+ visibility = ["//visibility:private"], -+) -+""" -+ abi3_header_target = """\ -+cc_library( -+ name = "python_headers_abi3", -+ hdrs = [":includes"], -+ includes = {include_dirs}, -+ visibility = ["//visibility:private"], -+ deps = [":abi3_interface"], -+) -+""".format(include_dirs = repr(include_dirs)) -+ headers_abi3_attr = " headers_abi3 = \":python_headers_abi3\",\n" -+ else: -+ # rules_python exposes this target through current_py_cc_libs for -+ # embedding consumers. Keep it separate from python_headers so Python -+ # extension modules do not acquire a libpython dependency. -+ # https://rules-python.readthedocs.io/en/latest/toolchains.html#consuming-python-c-headers-and-libraries -+ if is_macos: -+ libpython_srcs = ["lib/libpython{}.{}{}.dylib".format(major, minor, abi_flags)] -+ else: -+ libpython_srcs = [ -+ "lib/libpython{}.{}{}.so".format(major, minor, abi_flags), -+ "lib/libpython{}.{}{}.so.1.0".format(major, minor, abi_flags), -+ ] -+ library_targets = """\ -+cc_library( -+ name = "libpython", -+ srcs = {libpython_srcs}, -+ visibility = ["//visibility:private"], -+) -+""".format(libpython_srcs = repr(libpython_srcs)) -+ libs_attr = " libs = \":libpython\",\n" -+ if abi_flags == "": -+ headers_abi3_attr = " headers_abi3 = \":python_headers\",\n" -+ -+ venv_dlls_target = "" -+ venv_dlls_attr = "" -+ if is_windows: -+ # The DLLs that `python -m venv --symlinks` links beside a venv's -+ # interpreter on Windows. -+ venv_dlls_target = """\ -+filegroup( -+ name = "venv_dlls", -+ srcs = glob(["python*.dll", "vcruntime*.dll"]), -+ visibility = ["//visibility:private"], -+) -+ -+""" -+ venv_dlls_attr = " venv_dlls = [\":venv_dlls\"],\n" -+ core_include = '["**/*.py", "**/*.pyd", "**/*.dll", "**/*.exe", "include/**", "Lib/**"]' -+ core_exclude = '["Lib/**/test/**", "Lib/**/tests/**", "**/__pycache__/*.pyc*"]' -+ else: -+ core_include = '["bin/**", "lib/**"]' -+ core_exclude = repr( -+ [ -+ "lib/**/*.a", -+ stdlib + "/**/test/**", -+ stdlib + "/**/tests/**", -+ "**/__pycache__/*.pyc*", -+ ] + -+ feature_excludes, -+ ) -+ -+ # Build the select() expressions for optional features -+ feature_selects = "" -+ if not is_windows: -+ for feature_name in INTERPRETER_FEATURES.keys(): -+ feature_selects += """\ -+ + select({{ -+ ":_exclude_{feature}": [], -+ "//conditions:default": [":_feature_{feature}"], -+ }}) -+""".format(feature = feature_name) -+ -+ return """\ -+load("@rules_cc//cc:cc_import.bzl", "cc_import") -+load("@rules_cc//cc:cc_library.bzl", "cc_library") -+load("@rules_py//py/private/interpreter:runtime.bzl", "py_runtime_toolchain") -+load("@rules_python//python/cc:py_cc_toolchain.bzl", "py_cc_toolchain") -+ -+package(default_visibility = ["//visibility:public"]) -+ -+# --- Optional interpreter features --- -+ -+{feature_targets} -+ -+# --- Core + optional filegroups --- -+ -+filegroup( -+ name = "_core", -+ srcs = glob( -+ include = {core_include}, -+ exclude = {core_exclude}, -+ ), -+) -+ -+filegroup( -+ name = "files", -+ srcs = [":_core"] -+{feature_selects} , -+) -+ -+# --- Python C toolchain --- -+ -+{library_targets}filegroup( -+ name = "includes", -+ srcs = glob(["include/**/*.h"], allow_empty = False), -+ visibility = ["//visibility:private"], -+) -+ -+{abi3_header_target}cc_library( -+ name = "python_headers", -+ hdrs = [":includes"], -+ includes = {include_dirs}, -+ visibility = ["//visibility:private"], -+ deps = {header_interface_deps}, -+) -+ -+{venv_dlls_target}py_runtime_toolchain( -+ name = "runtime", -+ abi_flags = "{abi_flags}", -+ files = [":files"], -+ interpreter = "{python_bin}", -+ interpreter_version_info = {{ -+ "major": "{major}", -+ "minor": "{minor}", -+ "micro": "{micro}", -+ "releaselevel": "{releaselevel}", -+ "serial": "{serial}", -+ }}, -+{venv_dlls_attr}) -+ -+py_cc_toolchain( -+ name = "py_cc_toolchain", -+ headers = ":python_headers", -+{headers_abi3_attr}{libs_attr} python_version = "{major}.{minor}", -+) -+""".format( -+ abi_flags = abi_flags, -+ abi3_header_target = abi3_header_target, -+ header_interface_deps = repr(header_interface_deps), -+ headers_abi3_attr = headers_abi3_attr, -+ include_dirs = repr(include_dirs), -+ library_targets = library_targets, -+ libs_attr = libs_attr, -+ python_bin = python_bin, -+ major = major, -+ minor = minor, -+ micro = micro, -+ releaselevel = releaselevel, -+ serial = serial, -+ feature_targets = feature_targets, -+ feature_selects = feature_selects, -+ core_include = core_include, -+ core_exclude = core_exclude, -+ venv_dlls_target = venv_dlls_target, -+ venv_dlls_attr = venv_dlls_attr, -+ ) -+ -+python_interpreter = repository_rule( -+ implementation = _python_interpreter_impl, -+ attrs = { -+ "abi_flags": attr.string(mandatory = True), -+ "platform": attr.string(mandatory = True), -+ "python_version": attr.string(default = ""), -+ "sha256": attr.string(default = ""), -+ "strip_prefix": attr.string(default = "python"), -+ "url": attr.string(default = ""), -+ }, -+) -+ -+def _python_interpreter_unavailable_impl(rctx): -+ rctx.file("BUILD.bazel", content = "fail({})\n".format(repr(rctx.attr.message))) -+ return rctx.repo_metadata(reproducible = True) -+ -+# Stub for version/platform/mode combos with no usable PBS asset. The extension -+# must generate every repo name regardless of build_config so use_repo() -+# imports stay valid. The repo fetches cleanly (eager fetchers like -+# `bazel fetch --all` and `bazel vendor` must not break); referencing any -+# target in it fails at load time with the message. -+python_interpreter_unavailable = repository_rule( -+ implementation = _python_interpreter_unavailable_impl, -+ attrs = { -+ "message": attr.string(mandatory = True), -+ }, -+) -+ -+def _platform_setting_name(flag, value): -+ """Generate a unique config_setting name for a flag/value pair.""" -+ -+ # Extract the last path component of the flag label as a readable prefix, -+ # e.g. "@rules_py//uv/private/constraints/platform:platform_libc" -+ # -> "platform_libc_glibc" -+ name = flag.split(":")[-1] if ":" in flag else flag.split("/")[-1] -+ return "{}_is_{}".format(name, value) -+ -+_EXEC_TOOLS_TOOLCHAIN_TYPE = "@rules_py//py/private/toolchain:exec_tools_toolchain_type" -+ -+def _exec_toolchain(name, exec_compatible_with, toolchain, toolchain_type, target_settings = None): -+ """A toolchain() selected by exec platform, optionally gated on target settings.""" -+ settings = "" if target_settings == None else " target_settings = {},\n".format(target_settings) -+ return """toolchain( -+ name = "{name}", -+ exec_compatible_with = {exec_compatible_with}, -+{settings} toolchain = "{toolchain}", -+ toolchain_type = "{toolchain_type}", -+) -+""".format( -+ name = name, -+ exec_compatible_with = exec_compatible_with, -+ settings = settings, -+ toolchain = toolchain, -+ toolchain_type = toolchain_type, -+ ) -+ -+def _note_fallback(fallbacks, info, exec_compatible_with): -+ """Keep the platform's highest provisioned version for the ungated fallback entry.""" -+ version_key = tuple([int(part) for part in info["python_version"].split(".")]) -+ prior = fallbacks.get(repr(exec_compatible_with)) -+ if prior == None or version_key > prior[0]: -+ fallbacks[repr(exec_compatible_with)] = (version_key, info["name"], info["repo"], exec_compatible_with) -+ -+def _fallback_toolchains(fallbacks, suffix, target, toolchain_type): -+ """Ungated entries; the `zz_` prefix sorts them after every gated one under lexicographic registration.""" -+ return [ -+ "\n" + _exec_toolchain( -+ "zz_{}_{}_fallback".format(name, suffix), -+ constraints, -+ "@{}//:{}".format(repo, target), -+ toolchain_type, -+ ) -+ for _, name, repo, constraints in fallbacks.values() -+ ] -+ -+def _version_setting_name(major_minor): -+ """Generate config_setting name for a Python version.""" -+ return "python_version_is_" + major_minor.replace(".", "_") -+ -+def _freethreaded_setting_name(value): -+ """Generate config_setting name for the freethreaded flag.""" -+ return "freethreaded_is_" + ("true" if value else "false") -+ -+def _python_toolchains_impl(rctx): -+ """Creates toolchain() registrations pointing to interpreter repos.""" -+ content = [ -+ 'load("@bazel_skylib//lib:selects.bzl", "selects")', -+ 'load("@rules_py//py/private/interpreter:current_py_toolchain.bzl", "current_py_toolchain")', -+ 'package(default_visibility = ["//visibility:public"])', -+ ] -+ -+ # First pass: collect all unique flag/value pairs and version/freethreaded -+ # combos so we generate each config_setting exactly once. -+ seen_settings = {} # name -> (flag, value) -+ seen_versions = set() # major_minor -+ seen_freethreaded = set() -+ toolchain_infos = [] -+ -+ for entry in rctx.attr.toolchains: -+ info = json.decode(entry) -+ platform_settings = info.get("platform_target_settings", {}) -+ setting_names = [] -+ for flag, value in platform_settings.items(): -+ name = _platform_setting_name(flag, value) -+ if name not in seen_settings: -+ seen_settings[name] = (flag, value) -+ setting_names.append(name) -+ -+ # Track version/freethreaded for hub-local config_settings -+ python_version = info["python_version"] -+ seen_versions.add(python_version) -+ seen_freethreaded.add(info.get("freethreaded", False)) -+ -+ toolchain_infos.append((info, setting_names)) -+ -+ # Emit hub-local version config_settings so toolchain resolution doesn't -+ # need to fetch individual interpreter repos. -+ content.append(""" -+# Each python_version_is_* group matches on our own version flag, with -+# rules_python's flag as a fallback: the fallback selects only when our own -+# flag is unset, so setting our flag always wins and rpy's default can't -+# shadow it.""") -+ for major_minor in seen_versions: -+ group_name = _version_setting_name(major_minor) -+ content.append(""" -+config_setting( -+ name = "_{group}_our_major_minor", -+ flag_values = {{"{our_flag}": "{major_minor}"}}, -+) -+ -+config_setting( -+ name = "_{group}_rpy_fallback", -+ flag_values = {{ -+ "{our_flag}": "", -+ "{rpy_flag}": "{major_minor}", -+ }}, -+) -+ -+selects.config_setting_group( -+ name = "{group}", -+ match_any = [ -+ ":_{group}_our_major_minor", -+ ":_{group}_rpy_fallback", -+ ], -+) -+""".format( -+ group = group_name, -+ major_minor = major_minor, -+ our_flag = _PYTHON_VERSION_FLAG, -+ rpy_flag = _RPY_VERSION_FLAG, -+ )) -+ -+ # Emit hub-local freethreaded config_settings -+ for value in seen_freethreaded: -+ name = _freethreaded_setting_name(value) -+ content.append(""" -+config_setting( -+ name = "{name}", -+ flag_values = {{"{flag}": "{value}"}}, -+) -+""".format( -+ name = name, -+ flag = _FREETHREADING_FLAG, -+ value = "true" if value else "false", -+ )) -+ -+ # Emit config_settings for platform target settings -+ for name, (flag, value) in seen_settings.items(): -+ content.append(""" -+config_setting( -+ name = "{name}", -+ flag_values = {{"{flag}": "{value}"}}, -+) -+""".format(name = name, flag = flag, value = value)) -+ -+ # Bazel resolves each toolchain type independently. Give the runtime and C -+ # registrations identical compatibility predicates so each PBS entry -+ # offers a matching pair: https://github.com/aspect-build/rules_py/issues/1095 -+ # -+ # Second pass: emit toolchain() registrations. -+ content.append(""" -+# The Python interpreter toolchains have no exec_compatible_with: the -+# interpreter runs on the TARGET platform (inside the virtualenv), not on the -+# exec host. Setting exec_compatible_with = platform_constraints would prevent -+# a toolchain from being selected during cross-compilation (e.g. building an -+# arm64 image on an amd64 host), because the exec platform (amd64) would not -+# satisfy the arm64 exec constraint. The target_compatible_with constraint is -+# sufficient to pick the right interpreter for the target. -+# -+# The *_exec_tools toolchains are instead selected by exec platform (not -+# target platform) so that build actions using the interpreter (e.g. -+# compileall) get a runnable binary on the build host regardless of the target -+# platform being built for. Version-gated so the exec interpreter follows the -+# version flags.""") -+ exec_tools_fallbacks = {} # repr(exec_compatible_with) -> (version tuple, name, repo, constraints) -+ for info, platform_setting_names in toolchain_infos: -+ extra_config_settings = info.get("config_settings", []) -+ extra_target_compatible = info.get("target_compatible_with", []) -+ extra_exec_compatible = info.get("exec_compatible_with", []) -+ -+ version_setting = ":" + _version_setting_name(info["python_version"]) -+ freethreaded_setting = ":" + _freethreaded_setting_name(info.get("freethreaded", False)) -+ -+ target_settings = [ -+ version_setting, -+ freethreaded_setting, -+ ] + [":" + name for name in platform_setting_names] + extra_config_settings -+ -+ target_compatible_with = info["compatible_with"] + extra_target_compatible -+ exec_compatible_with = info["compatible_with"] + extra_exec_compatible -+ -+ content.append(""" -+toolchain( -+ name = "{name}", -+ target_compatible_with = {target_compatible_with}, -+ target_settings = {target_settings}, -+ toolchain = "@{repo}//:runtime", -+ toolchain_type = "@bazel_tools//tools/python:toolchain_type", -+) -+ -+toolchain( -+ name = "{name}_py_cc", -+ target_compatible_with = {target_compatible_with}, -+ target_settings = {target_settings}, -+ toolchain = "@{repo}//:py_cc_toolchain", -+ toolchain_type = "@rules_python//python/cc:toolchain_type", -+) -+""".format( -+ name = info["name"], -+ repo = info["repo"], -+ target_compatible_with = target_compatible_with, -+ target_settings = target_settings, -+ )) -+ -+ if info["register_exec_tools"]: -+ # Also gated on the freethreaded flag so exec-tools consumers get -+ # an interpreter ABI-matching the target runtime; consumers that -+ # only need *a* runnable interpreter are caught by the ungated -+ # zz_ fallback. -+ content.append(_exec_toolchain( -+ info["name"] + "_exec_tools", -+ exec_compatible_with, -+ "@{}//:runtime".format(info["repo"]), -+ _EXEC_TOOLS_TOOLCHAIN_TYPE, -+ target_settings = [version_setting, freethreaded_setting], -+ )) -+ _note_fallback(exec_tools_fallbacks, info, exec_compatible_with) -+ -+ # Ungated exec-tools fallbacks: build actions only need *a* runnable host -+ # interpreter, so configurations matching no version-gated entry (e.g. the -+ # version flags at defaults not provisioned by this hub) fall back to the -+ # platform's highest provisioned version. -+ content.extend(_fallback_toolchains(exec_tools_fallbacks, "exec_tools", "runtime", _EXEC_TOOLS_TOOLCHAIN_TYPE)) -+ -+ content.append(""" -+exports_files( -+ ["BUILD.bazel"], -+ visibility = ["//visibility:public"], -+) -+ -+current_py_toolchain( -+ name = "current_py_toolchain", -+) -+""") -+ -+ rctx.file("BUILD.bazel", content = "\n".join(content)) -+ -+ return rctx.repo_metadata(reproducible = True) -+ -+python_toolchains = repository_rule( -+ implementation = _python_toolchains_impl, -+ attrs = { -+ "toolchains": attr.string_list(), -+ }, -+) -+ -+# Exposed for unit tests only. -+repository_testlib = struct( -+ build_file_content = _build_file_content, -+ feature_filegroups = _feature_filegroups, -+) diff --git a/families/julia/third_party/rules_dx/rules_py.venv_bin_files.patch b/families/julia/third_party/rules_dx/rules_py.venv_bin_files.patch deleted file mode 100644 index d2a9feabf7..0000000000 --- a/families/julia/third_party/rules_dx/rules_py.venv_bin_files.patch +++ /dev/null @@ -1,106 +0,0 @@ -diff -ru a/py/private/interpreter/runtime.bzl b/py/private/interpreter/runtime.bzl ---- a/py/private/interpreter/runtime.bzl -+++ b/py/private/interpreter/runtime.bzl -@@ -32,6 +32,7 @@ - # https://github.com/python/cpython/blob/v3.15.0a5/Python/sysmodule.c#L3570-L3576 - pyc_tag = "cpython-{}{}".format(int(version_info["major"]), int(version_info["minor"])), - supports_build_time_venv = True, -+ venv_bin_files = ctx.files.venv_dlls, - python_version = "PY3", - # rules_python's own public-for-implicit-deps template files — label - # references, not .bzl loads. -diff -ru a/py/private/py_venv/toolchains_resolver.bzl b/py/private/py_venv/toolchains_resolver.bzl ---- a/py/private/py_venv/toolchains_resolver.bzl -+++ b/py/private/py_venv/toolchains_resolver.bzl -@@ -160,9 +160,9 @@ - the directory it was started from, so ``bin/`` gets both. - - Returns: -- dict of ``bin/``-relative name to symlink ``target_path``. -+ dict of ``bin/``-relative name to the file it links to. - """ -- links = {"python.exe": "python"} -+ links = {"python.exe": py_toolchain.python} - dlls = py_toolchain.venv_dlls - - # Toolchains not generated by rules_py don't provide `venv_dlls`. -@@ -175,10 +175,7 @@ - if not dlls: - dlls = _interpreter_dir_dlls(py_toolchain) - for dll in dlls: -- links[dll.basename] = "{}/{}".format( -- _relative_up(3 + package_depth), -- to_rlocation_path(ctx, dll), -- ) -+ links[dll.basename] = dll - return links - - def resolve_venv_toolchain(ctx, *, py_toolchain, is_windows, venv_name): -diff -ru a/py/private/py_venv/venv.bzl b/py/private/py_venv/venv.bzl ---- a/py/private/py_venv/venv.bzl -+++ b/py/private/py_venv/venv.bzl -@@ -371,31 +371,43 @@ - # absolute target bakes in the build-host execroot path that does not - # exist inside an OCI container, leaving a dangling symlink. The - # target path itself is computed by resolve_venv_toolchain. -- bin_python = ctx.actions.declare_symlink("{}/bin/python".format(venv_name)) -- ctx.actions.symlink( -- output = bin_python, -- target_path = tc.bin_python_target_path, -- ) -- declared.append(bin_python) -- -- # Versioned python symlinks (python3, python3.., and -- # python3..t for freethreaded) all point at the sibling -- # `python`; names resolved by resolve_venv_toolchain. -- for versioned_name in tc.versioned_python_names: -- sym = ctx.actions.declare_symlink("{}/bin/{}".format(venv_name, versioned_name)) -+ # -+ # On Windows Bazel builds the runfiles tree's symlink from where the -+ # output lives, not from the runfiles tree, so a relative target through -+ # the runfiles root dangles. There the `bin/` links are file symlinks to -+ # the interpreter and its DLLs instead. -+ if is_windows: -+ bin_python = ctx.actions.declare_file("{}/bin/python".format(venv_name)) - ctx.actions.symlink( -- output = sym, -- target_path = "python", -+ output = bin_python, -+ target_file = py_toolchain.python, - ) -- declared.append(sym) -- -- for name, target_path in tc.windows_bin_links.items(): -- sym = ctx.actions.declare_symlink("{}/bin/{}".format(venv_name, name)) -+ declared.append(bin_python) -+ windows_links = dict(tc.windows_bin_links) -+ for versioned_name in tc.versioned_python_names: -+ windows_links[versioned_name] = py_toolchain.python -+ for name, target in windows_links.items(): -+ sym = ctx.actions.declare_file("{}/bin/{}".format(venv_name, name)) -+ ctx.actions.symlink( -+ output = sym, -+ target_file = target, -+ ) -+ declared.append(sym) -+ else: -+ bin_python = ctx.actions.declare_symlink("{}/bin/python".format(venv_name)) - ctx.actions.symlink( -- output = sym, -- target_path = target_path, -+ output = bin_python, -+ target_path = tc.bin_python_target_path, - ) -- declared.append(sym) -+ declared.append(bin_python) -+ -+ for versioned_name in tc.versioned_python_names: -+ sym = ctx.actions.declare_symlink("{}/bin/{}".format(venv_name, versioned_name)) -+ ctx.actions.symlink( -+ output = sym, -+ target_path = "python", -+ ) -+ declared.append(sym) - - bin_activate = None - if venv_activate_tmpl != None: diff --git a/families/julia/third_party/rules_dx/rules_python.single_import_lib.patch b/families/julia/third_party/rules_dx/rules_python.single_import_lib.patch deleted file mode 100644 index abaef2eae8..0000000000 --- a/families/julia/third_party/rules_dx/rules_python.single_import_lib.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff --git a/python/private/cc/py_extension_macro.bzl b/python/private/cc/py_extension_macro.bzl ---- a/python/private/cc/py_extension_macro.bzl -+++ b/python/private/cc/py_extension_macro.bzl -@@ -154,6 +154,7 @@ - # from CcInfo in py_cc_toolchain because system_provided=True in cc_import leaves DefaultInfo empty. - py_extension_libs( - name = win_libs_name, -+ py_limited_api = bool(py_limited_api), - tags = ["manual"], - visibility = ["//visibility:private"], - ) -diff --git a/python/private/cc/py_extension_rule.bzl b/python/private/cc/py_extension_rule.bzl ---- a/python/private/cc/py_extension_rule.bzl -+++ b/python/private/cc/py_extension_rule.bzl -@@ -124,10 +124,19 @@ - elif lib.dynamic_library: - files.append(lib.dynamic_library) - link_files = [f for f in files if not f.path.endswith(".dll")] -+ -+ # Link.exe and lld-link get all the files as one argument, so keep one: -+ # the stable ABI library for limited API modules, else the versioned one. -+ abi3_files = [f for f in link_files if f.basename in ("python3.lib", "python3t.lib")] -+ if ctx.attr.py_limited_api: -+ link_files = abi3_files or link_files -+ else: -+ link_files = [f for f in link_files if f not in abi3_files] or link_files - return [DefaultInfo(files = depset(link_files))] - - py_extension_libs = rule( - implementation = _py_extension_libs_impl, -+ attrs = {"py_limited_api": attr.bool()}, - toolchains = [PY_CC_TOOLCHAIN_TYPE], - doc = """\ - Private internal helper rule for extracting Windows C/C++ library files from toolchain. diff --git a/families/julia/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch b/families/julia/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch deleted file mode 100644 index c0bf17dc69..0000000000 --- a/families/julia/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch +++ /dev/null @@ -1,103 +0,0 @@ -diff --git a/cargo/private/BUILD.bazel b/cargo/private/BUILD.bazel ---- a/cargo/private/BUILD.bazel -+++ b/cargo/private/BUILD.bazel -@@ -16,6 +16,20 @@ - visibility = ["//visibility:public"], - ) - -+config_setting( -+ name = "cargo_toml_env_vars_disabled", -+ flag_values = {"//cargo/settings:cargo_toml_env_vars": "False"}, -+) -+ -+alias( -+ name = "cargo_toml_variable_extractor", -+ actual = select({ -+ ":cargo_toml_env_vars_disabled": ":no_binary", -+ "//conditions:default": "//cargo/private/cargo_toml_variable_extractor", -+ }), -+ visibility = ["//visibility:public"], -+) -+ - copy_file( - name = "no_ar", - src = ":no_binary", -diff --git a/cargo/private/cargo_toml_env_vars.bzl b/cargo/private/cargo_toml_env_vars.bzl ---- a/cargo/private/cargo_toml_env_vars.bzl -+++ b/cargo/private/cargo_toml_env_vars.bzl -@@ -1,8 +1,16 @@ - """The `cargo_toml_env_vars` rule is used to retrieve the env vars that Cargo would set, based on the contents of a Cargo.toml file.""" - -+load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo") -+ - def _cargo_toml_env_vars_impl(ctx): - out = ctx.actions.declare_file(ctx.label.name + ".env") - -+ if not ctx.attr._enabled[BuildSettingInfo].value: -+ ctx.actions.write(out, "") -+ return [ -+ DefaultInfo(files = depset([out]), runfiles = ctx.runfiles([out])), -+ ] -+ - inputs = [ctx.file.src] - args = ctx.actions.args() - args.add(out) -@@ -36,10 +44,13 @@ - allow_single_file = True, - doc = "Workspace Cargo.toml file from which values may be inherited", - ), -+ "_enabled": attr.label( -+ default = Label("//cargo/settings:cargo_toml_env_vars"), -+ ), - "_cargo_toml_variable_extractor": attr.label( - allow_single_file = True, - executable = True, -- default = Label("//cargo/private/cargo_toml_variable_extractor"), -+ default = Label("//cargo/private:cargo_toml_variable_extractor"), - cfg = "exec", - ), - }, -diff --git a/cargo/settings/BUILD.bazel b/cargo/settings/BUILD.bazel ---- a/cargo/settings/BUILD.bazel -+++ b/cargo/settings/BUILD.bazel -@@ -2,6 +2,7 @@ - load( - ":settings.bzl", - "cargo_manifest_dir_filename_suffixes_to_retain", -+ "cargo_toml_env_vars", - "debug_std_streams_output_group", - "emit_build_script_warnings", - "experimental_symlink_execroot", -@@ -25,6 +26,8 @@ - - cargo_manifest_dir_filename_suffixes_to_retain() - -+cargo_toml_env_vars() -+ - debug_std_streams_output_group() - - experimental_symlink_execroot() -diff --git a/cargo/settings/settings.bzl b/cargo/settings/settings.bzl ---- a/cargo/settings/settings.bzl -+++ b/cargo/settings/settings.bzl -@@ -35,6 +35,20 @@ - build_setting_default = False, - ) - -+def cargo_toml_env_vars(): -+ """A flag which controls whether `cargo_toml_env_vars` targets run the \ -+ `cargo_toml_variable_extractor`. -+ -+ When disabled, they write an empty env file, so the extractor and the crates \ -+ it is built from are never fetched. Rustc actions still get `CARGO_PKG_NAME` \ -+ and `CARGO_PKG_VERSION*`, but not the values read from `Cargo.toml`. -+ """ -+ bool_flag( -+ name = "cargo_toml_env_vars", -+ scope = "universal", -+ build_setting_default = True, -+ ) -+ - def use_default_shell_env(): - """A flag which controls the global default of `ctx.actions.run.use_default_shell_env` for `cargo_build_script` targets. - """ diff --git a/families/julia/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch b/families/julia/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch deleted file mode 100644 index e5cff2c1d4..0000000000 --- a/families/julia/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch +++ /dev/null @@ -1,146 +0,0 @@ -diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -728,32 +728,36 @@ - ambiguous_libs[old_short_path] = symlink_for_ambiguous_lib(actions, toolchain, crate_info, visited_libs[name]) - ambiguous_libs[artifact.short_path] = symlink_for_ambiguous_lib(actions, toolchain, crate_info, artifact) - - visited_libs[name] = artifact - return ambiguous_libs - --def _depend_on_metadata(crate_info, force_depend_on_objects): -+def _depend_on_metadata(crate_info, force_depend_on_objects, metadata_only = False): - """Determines if we can depend on metadata for this crate. - - By default (when pipelining is disabled or when the crate type needs to link against - objects) we depend on the set of object files (.rlib). - When pipelining is enabled and the crate type supports depending on metadata, - we depend on metadata files only (.rmeta). - In some rare cases, even if both of those conditions are true, we still want to - depend on objects. This is what force_depend_on_objects is. - - Args: - crate_info (CrateInfo): The Crate to determine this for. - force_depend_on_objects (bool): if set we will not depend on metadata. -+ metadata_only (bool): if set the action only emits metadata, so it depends on metadata for any crate type. - - Returns: - Whether we can depend on metadata for this crate. - """ - if force_depend_on_objects: - return False - -+ if metadata_only: -+ return True -+ - return crate_info.type in ("rlib", "lib") - - def collect_inputs( - ctx, - file, - files, -@@ -764,12 +768,13 @@ - crate_info, - dep_info, - build_info, - lint_files, - stamp = False, - force_depend_on_objects = False, -+ metadata_only = False, - experimental_use_cc_common_link = False, - include_linker_inputs = False, - include_link_flags = True): - """Gather's the inputs and required input information for a rustc action - - Args: -@@ -784,12 +789,13 @@ - crate_info (CrateInfo): The Crate information of the crate to process build scripts for. - dep_info (DepInfo): The target Crate's dependency information. - build_info (BuildInfo): The target Crate's build settings. - lint_files (list): List of files with rustc args for the Crate's lint settings. - stamp (bool, optional): Whether or not workspace status stamping is enabled. For more details see - https://docs.bazel.build/versions/main/user-manual.html#flag--stamp -+ metadata_only (bool, optional): Depend on dependency metadata (`.rmeta`) for any crate type, for actions that only emit metadata. - force_depend_on_objects (bool, optional): Forces dependencies of this rule to be objects rather than - metadata, even for libraries. This is used in rustdoc tests. - experimental_use_cc_common_link (bool, optional): Whether rules_rust uses cc_common.link to link - rust binaries. - include_linker_inputs (bool, optional): Whether to include linker inputs in transitive dependencies. - include_link_flags (bool, optional): Whether to include flags like `-l` that instruct the linker to search for a library. -@@ -844,13 +850,13 @@ - # Compute linkstamps. Use the inputs of the binary as inputs to the - # linkstamp action to ensure linkstamps are rebuilt whenever binary inputs - # change. - linkstamp_outs = [] - - transitive_crate_outputs = dep_info.transitive_crate_outputs -- if _depend_on_metadata(crate_info, force_depend_on_objects): -+ if _depend_on_metadata(crate_info, force_depend_on_objects, metadata_only): - transitive_crate_outputs = dep_info.transitive_metadata_outputs - - nolinkstamp_compile_direct_inputs = [] - if build_info: - if build_info.rustc_env: - nolinkstamp_compile_direct_inputs.append(build_info.rustc_env) -@@ -1065,12 +1071,13 @@ - include_link_flags = True, - stamp = False, - remap_path_prefix = ".", - use_json_output = False, - build_metadata = False, - force_depend_on_objects = False, -+ metadata_only = False, - skip_expanding_rustc_env = False, - require_explicit_unstable_features = False, - error_format = None, - allowed_unstable_rust_features = None, - link_std_dylib = False, - bin_link_flags = None): -@@ -1137,12 +1144,13 @@ - https://docs.bazel.build/versions/main/user-manual.html#flag--stamp - remap_path_prefix (str, optional): A value used to remap `${pwd}`, `${exec_root}`, and `${output_base}` to. - If set to None, no remapping will be applied. On macOS, also adds `-oso_prefix` to strip absolute paths - from N_OSO linker entries. - use_json_output (bool): Have rustc emit json and process_wrapper parse json messages to output rendered output. - build_metadata (bool): Generate CLI arguments for building *only* .rmeta files. This requires use_json_output. -+ metadata_only (bool): Depend on dependency metadata (`.rmeta`) for any crate type, for actions that only emit metadata. - force_depend_on_objects (bool): Force using `.rlib` object files instead of metadata (`.rmeta`) files even if they are available. - skip_expanding_rustc_env (bool): Whether to skip expanding CrateInfo.rustc_env_attr - require_explicit_unstable_features (bool): Whether to require all unstable features to be explicitly opted in to using `-Zallow-features=...`. - error_format (str, optional): Error format to pass to the `--error-format` command line argument. If set to None, uses the "_error_format" entry in `attr`. - allowed_unstable_rust_features (list, optional): List of unstable Rust language features allowed for this target. - link_std_dylib (bool): Whether to dynamically link the Rust standard library using `--prefer-dynamic`. -@@ -1496,13 +1504,13 @@ - - # On macOS, set the dylib install name to @rpath/ so that - # consumers find it via RPATH rather than the exec-root build path. - if crate_info.type == "dylib" and toolchain.target_os in ["macos", "darwin"]: - rustc_flags.add("--codegen=link-arg=-Wl,-install_name,@rpath/" + crate_info.output.basename) - -- use_metadata = _depend_on_metadata(crate_info, force_depend_on_objects) -+ use_metadata = _depend_on_metadata(crate_info, force_depend_on_objects, metadata_only) - - # These always need to be added, even if not linking this crate. - add_crate_link_flags(rustc_flags, dep_info, force_all_deps_direct, use_metadata) - - needs_extern_proc_macro_flag = _is_proc_macro(crate_info) and crate_info.edition != "2015" - if needs_extern_proc_macro_flag: -diff --git a/rust/private/clippy.bzl b/rust/private/clippy.bzl ---- a/rust/private/clippy.bzl -+++ b/rust/private/clippy.bzl -@@ -162,6 +162,7 @@ - dep_info, - build_info, - lint_files, -+ metadata_only = True, - ) - - if clippy_diagnostics_file: -@@ -170,6 +171,7 @@ - crate_info = rust_common.create_crate_info(**crate_info_dict) - - args, env = construct_arguments( -+ metadata_only = True, - ctx = ctx, - attr = ctx.rule.attr, - file = ctx.file, diff --git a/families/julia/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch b/families/julia/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch deleted file mode 100644 index 98ff4c4367..0000000000 --- a/families/julia/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch +++ /dev/null @@ -1,128 +0,0 @@ -diff --git a/crate_universe/extensions.bzl b/crate_universe/extensions.bzl -index 29208c4..596240c 100644 ---- a/crate_universe/extensions.bzl -+++ b/crate_universe/extensions.bzl -@@ -380,6 +380,8 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - load( - "//crate_universe/private:common_utils.bzl", -+ "REPIN_ALLOWLIST_ENV_VAR", -+ "REPIN_ENV_VARS", - "new_cargo_bazel_fn", - "sanitize_label_injections", - ) -@@ -412,6 +414,8 @@ load("//crate_universe/private:urls.bzl", "CARGO_BAZEL_SHA256S", "CARGO_BAZEL_UR - load("//rust/platform:triple.bzl", "get_host_triple") - load("//rust/platform:triple_mappings.bzl", "system_to_binary_ext") - -+CARGO_BAZEL_DIGEST_CHECK = "CARGO_BAZEL_DIGEST_CHECK" -+ - _OPT_BOOL_VALUES = { - "auto": None, - "off": False, -@@ -543,7 +547,8 @@ def _generate_hub_and_spokes( - is_root, - cargo_lockfile = None, - manifests = {}, -- packages = {}): -+ packages = {}, -+ trust_lockfile = False): - """Generates repositories for the transitive closure of crates defined by manifests and packages. - - Args: -@@ -623,6 +628,8 @@ def _generate_hub_and_spokes( - "must ship a `lockfile = ...` because repinning is not " + - "supported across module boundaries.").format(cfg.name)) - repin = False -+ elif trust_lockfile: -+ repin = False - else: - repin = not lockfile or determine_repin( - repository_ctx = module_ctx, -@@ -867,6 +874,26 @@ def _get_generator(module_ctx, host_triple): - module_ctx.download(**download_kwargs) - return output - -+def _trust_lockfile(module_ctx, cfg, is_root): -+ """Whether to render from `cfg.lockfile` without its digest check, so cargo and rustc are not fetched. -+ -+ A repin or `CARGO_BAZEL_DIGEST_CHECK=1` still checks the digest. Without the check a stale -+ lockfile shows up as missing crates rather than as an "out of date" error. -+ """ -+ if not cfg.lockfile: -+ return False -+ if not is_root: -+ return True -+ if module_ctx.getenv(CARGO_BAZEL_DIGEST_CHECK): -+ return False -+ for var in REPIN_ENV_VARS: -+ value = module_ctx.getenv(var) -+ if value != None and value.lower() not in ["false", "no", "0", "off"]: -+ allowlist = module_ctx.getenv(REPIN_ALLOWLIST_ENV_VAR) -+ if allowlist == None or cfg.name in allowlist.split(","): -+ return False -+ return True -+ - def _get_host_cargo_rustc(module_ctx, host_triple, host_tools_repo): - """A helper function to get the path to the host cargo and rustc binaries. - -@@ -1160,7 +1187,10 @@ def _crate_impl(module_ctx): - if hasattr(cfg, "manifests"): - for m in cfg.manifests: - module_ctx.watch(m) -- cargo_path, rustc_path = _get_host_cargo_rustc(module_ctx, host_triple, cfg.host_tools) -+ trust_lockfile = _trust_lockfile(module_ctx, cfg, mod.is_root) -+ cargo_path, rustc_path = None, None -+ if not trust_lockfile: -+ cargo_path, rustc_path = _get_host_cargo_rustc(module_ctx, host_triple, cfg.host_tools) - cargo_bazel_fn = new_cargo_bazel_fn( - repository_ctx = module_ctx, - cargo_bazel_path = generator, -@@ -1215,6 +1245,7 @@ def _crate_impl(module_ctx): - skip_cargo_lockfile_overwrite = cfg.skip_cargo_lockfile_overwrite, - strip_internal_dependencies_from_cargo_lockfile = cfg.strip_internal_dependencies_from_cargo_lockfile, - is_root = mod.is_root, -+ trust_lockfile = trust_lockfile, - ) - - # Watch cfg.lockfile AFTER generation. The generator may modify it during -@@ -1666,6 +1697,7 @@ Environment Variables: - - | variable | usage | - | --- | --- | -+| `CARGO_BAZEL_DIGEST_CHECK` | Check a `lockfile` against its inputs even when no repin is requested. Without it, `cargo` and `rustc` are only fetched to repin or when there is no `lockfile`. | - | `CARGO_BAZEL_GENERATOR_SHA256` | The sha256 checksum of the file located at `CARGO_BAZEL_GENERATOR_URL` | - | `CARGO_BAZEL_GENERATOR_URL` | The URL of a cargo-bazel binary. This variable takes precedence over attributes and can use `file://` for local paths | - | `CARGO_BAZEL_ISOLATED` | An authoritative flag as to whether or not the `CARGO_HOME` environment variable should be isolated from the host configuration | -diff --git a/crate_universe/private/common_utils.bzl b/crate_universe/private/common_utils.bzl -index 4411ff3..a812caa 100644 ---- a/crate_universe/private/common_utils.bzl -+++ b/crate_universe/private/common_utils.bzl -@@ -91,20 +91,15 @@ def new_cargo_bazel_fn( - # start of a module extension, thus triggering any restarts as early as - # possible (since module_ctx.path triggers restarts). - def _execute(args, env = {}, allow_fail = False): -+ tool_args = [] -+ tool_env = {} -+ if cargo_path: -+ tool_args = ["--cargo", cargo_path, "--rustc", rustc_path] -+ tool_env = {"CARGO": str(cargo_path), "RUSTC": str(rustc_path)} - return execute( - repository_ctx, -- args = [ -- cargo_bazel_path, -- ] + args + [ -- "--cargo", -- cargo_path, -- "--rustc", -- rustc_path, -- ], -- env = { -- "CARGO": str(cargo_path), -- "RUSTC": str(rustc_path), -- } | cargo_environ(repository_ctx, isolated = isolated) | env, -+ args = [cargo_bazel_path] + args + tool_args, -+ env = tool_env | cargo_environ(repository_ctx, isolated = isolated) | env, - allow_fail = allow_fail, - quiet = quiet, - ) diff --git a/families/julia/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch b/families/julia/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch deleted file mode 100644 index 91e7f30271..0000000000 --- a/families/julia/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/crate_universe/extensions.bzl -+++ b/crate_universe/extensions.bzl -@@ -634,8 +634,12 @@ - ) - - # The workspace root when one is explicitly provided. -- # buildifier: disable=canonical-repository -- nonhermetic_root_bazel_workspace_dir = module_ctx.path(Label("@@//:MODULE.bazel")).dirname -+ if is_root: -+ # buildifier: disable=canonical-repository -+ nonhermetic_root_bazel_workspace_dir = module_ctx.path(Label("@@//:MODULE.bazel")).dirname -+ else: -+ # Non-root modules never repin, and the pinned generator only uses this to filter watched paths. -+ nonhermetic_root_bazel_workspace_dir = tag_path - - # If re-pinning is enabled, gather additional inputs for the generator - kwargs = dict() diff --git a/families/julia/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch b/families/julia/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch deleted file mode 100644 index bf34b294d3..0000000000 --- a/families/julia/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch +++ /dev/null @@ -1,85 +0,0 @@ ---- a/cargo/private/cargo_build_script.bzl -+++ b/cargo/private/cargo_build_script.bzl -@@ -100,6 +100,10 @@ - ) - return cc_c_args, cc_cxx_args, cc_env - -+def _pwd_tool(path): -+ """Makes an execroot-relative tool path absolute at run time; the runner expands ${pwd}.""" -+ return "${pwd}/" + path if _should_prefix_pwd(path) else path -+ - # These get replaced with the non-hermetic values magically, and result in - # absolute paths, so they shouldn't have PWD prefixed. - # https://github.com/bazelbuild/apple_support/blob/20913e2a9ad4a00a1849a464b856d04b5cd3bdcb/lib/apple_support.bzl#L174-L198 -@@ -569,6 +573,60 @@ - # that doing so is more likely to hurt than help. If you need to change - # ARFLAGS, make changes to cc-rs. - -+ # cc-rs reads HOST_* for code built for the host and TARGET_* for the -+ # target. Without them it falls back to an ambient `cc` when the exec -+ # and target platforms differ. When HOST == TARGET cc-rs adds HOST_*FLAGS -+ # on top of CFLAGS, so there HOST_* name the target tools and the flags -+ # stay empty: two toolchains' include dirs break `#include_next` (#8681). -+ cross = toolchain.target_flag_value != toolchain.exec_triple.str -+ if cross: -+ exec_cc_toolchain = ctx.attr._exec_cc_toolchain[cc_common.CcToolchainInfo] -+ exec_feature_configuration = cc_common.configure_features( -+ ctx = ctx, -+ cc_toolchain = exec_cc_toolchain, -+ requested_features = ctx.features, -+ unsupported_features = ctx.disabled_features, -+ ) -+ toolchain_tools.append(exec_cc_toolchain.all_files) -+ exec_tools = { -+ "CC": cc_common.get_tool_for_action( -+ feature_configuration = exec_feature_configuration, -+ action_name = ACTION_NAMES.c_compile, -+ ), -+ "CXX": cc_common.get_tool_for_action( -+ feature_configuration = exec_feature_configuration, -+ action_name = ACTION_NAMES.cpp_compile, -+ ), -+ "AR": cc_common.get_tool_for_action( -+ feature_configuration = exec_feature_configuration, -+ action_name = ACTION_NAMES.cpp_link_static_library, -+ ) or exec_cc_toolchain.ar_executable, -+ } -+ exec_c_args, exec_cxx_args, _ = get_cc_compile_args_and_env(exec_cc_toolchain, exec_feature_configuration) -+ for name, tool in exec_tools.items(): -+ if tool and "libtool" not in tool: -+ env["HOST_" + name] = _pwd_tool(tool) -+ env["HOST_CFLAGS"] = " ".join(_pwd_flags(exec_c_args)) -+ env["HOST_CXXFLAGS"] = " ".join(_pwd_flags(exec_cxx_args)) -+ else: -+ env["HOST_CFLAGS"] = "" -+ env["HOST_CXXFLAGS"] = "" -+ env["TARGET_CFLAGS"] = env["CFLAGS"] -+ env["TARGET_CXXFLAGS"] = env["CXXFLAGS"] -+ if ctx.configuration.coverage_enabled: -+ # rustc's profiler runtime is not ISO wide stdio; C that is links against it fails (#8448, hermeticbuild/hermetic-llvm#871). -+ undef_iso_stdio = " /U_CRT_STDIO_ISO_WIDE_SPECIFIERS" -+ if toolchain.target_triple.str.endswith("-windows-msvc"): -+ env["CFLAGS"] += undef_iso_stdio -+ env["TARGET_CFLAGS"] += undef_iso_stdio -+ if cross and toolchain.exec_triple.str.endswith("-windows-msvc"): -+ env["HOST_CFLAGS"] += undef_iso_stdio -+ for name in ["CC", "CXX", "AR"]: -+ if env.get(name) and "libtool" not in env[name]: -+ env["TARGET_" + name] = _pwd_tool(env[name]) -+ if not cross: -+ env["HOST_" + name] = env["TARGET_" + name] -+ - # Inform build scripts of rustc flags - # https://github.com/rust-lang/cargo/issues/9600 - env["CARGO_ENCODED_RUSTFLAGS"] = "\\x1f".join([ -@@ -941,6 +999,10 @@ - allow_files = True, - default = Label("//cargo/private:no_cxx"), - ), -+ "_exec_cc_toolchain": attr.label( -+ default = Label("@rules_cc//cc:current_cc_toolchain"), -+ cfg = "exec", -+ ), - "_out_dir_volatile_file_basenames": attr.label( - default = Label("//cargo/settings:out_dir_volatile_file_basenames"), - ), diff --git a/families/julia/third_party/rules_dx/rules_rust.msvc_pdb_output.patch b/families/julia/third_party/rules_dx/rules_rust.msvc_pdb_output.patch deleted file mode 100644 index 4ee47d9d3f..0000000000 --- a/families/julia/third_party/rules_dx/rules_rust.msvc_pdb_output.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -2048,7 +2048,9 @@ - pdb_file = None - dsym_folder = None - if crate_info.type in ("cdylib", "bin") and not experimental_use_cc_common_link: -- if toolchain.target_abi == "msvc" and compilation_mode.strip_level == "none": -+ # rustc ignores -Cstrip on MSVC and always links with /DEBUG, so the PDB is written -+ # whatever the strip level (rust-lang/rust#115120). -+ if toolchain.target_abi == "msvc": - pdb_file = ctx.actions.declare_file(crate_info.output.basename[:-len(crate_info.output.extension)] + "pdb", sibling = crate_info.output) - action_outputs.append(pdb_file) - elif toolchain.target_os in ["macos", "darwin"]: diff --git a/families/julia/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch b/families/julia/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch deleted file mode 100644 index 23b810bc1b..0000000000 --- a/families/julia/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -1909,6 +1909,14 @@ - if experimental_use_cc_common_link: - emit = ["obj"] - -+ # The full action must not write the `.rmeta` that the metadata action declares, -+ # or on Windows (no sandbox) it hits the read-only file left by that action. -+ emit_full = emit -+ full_rmeta = None -+ if build_metadata and not experimental_use_cc_common_link: -+ full_rmeta = ctx.actions.declare_file("_rmeta_full/" + build_metadata.basename, sibling = build_metadata) -+ emit_full = [("metadata", full_rmeta) if kind == "metadata" else kind for kind in emit] -+ - # Declares the outputs of the rustc compile action. - # By default this is the binary output; if cc_common.link is used, this is - # the main `.o` file (`output_o` below). -@@ -1975,7 +1983,7 @@ - toolchain = toolchain, - tool_file = toolchain.rustc, - cc_toolchain = cc_toolchain, -- emit = emit, -+ emit = emit_full, - feature_configuration = feature_configuration, - crate_info = crate_info, - dep_info = dep_info, -@@ -2046,6 +2054,8 @@ - - # The action might generate extra output that we don't want to include in the `DefaultInfo` files. - action_outputs = list(outputs) -+ if full_rmeta: -+ action_outputs.append(full_rmeta) - if rustc_output: - action_outputs.append(rustc_output) - if profiling_dir: diff --git a/families/julia/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch b/families/julia/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch deleted file mode 100644 index 5bdd7b8bdf..0000000000 --- a/families/julia/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -375,6 +375,28 @@ - """ - return ctx.fragments.cpp.linkopts - -+def _msvc_libpath_dir(arg): -+ """Returns the directory of a `/LIBPATH:`, `-LIBPATH:` or clang-cl `/clang:/LIBPATH:` arg, else None.""" -+ if arg[:7].lower() == "/clang:": -+ arg = arg[7:] -+ if arg[:9].lower() in ("/libpath:", "-libpath:"): -+ return arg[9:] -+ return None -+ -+# rustc picks the CRT itself from crt-static. -+_MSVC_CRT_LIBS = ["libcmt", "libcmtd", "msvcrt", "msvcrtd", "libucrt", "libucrtd", "ucrt", "ucrtd", "libvcruntime", "libvcruntimed", "vcruntime", "vcruntimed"] -+ -+def _msvc_default_lib(arg): -+ """Returns the library of a non-CRT `/DEFAULTLIB:`, `-DEFAULTLIB:` or clang-cl `/clang:/DEFAULTLIB:` arg, else None.""" -+ if arg[:7].lower() == "/clang:": -+ arg = arg[7:] -+ if arg[:12].lower() not in ("/defaultlib:", "-defaultlib:"): -+ return None -+ lib = arg[12:] -+ if lib.lower().removesuffix(".lib") in _MSVC_CRT_LIBS: -+ return None -+ return lib -+ - def get_linker_and_args(ctx, crate_type, toolchain, cc_toolchain, feature_configuration, rpaths, add_flags_for_binary = False): - """Gathers cc_common linker information - -@@ -478,6 +500,14 @@ - filtered_args.append(version) - # Keep library search path flags - -+ elif toolchain.target_abi == "msvc" and _msvc_libpath_dir(processed_arg) != None: -+ # The MSVC cc toolchain carries the CRT and SDK lib dirs as linker args. -+ filtered_args.append("-LIBPATH:" + _msvc_libpath_dir(processed_arg)) -+ -+ elif toolchain.target_abi == "msvc" and _msvc_default_lib(processed_arg) != None: -+ # The C++ standard library, e.g. libc++.lib under clang-cl, is a default lib of the cc toolchain. -+ filtered_args.append("-DEFAULTLIB:" + _msvc_default_lib(processed_arg)) -+ - elif processed_arg.startswith("-L"): - filtered_args.append(processed_arg) - # Keep sysroot flags (as single or two-part arguments) diff --git a/families/julia/third_party/rules_dx/rules_swift.non_root_toolchain.patch b/families/julia/third_party/rules_dx/rules_swift.non_root_toolchain.patch deleted file mode 100644 index f6290ebfc2..0000000000 --- a/families/julia/third_party/rules_dx/rules_swift.non_root_toolchain.patch +++ /dev/null @@ -1,79 +0,0 @@ -diff --git a/swift/extensions.bzl b/swift/extensions.bzl ---- a/swift/extensions.bzl -+++ b/swift/extensions.bzl -@@ -128,41 +128,48 @@ def _single_sdk_tag(tags, kind): - return sdk_tag - - def _standalone_toolchain_impl(module_ctx): -- root_module = None -- for mod in module_ctx.modules: -- if not mod.is_root and not module_ctx.is_dev_dependency: -- fail("Only the root module can use the 'swift' extension. Packages meant to be used as deps should use dev_dependency = True") -- root_module = mod -- -- if not root_module: -- fail("Could not find a root module. This should never happen.") -- - swift_release_metadata = json.decode( - module_ctx.read(Label("//swift/internal/extensions:swift_release_metadata.json"), watch = "yes"), - ) - swift_releases = swift_release_metadata["toolchains"] - swift_sdk_releases = swift_release_metadata["sdks"] - -- android_sdk_tag = _single_sdk_tag( -- root_module.tags.android_sdk, -- "android_sdk", -- ) -- wasm_sdk_tag = _single_sdk_tag( -- root_module.tags.wasm_sdk, -- "wasm_sdk", -- ) -- -- if len(root_module.tags.toolchain) > 1: -- fail("swift.toolchain() can currently only be called once. Please file an issue if you need multiple toolchains in a single module.") -+ toolchains = [] -+ toolchain_modules = {} -+ for mod in module_ctx.modules: -+ if not mod.is_root and (mod.tags.android_sdk or mod.tags.wasm_sdk): -+ fail("Only the root module can use the `android_sdk` and `wasm_sdk` tags.") - -- if not root_module.tags.toolchain: -- if android_sdk_tag: -- fail("The `android_sdk` tag requires a `toolchain` tag.") -- if wasm_sdk_tag: -- fail("The `wasm_sdk` tag requires a `toolchain` tag.") -+ android_sdk_tag = _single_sdk_tag( -+ mod.tags.android_sdk, -+ "android_sdk", -+ ) -+ wasm_sdk_tag = _single_sdk_tag( -+ mod.tags.wasm_sdk, -+ "wasm_sdk", -+ ) - -- toolchains_build_file_content = "" -- for toolchain in root_module.tags.toolchain: -+ if len(mod.tags.toolchain) > 1: -+ fail("swift.toolchain() can currently only be called once. Please file an issue if you need multiple toolchains in a single module.") -+ -+ if not mod.tags.toolchain: -+ if android_sdk_tag: -+ fail("The `android_sdk` tag requires a `toolchain` tag.") -+ if wasm_sdk_tag: -+ fail("The `wasm_sdk` tag requires a `toolchain` tag.") -+ -+ for toolchain in mod.tags.toolchain: -+ if toolchain.name in toolchain_modules: -+ fail("swift.toolchain() name `{}` is used by both `{}` and `{}`. Each toolchain needs a unique name.".format( -+ toolchain.name, -+ toolchain_modules[toolchain.name], -+ mod.name, -+ )) -+ toolchain_modules[toolchain.name] = mod.name -+ toolchains.append((toolchain, android_sdk_tag, wasm_sdk_tag)) -+ -+ for toolchain, android_sdk_tag, wasm_sdk_tag in toolchains: -+ toolchains_build_file_content = "" - if toolchain.swift_version and toolchain.swift_version_file: - fail("Cannot use both swift_version and swift_version_file together. Please choose one.") - diff --git a/families/julia/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch b/families/julia/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch deleted file mode 100644 index f8257c7cb3..0000000000 --- a/families/julia/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch +++ /dev/null @@ -1,240 +0,0 @@ -diff --git a/swift/extensions.bzl b/swift/extensions.bzl ---- a/swift/extensions.bzl -+++ b/swift/extensions.bzl -@@ -180,13 +180,25 @@ def _standalone_toolchain_impl(module_ctx): - )) - - toolchain_releases = toolchain.platform_sha256.items() or swift_releases[swift_version].items() -+ unknown_sysroot_platforms = [ -+ platform -+ for platform in toolchain.sysroot -+ if platform not in [p for p, _ in toolchain_releases] -+ ] -+ if unknown_sysroot_platforms: -+ fail("`sysroot` has platforms that this toolchain does not download: {}".format( -+ unknown_sysroot_platforms, -+ )) -+ - for platform, sha256 in toolchain_releases: - repository_name = toolchain.name + "_{}".format(platform) - standalone_toolchain( - name = repository_name, -+ env = toolchain.env, - sha256 = sha256, - platform = platform, - swift_version = swift_version, -+ sysroot = toolchain.sysroot.get(platform), - ) - toolchains_build_file_content += toolchains_for_platform( - platform = platform, -@@ -249,6 +261,12 @@ and defines Swift and C++ toolchains targeting `wasm32-unknown-wasip1`. - ) - - _toolchain = tag_class(attrs = { -+ "env": attr.string_dict( -+ doc = """\ -+Environment variables for the exec Swift toolchain. `{sysroot}` in a value is -+replaced with the root of that platform's `sysroot`. -+""", -+ ), - "name": attr.string( - doc = "Repository name of the generated toolchain", - mandatory = True, -@@ -262,6 +280,15 @@ their hashes. For instance: - """, - ), - "swift_version": attr.string(doc = "Version of the swift toolchain to be installed. Cannot be used concurrently with `swift_version_file`"), -+ "sysroot": attr.string_keyed_label_dict( -+ doc = """\ -+A dictionary of platforms and the sysroot files for their exec Swift toolchain. -+ -+The exec Swift toolchain passes the sysroot's root as `-sdk` and adds the files -+to the inputs of its Swift tools. Without it, `-sdk` comes from the C++ -+toolchain's sysroot. -+""", -+ ), - "swift_version_file": attr.label(doc = "A label to the .swift_version file to use. Cannot be used concurrently with `swift_version`"), - }) - -diff --git a/swift/internal/extensions/BUILD.bazel b/swift/internal/extensions/BUILD.bazel ---- a/swift/internal/extensions/BUILD.bazel -+++ b/swift/internal/extensions/BUILD.bazel -@@ -4,7 +4,10 @@ bzl_library( - name = "standalone_toolchain", - srcs = ["standalone_toolchain.bzl"], - visibility = ["//swift:__subpackages__"], -- deps = ["@bazel_skylib//lib:paths"], -+ deps = [ -+ "@bazel_skylib//lib:dicts", -+ "@bazel_skylib//lib:paths", -+ ], - ) - - bzl_library( -diff --git a/swift/internal/extensions/standalone_toolchain.bzl b/swift/internal/extensions/standalone_toolchain.bzl ---- a/swift/internal/extensions/standalone_toolchain.bzl -+++ b/swift/internal/extensions/standalone_toolchain.bzl -@@ -6,6 +6,7 @@ Supports both macOS (.pkg) and Linux (.tar.gz) toolchain formats, with automatic - platform detection and appropriate extraction methods. - """ - -+load("@bazel_skylib//lib:dicts.bzl", "dicts") - load("@bazel_skylib//lib:paths.bzl", "paths") - - # Download URLs are documented in the OpenAPI spec here: -@@ -62,6 +63,27 @@ def _run(repository_ctx, command): - - return result.stdout.strip() - -+def sysroot_substitutions(sysroot, env): -+ """Returns the BUILD template substitutions for the optional sysroot and env. -+ -+ Args: -+ sysroot: A `Label` of the sysroot files, or `None`. -+ env: A string dict of environment variables for the exec toolchain. -+ `{sysroot}` in a value is replaced with the sysroot's root. -+ -+ Returns: -+ A dict of template substitutions. -+ """ -+ sdkroot = sysroot.workspace_root if sysroot else "" -+ for key, value in env.items(): -+ if "{sysroot}" in value and not sysroot: -+ fail("env `{}` uses `{{sysroot}}` but no sysroot is set".format(key)) -+ return { -+ "{env}": repr({key: value.replace("{sysroot}", sdkroot) for key, value in env.items()}), -+ "{sdkroot}": sdkroot, -+ "{sysroot_inputs}": repr([str(sysroot)]) if sysroot else "[]", -+ } -+ - def _standalone_toolchain_impl(repository_ctx): - url = get_download_url(repository_ctx.attr.swift_version, repository_ctx.attr.platform) - filename = paths.basename(url) -@@ -109,15 +131,24 @@ def _standalone_toolchain_impl(repository_ctx): - repository_ctx.template( - "BUILD.bazel", - repository_ctx.attr._build_template, -- substitutions = { -- "{linux_sysroot_version}": linux_sysroot_version, -- "{swift_version}": repository_ctx.attr.swift_version, -- }, -+ substitutions = dicts.add( -+ { -+ "{linux_sysroot_version}": linux_sysroot_version, -+ "{swift_version}": repository_ctx.attr.swift_version, -+ }, -+ sysroot_substitutions(repository_ctx.attr.sysroot, repository_ctx.attr.env), -+ ), - ) - - standalone_toolchain = repository_rule( - implementation = _standalone_toolchain_impl, - attrs = { -+ "env": attr.string_dict( -+ doc = """\ -+Environment variables for the exec Swift toolchain. `{sysroot}` in a value is -+replaced with the sysroot's root. The embedded toolchain is unaffected. -+""", -+ ), - "platform": attr.string( - doc = "The host platform name in the swift package download URL", - mandatory = True, -@@ -129,6 +160,12 @@ standalone_toolchain = repository_rule( - doc = "Version of the swift toolchain to be installed.", - mandatory = True, - ), -+ "sysroot": attr.label( -+ doc = """\ -+Label of the files of a sysroot to build against. The exec Swift toolchain passes -+the sysroot's root as `-sdk` and adds the files to the inputs of its Swift tools. -+""", -+ ), - "_build_template": attr.label( - default = "//swift/internal/extensions:toolchain.BUILD", - ), -diff --git a/swift/internal/extensions/toolchain.BUILD b/swift/internal/extensions/toolchain.BUILD ---- a/swift/internal/extensions/toolchain.BUILD -+++ b/swift/internal/extensions/toolchain.BUILD -@@ -283,28 +283,38 @@ cc_toolchain( - tool_map = "all_tools", - ) - -+_SWIFT_TOOL_INPUTS = glob( -+ [ -+ "usr/lib/swift/**", -+ ] + [ -+ "usr/bin/swift", -+ "usr/bin/swift-frontend", -+ ], -+ exclude = [ -+ # for now we only tested embedded, linux and macos so we can exclude files needed for -+ # other platforms. -+ "usr/lib/swift/xrsimulator/**", -+ "usr/lib/swift/appletvos/**", -+ "usr/lib/swift/watchos/**", -+ "usr/lib/swift/appletvsimulator/**", -+ "usr/lib/swift/iphoneos/**", -+ "usr/lib/swift/iphonesimulator/**", -+ "usr/lib/swift/watchsimulator/**", -+ "usr/lib/swift/xros/**", -+ ], -+) -+ - swift_tools( - name = "tools", -- additional_inputs = glob( -- [ -- "usr/lib/swift/**", -- ] + [ -- "usr/bin/swift", -- "usr/bin/swift-frontend", -- ], -- exclude = [ -- # for now we only tested embedded, linux and macos so we can exclude files needed for -- # other platforms. -- "usr/lib/swift/xrsimulator/**", -- "usr/lib/swift/appletvos/**", -- "usr/lib/swift/watchos/**", -- "usr/lib/swift/appletvsimulator/**", -- "usr/lib/swift/iphoneos/**", -- "usr/lib/swift/iphonesimulator/**", -- "usr/lib/swift/watchsimulator/**", -- "usr/lib/swift/xros/**", -- ], -- ), -+ additional_inputs = _SWIFT_TOOL_INPUTS, -+ swift_autolink_extract = "usr/bin/swift-autolink-extract", -+ swift_driver = "usr/bin/swiftc", -+ swift_symbolgraph_extract = "usr/bin/swift-symbolgraph-extract", -+) -+ -+swift_tools( -+ name = "tools_exec", -+ additional_inputs = _SWIFT_TOOL_INPUTS + {sysroot_inputs}, - swift_autolink_extract = "usr/bin/swift-autolink-extract", - swift_driver = "usr/bin/swiftc", - swift_symbolgraph_extract = "usr/bin/swift-symbolgraph-extract", -@@ -348,6 +358,7 @@ swift_toolchain( - ], - allow_empty = True, - ), -+ env = {env}, - features = [ - "swift._supports_upcoming_features", - "swift.no_embed_debug_module", -@@ -364,6 +375,7 @@ swift_toolchain( - "@platforms//os:macos": "macos", - }), - parsed_version = "{swift_version}", -+ sdkroot = "{sdkroot}", - static_runtime = select({ - "@platforms//os:linux": glob( - [ -@@ -377,6 +389,6 @@ swift_toolchain( - ), - "//conditions:default": [], - }), -- swift_tools = "tools", -+ swift_tools = "tools_exec", - version_file = ".swift-version", - ) diff --git a/families/julia/third_party/rules_dx/windows_support.dx_msvc_layout.patch b/families/julia/third_party/rules_dx/windows_support.dx_msvc_layout.patch deleted file mode 100644 index ea9b7188f0..0000000000 --- a/families/julia/third_party/rules_dx/windows_support.dx_msvc_layout.patch +++ /dev/null @@ -1,174 +0,0 @@ -diff --git a/windows/private/extensions/msvc_runtime.BUILD.bazel b/windows/private/extensions/msvc_runtime.BUILD.bazel ---- a/windows/private/extensions/msvc_runtime.BUILD.bazel -+++ b/windows/private/extensions/msvc_runtime.BUILD.bazel -@@ -79,6 +79,44 @@ - }), - ) - -+directory( -+ name = "dx_subsets_files", -+ srcs = glob( -+ ["dx_subsets/**"], -+ allow_empty = True, -+ ), -+) -+ -+[ -+ subdirectory( -+ name = "msvc_{}".format(subset), -+ parent = ":dx_subsets_files", -+ path = "dx_subsets/{}".format(subset), -+ ) -+ for subset in ("com_support_include", "vcruntime_include") -+] -+ -+[ -+ subdirectory( -+ name = "msvc_{}_libraries_{}".format(subset, arch), -+ parent = ":dx_subsets_files", -+ path = "dx_subsets/lib/{}/{}".format(arch, subset), -+ ) -+ for subset in ("com", "common", "dynamic", "static") -+ for arch in ("x64", "arm64") -+] -+ -+[ -+ alias( -+ name = "msvc_{}_libraries".format(subset), -+ actual = select({ -+ ":windows_aarch64": ":msvc_{}_libraries_arm64".format(subset), -+ "//conditions:default": ":msvc_{}_libraries_x64".format(subset), -+ }), -+ ) -+ for subset in ("com", "common", "dynamic", "static") -+] -+ - filegroup( - name = "vc_redist_x64", - srcs = glob( -@@ -174,3 +212,28 @@ - allow_empty = True, - ), - ) -+ -+filegroup( -+ name = "msvc_host_tools", -+ srcs = glob( -+ [ -+ "__MSVC_RUNTIME_DIR__/Contents/VC/Tools/MSVC/__MSVC_VERSION__/bin/**", -+ "__MSVC_RUNTIME_DIR__/Contents/VC/Auxiliary/Build/*.bat", -+ ], -+ allow_empty = True, -+ ), -+) -+ -+[ -+ filegroup( -+ name = "vc_runtime_dlls_" + arch, -+ srcs = glob( -+ [ -+ "__MSVC_RUNTIME_DIR__/Contents/VC/Redist/MSVC/__VC_REDIST_VERSION__/{}/*/{}.dll".format(arch, dll) -+ for dll in ["vcruntime140", "vcruntime140_1", "msvcp140", "msvcp140_1", "msvcp140_2"] -+ ], -+ allow_empty = True, -+ ), -+ ) -+ for arch in ("x64", "arm64") -+] -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -328,6 +328,79 @@ - redist_architectures, - ) - -+# Parts of the MSVC tree that llvm's clang-cl toolchain puts on its include and -+# library search paths. Copying them here keeps them out of the action graph. -+_DX_SUBSET_HEADERS = { -+ "com_support_include": [ -+ "comdef.h", -+ "comdefsp.h", -+ "comip.h", -+ "comutil.h", -+ ], -+ "vcruntime_include": [ -+ "CodeAnalysis/sourceannotations.h", -+ "concurrencysal.h", -+ "crtdefs.h", -+ "eh.h", -+ "ehdata.h", -+ "ehdata_forceinclude.h", -+ "ehdata_values.h", -+ "excpt.h", -+ "sal.h", -+ "setjmp.h", -+ "setjmpex.h", -+ "threads.h", -+ "vadefs.h", -+ "vcruntime.h", -+ "vcruntime_exception.h", -+ "vcruntime_new.h", -+ "vcruntime_new_debug.h", -+ "vcruntime_string.h", -+ "vcruntime_startup.h", -+ "vcruntime_typeinfo.h", -+ ], -+} -+ -+_DX_SUBSET_LIBRARIES = { -+ "com": [ -+ "comsupp.lib", -+ "comsuppw.lib", -+ ], -+ "common": [ -+ "exe_initialize_mta.lib", -+ "iso_stdio_wide_specifiers.lib", -+ "legacy_stdio_definitions.lib", -+ "legacy_stdio_wide_specifiers.lib", -+ "oldnames.lib", -+ ], -+ "dynamic": [ -+ "msvcprt.lib", -+ "msvcrt.lib", -+ "vcruntime.lib", -+ ], -+ "static": [ -+ "libcmt.lib", -+ "libcpmt.lib", -+ "libvcruntime.lib", -+ ], -+} -+ -+def _write_dx_subsets(repository_ctx, sysroot_dir, msvc_version, architectures): -+ msvc_dir = "{}/Contents/VC/Tools/MSVC/{}".format(sysroot_dir, msvc_version) -+ copies = {} -+ for subset, headers in _DX_SUBSET_HEADERS.items(): -+ for header in headers: -+ copies["dx_subsets/{}/{}".format(subset, header)] = "{}/include/{}".format(msvc_dir, header) -+ for arch in architectures: -+ if arch not in ["x64", "arm64"]: -+ continue -+ for subset, libraries in _DX_SUBSET_LIBRARIES.items(): -+ for library in libraries: -+ copies["dx_subsets/lib/{}/{}/{}".format(arch, subset, library)] = "{}/lib/{}/{}".format(msvc_dir, arch, library) -+ for dst, src in copies.items(): -+ if repository_ctx.path(src).exists: -+ repository_ctx.file(dst, repository_ctx.read(src), executable = False, legacy_utf8 = False) -+ - def _msvc_runtime_repository_impl(repository_ctx): - _check_msvc_license_requirements(repository_ctx) - -@@ -389,6 +462,13 @@ - if redist_architectures and not redist_version: - fail("failed to find Contents/VC/Redist/MSVC/ in extracted MSVC payloads for architectures {}".format(redist_architectures)) - _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version, repository_ctx.attr.host_tools) -+ _write_dx_subsets(repository_ctx, sysroot_dir, msvc_version, architectures) -+ if repository_ctx.attr.host_tools: -+ for stub in ["vcvarsall.bat", "vcvars64.bat"]: -+ repository_ctx.file( -+ "{}/Contents/VC/Auxiliary/Build/{}".format(sysroot_dir, stub), -+ "@rem Placeholder for tools that probe for vcvars; the environment comes from the toolchain.\n", -+ ) - - repository_ctx.file( - "versions.bzl", diff --git a/families/julia/third_party/rules_dx/windows_support.host_tools.patch b/families/julia/third_party/rules_dx/windows_support.host_tools.patch deleted file mode 100644 index 35eeb1e8d4..0000000000 --- a/families/julia/third_party/rules_dx/windows_support.host_tools.patch +++ /dev/null @@ -1,263 +0,0 @@ -diff -ruN a/windows/private/extensions/msvc_runtime.BUILD.bazel b/windows/private/extensions/msvc_runtime.BUILD.bazel ---- a/windows/private/extensions/msvc_runtime.BUILD.bazel -+++ b/windows/private/extensions/msvc_runtime.BUILD.bazel -@@ -130,6 +130,18 @@ - }), - ) - -+[ -+ filegroup( -+ name = "msvc_tools_{}_{}".format(host, target), -+ srcs = glob( -+ ["__MSVC_RUNTIME_DIR__/Contents/VC/Tools/MSVC/__MSVC_VERSION__/bin/Host{}/{}/**".format(host, target)], -+ allow_empty = True, -+ ), -+ ) -+ for host in ("x64", "arm64") -+ for target in ("x64", "arm64") -+] -+ - filegroup( - name = "all_files", - srcs = glob( -diff -ruN a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -138,6 +138,9 @@ - def _collect_vctools_packages(installer_manifest, architectures): - packages_by_id = {} - for pkg in installer_manifest.get("packages", []): -+ # Resource packages repeat per language; without this the last one (zh-TW) wins and the tools print Chinese. -+ if pkg.get("language", "neutral").lower() not in ["neutral", "en-us"]: -+ continue - packages_by_id[pkg.get("id", "").lower()] = pkg - - pending = [] -@@ -204,6 +207,18 @@ - continue - repository_ctx.delete(entry) - -+def _keep_only_children_ignoring_case(repository_ctx, directory, child_names): -+ # Payloads spell one directory both Hostx64 and HostX64; a case-insensitive extract keeps whichever came first. -+ entries = {_basename(entry): entry for entry in directory.readdir()} -+ keep = {} -+ for name in child_names: -+ for actual in entries: -+ if actual == name or (actual.lower() == name.lower() and name not in entries): -+ keep[actual] = True -+ for actual, entry in entries.items(): -+ if not keep.get(actual, False): -+ repository_ctx.delete(entry) -+ - def _is_dotted_version(name): - parts = name.split(".") - for part in parts: -@@ -241,7 +256,7 @@ - def _redist_architectures(architectures): - return [arch for arch in architectures if _ARCH_TO_REDIST_PACKAGE.get(arch)] - --def _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version): -+def _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version, host_tools): - sysroot_path = repository_ctx.path(sysroot_dir) - contents_dir = repository_ctx.path("{}/Contents".format(sysroot_dir)) - vc_dir = repository_ctx.path("{}/Contents/VC".format(sysroot_dir)) -@@ -256,13 +271,18 @@ - _keep_only_children( - repository_ctx, - repository_ctx.path("{}/Contents/VC/Tools/MSVC/{}".format(sysroot_dir, msvc_version)), -- ["include", "lib"], -+ ["include", "lib", "bin"] if host_tools else ["include", "lib"], - ) - _keep_only_children( - repository_ctx, - repository_ctx.path("{}/Contents/VC/Tools/MSVC/{}/lib".format(sysroot_dir, msvc_version)), - architectures, - ) -+ if host_tools: -+ bin_dir = "{}/Contents/VC/Tools/MSVC/{}/bin".format(sysroot_dir, msvc_version) -+ _keep_only_children_ignoring_case(repository_ctx, repository_ctx.path(bin_dir), ["Host" + host for host in host_tools]) -+ for host in host_tools: -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/Host{}".format(bin_dir, host)), architectures) - - if redist_version: - redist_architectures = _redist_architectures(architectures) -@@ -348,7 +368,7 @@ - redist_architectures = _redist_architectures(architectures) - if redist_architectures and not redist_version: - fail("failed to find Contents/VC/Redist/MSVC/ in extracted MSVC payloads for architectures {}".format(redist_architectures)) -- _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version) -+ _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version, repository_ctx.attr.host_tools) - - repository_ctx.file( - "versions.bzl", -@@ -394,6 +414,8 @@ - ), - ) - -+_HOST_TOOL_ARCHITECTURES = ["x64", "arm64"] -+ - _MSVC_RUNTIME_ATTR = { - "architectures": attr.string_list( - default = _DEFAULT_ARCHITECTURES, -@@ -414,6 +436,9 @@ - } - - _MSVC_RUNTIME_REPOSITORY_ATTRS = _MSVC_RUNTIME_ATTR | { -+ "host_tools": attr.string_list( -+ doc = "Host architectures whose compiler tools are kept under Contents/VC/Tools/MSVC//bin/Host", -+ ), - "_build_file": attr.label( - allow_single_file = True, - default = ":msvc_runtime.BUILD.bazel", -@@ -447,8 +472,20 @@ - - fail("Missing msvc_runtime.configure(...): set msvc_runtime.configure(...) in your MODULE.bazel") - -+def _read_host_tools(module_ctx): -+ hosts = [] -+ for mod in module_ctx.modules: -+ for tag in mod.tags.host_tools: -+ for host in tag.hosts: -+ if host not in _HOST_TOOL_ARCHITECTURES: -+ fail("msvc_runtime.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) -+ if host not in hosts: -+ hosts.append(host) -+ return sorted(hosts) -+ - def _msvc_runtime_extension_impl(module_ctx): - config = _read_configure_tag(module_ctx) -+ host_tools = _read_host_tools(module_ctx) - - installer_manifest = _resolve_installer_manifest_from_module_facts( - module_ctx, -@@ -463,6 +500,7 @@ - name = repository_name, - msvc_version = config.msvc_version, - architectures = config.architectures, -+ host_tools = host_tools, - installer_manifest_url = installer_manifest["url"], - installer_manifest_integrity = installer_manifest["integrity"], - ) -@@ -496,6 +534,15 @@ - doc = "Optional SRI integrity for the downloaded Visual Studio installer manifest.", - ), - }), -+ "host_tools": tag_class( -+ attrs = { -+ "hosts": attr.string_list( -+ mandatory = True, -+ doc = "Host architectures (`x64`, `arm64`) whose compiler tools (cl.exe, link.exe) are kept in the repository. Values from all modules are combined.", -+ ), -+ }, -+ doc = "Keeps the MSVC compiler tools for the given hosts, exposed as `msvc_tools__`.", -+ ), - }, - doc = "MSVC runtime extension.", - ) -diff -ruN a/windows/private/extensions/windows_sdk.BUILD.bazel b/windows/private/extensions/windows_sdk.BUILD.bazel ---- a/windows/private/extensions/windows_sdk.BUILD.bazel -+++ b/windows/private/extensions/windows_sdk.BUILD.bazel -@@ -189,3 +189,14 @@ - allow_empty = True, - ), - ) -+ -+[ -+ filegroup( -+ name = "winsdk_bin_" + host, -+ srcs = glob( -+ ["__WINSDK_DIR__/base/c/bin/__WINSDK_INCLUDE_VERSION__/{}/**".format(host)], -+ allow_empty = True, -+ ), -+ ) -+ for host in ("x64", "arm64") -+] -diff -ruN a/windows/private/extensions/windows_sdk.bzl b/windows/private/extensions/windows_sdk.bzl ---- a/windows/private/extensions/windows_sdk.bzl -+++ b/windows/private/extensions/windows_sdk.bzl -@@ -28,10 +28,13 @@ - continue - repository_ctx.delete(entry) - --def _keep_exposed_windows_sdk_files(repository_ctx, sysroot_dir, include_version, architectures): -+def _keep_exposed_windows_sdk_files(repository_ctx, sysroot_dir, include_version, architectures, host_tools): - _keep_only_children(repository_ctx, repository_ctx.path(sysroot_dir), ["base"] + architectures) - _keep_only_children(repository_ctx, repository_ctx.path("{}/base".format(sysroot_dir)), ["c"]) -- _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c".format(sysroot_dir)), ["Include"]) -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c".format(sysroot_dir)), ["Include", "bin"] if host_tools else ["Include"]) -+ if host_tools: -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c/bin".format(sysroot_dir)), [include_version]) -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c/bin/{}".format(sysroot_dir, include_version)), host_tools) - _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c/Include".format(sysroot_dir)), [include_version]) - _keep_only_children( - repository_ctx, -@@ -226,7 +229,7 @@ - ) - - _apply_transformations(repository_ctx) -- _keep_exposed_windows_sdk_files(repository_ctx, _SYSROOT_DIR, include_version, requested_architectures) -+ _keep_exposed_windows_sdk_files(repository_ctx, _SYSROOT_DIR, include_version, requested_architectures, repository_ctx.attr.host_tools) - - repository_ctx.file( - "versions.bzl", -@@ -263,6 +266,8 @@ - ), - ) - -+_HOST_TOOL_ARCHITECTURES = ["x64", "arm64"] -+ - _WINDOWS_SDK_ATTR = { - "architectures": attr.string_list( - default = _DEFAULT_ARCHITECTURES, -@@ -299,6 +304,9 @@ - } - - _WINDOWS_SDK_REPOSITORY_ATTRS = _WINDOWS_SDK_ATTR | { -+ "host_tools": attr.string_list( -+ doc = "Host architectures whose SDK tools (rc.exe, mt.exe) are kept under base/c/bin//", -+ ), - "_build_file": attr.label( - allow_single_file = True, - default = ":windows_sdk.BUILD.bazel", -@@ -331,6 +339,17 @@ - - fail("Missing windows_sdk.configure(...): set windows_sdk.configure(...) in your MODULE.bazel") - -+def _read_host_tools(module_ctx): -+ hosts = [] -+ for mod in module_ctx.modules: -+ for tag in mod.tags.host_tools: -+ for host in tag.hosts: -+ if host not in _HOST_TOOL_ARCHITECTURES: -+ fail("windows_sdk.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) -+ if host not in hosts: -+ hosts.append(host) -+ return sorted(hosts) -+ - def _windows_sdk_extension_impl(module_ctx): - config = _read_configure_tag(module_ctx) - -@@ -341,6 +360,7 @@ - windows_sdk_integrity = config.windows_sdk_integrity, - transformations = config.transformations, - architectures = config.architectures, -+ host_tools = _read_host_tools(module_ctx), - ) - - if module_ctx.root_module_has_non_dev_dependency: -@@ -358,6 +378,15 @@ - implementation = _windows_sdk_extension_impl, - tag_classes = { - "configure": tag_class(attrs = _WINDOWS_SDK_ATTR), -+ "host_tools": tag_class( -+ attrs = { -+ "hosts": attr.string_list( -+ mandatory = True, -+ doc = "Host architectures (`x64`, `arm64`) whose SDK tools (rc.exe, mt.exe) are kept. Values from all modules are combined.", -+ ), -+ }, -+ doc = "Keeps the Windows SDK tools for the given hosts, exposed as `winsdk_bin_`.", -+ ), - }, - doc = "Windows SDK extension backed by public NuGet packages.", - ) diff --git a/families/julia/third_party/rules_dx/windows_support.hostarm64_packages.patch b/families/julia/third_party/rules_dx/windows_support.hostarm64_packages.patch deleted file mode 100644 index 7e2b022f0e..0000000000 --- a/families/julia/third_party/rules_dx/windows_support.hostarm64_packages.patch +++ /dev/null @@ -1,85 +0,0 @@ -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -135,7 +135,27 @@ - decoded_struct = decoded, - ) - --def _collect_vctools_packages(installer_manifest, architectures): -+def _walk_dependencies(packages_by_id, frontier, selected, seen): -+ for _ in range(len(packages_by_id)): -+ if not frontier: -+ break -+ next_frontier = [] -+ for package_id in frontier: -+ if seen.get(package_id, False): -+ continue -+ seen[package_id] = True -+ pkg = packages_by_id.get(package_id) -+ if pkg == None: -+ continue -+ selected[package_id] = pkg -+ dependencies = pkg.get("dependencies", {}) -+ if type(dependencies) == "list": -+ next_frontier.extend(sorted([dep.lower() for dep in dependencies])) -+ else: -+ next_frontier.extend(sorted([dep.lower() for dep in dependencies.keys()])) -+ frontier = next_frontier -+ -+def _collect_vctools_packages(installer_manifest, architectures, host_tools = []): - packages_by_id = {} - for pkg in installer_manifest.get("packages", []): - # Resource packages repeat per language; without this the last one (zh-TW) wins and the tools print Chinese. -@@ -162,25 +182,25 @@ - - selected = {} - seen = {} -- frontier = pending -- for _ in range(len(packages_by_id)): -- if not frontier: -- break -- next_frontier = [] -- for package_id in frontier: -- if seen.get(package_id, False): -- continue -- seen[package_id] = True -- pkg = packages_by_id.get(package_id) -- if pkg == None: -+ _walk_dependencies(packages_by_id, pending, selected, seen) -+ -+ # The tools components only pull in the HostX64 compilers, so ask for -+ # the compilers of each requested host at the versions already selected. -+ extra = [] -+ for host in host_tools: -+ if host == "x64": -+ continue -+ for package_id in sorted(selected.keys()): -+ prefix = "microsoft.vc." -+ suffix = ".tools.hostx64.targetx64.base" -+ if not (package_id.startswith(prefix) and package_id.endswith(suffix)): - continue -- selected[package_id] = pkg -- dependencies = pkg.get("dependencies", {}) -- if type(dependencies) == "list": -- next_frontier.extend(sorted([dep.lower() for dep in dependencies])) -- else: -- next_frontier.extend(sorted([dep.lower() for dep in dependencies.keys()])) -- frontier = next_frontier -+ version = package_id[len(prefix):-len(suffix)] -+ for arch in architectures: -+ candidate = "{}{}.tools.host{}.target{}.base".format(prefix, version, host, arch) -+ if arch in ("x64", "arm64") and candidate in packages_by_id: -+ extra.append(candidate) -+ _walk_dependencies(packages_by_id, extra, selected, seen) - - vctools_packages = {} - for package_id in sorted(selected.keys()): -@@ -326,7 +346,7 @@ - repository_ctx.attr.installer_manifest_url, - repository_ctx.attr.installer_manifest_integrity, - ) -- packages = _collect_vctools_packages(installer_manifest.decoded_struct, repository_ctx.attr.architectures) -+ packages = _collect_vctools_packages(installer_manifest.decoded_struct, repository_ctx.attr.architectures, repository_ctx.attr.host_tools) - - # Download/extract VSIX packages to look for the MSVC runtime pieces - diff --git a/families/julia/third_party/rules_dx/windows_support.rules_dx_hosts.patch b/families/julia/third_party/rules_dx/windows_support.rules_dx_hosts.patch deleted file mode 100644 index 371db67b65..0000000000 --- a/families/julia/third_party/rules_dx/windows_support.rules_dx_hosts.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -466,6 +466,11 @@ - fail("msvc_runtime.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) - if host not in hosts: - hosts.append(host) -+ if not hosts: -+ # Default on under rules_dx so @dx_msvc has cl.exe; see #6484. -+ for mod in module_ctx.modules: -+ if mod.name == "rules_dx": -+ return sorted(_HOST_TOOL_ARCHITECTURES) - return sorted(hosts) - - def _msvc_runtime_extension_impl(module_ctx): -diff --git a/windows/private/extensions/windows_sdk.bzl b/windows/private/extensions/windows_sdk.bzl ---- a/windows/private/extensions/windows_sdk.bzl -+++ b/windows/private/extensions/windows_sdk.bzl -@@ -348,6 +348,11 @@ - fail("windows_sdk.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) - if host not in hosts: - hosts.append(host) -+ if not hosts: -+ # Default on under rules_dx so @dx_msvc has cl.exe; see #6484. -+ for mod in module_ctx.modules: -+ if mod.name == "rules_dx": -+ return sorted(_HOST_TOOL_ARCHITECTURES) - return sorted(hosts) - - def _windows_sdk_extension_impl(module_ctx): -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -198,9 +198,9 @@ - def _keep_only_children(repository_ctx, directory, child_names): - if not directory.exists or not directory.is_dir: - return -- allowed = {name: True for name in child_names} -+ allowed = {name.lower(): True for name in child_names} - for entry in directory.readdir(): -- if allowed.get(_basename(entry), False): -+ if allowed.get(_basename(entry).lower(), False): - continue - repository_ctx.delete(entry) - diff --git a/families/julia/third_party/rules_dx/windows_support.source_directory_headers.patch b/families/julia/third_party/rules_dx/windows_support.source_directory_headers.patch deleted file mode 100644 index 0e94604880..0000000000 --- a/families/julia/third_party/rules_dx/windows_support.source_directory_headers.patch +++ /dev/null @@ -1,146 +0,0 @@ -diff --git a/windows/BUILD.bazel b/windows/BUILD.bazel ---- a/windows/BUILD.bazel -+++ b/windows/BUILD.bazel -@@ -22,3 +22,10 @@ bzl_library( - "@bazel_tools//tools/build_defs/repo:utils.bzl", - ], - ) -+ -+bzl_library( -+ name = "source_directory_headers", -+ srcs = ["source_directory_headers.bzl"], -+ visibility = ["//visibility:public"], -+ deps = ["@bazel_skylib//rules/directory:providers"], -+) -diff --git a/windows/private/extensions/windows_sdk.BUILD.bazel b/windows/private/extensions/windows_sdk.BUILD.bazel ---- a/windows/private/extensions/windows_sdk.BUILD.bazel -+++ b/windows/private/extensions/windows_sdk.BUILD.bazel -@@ -2,6 +2,7 @@ - - load("@bazel_skylib//rules/directory:directory.bzl", "directory") - load("@bazel_skylib//rules/directory:subdirectory.bzl", "subdirectory") -+load("@windows_support//windows:source_directory_headers.bzl", "source_directory_headers") - - package(default_visibility = ["//visibility:public"]) - -@@ -38,11 +39,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_ucrt_include", -+ name = "winsdk_ucrt_include_directory", - parent = ":winsdk_ucrt_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/ucrt", - ) - -+filegroup( -+ name = "winsdk_ucrt_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/ucrt"], -+) -+ -+source_directory_headers( -+ name = "winsdk_ucrt_include", -+ directory = ":winsdk_ucrt_include_directory", -+ source_directory = ":winsdk_ucrt_include_source_directory", -+) -+ - directory( - name = "winsdk_shared_include_files", - srcs = glob( -@@ -52,11 +64,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_shared_include", -+ name = "winsdk_shared_include_directory", - parent = ":winsdk_shared_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/shared", - ) - -+filegroup( -+ name = "winsdk_shared_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/shared"], -+) -+ -+source_directory_headers( -+ name = "winsdk_shared_include", -+ directory = ":winsdk_shared_include_directory", -+ source_directory = ":winsdk_shared_include_source_directory", -+) -+ - directory( - name = "winsdk_um_include_files", - srcs = glob( -@@ -66,11 +89,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_um_include", -+ name = "winsdk_um_include_directory", - parent = ":winsdk_um_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/um", - ) - -+filegroup( -+ name = "winsdk_um_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/um"], -+) -+ -+source_directory_headers( -+ name = "winsdk_um_include", -+ directory = ":winsdk_um_include_directory", -+ source_directory = ":winsdk_um_include_source_directory", -+) -+ - directory( - name = "winsdk_winrt_include_files", - srcs = glob( -@@ -80,11 +114,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_winrt_include", -+ name = "winsdk_winrt_include_directory", - parent = ":winsdk_winrt_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/winrt", - ) - -+filegroup( -+ name = "winsdk_winrt_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/winrt"], -+) -+ -+source_directory_headers( -+ name = "winsdk_winrt_include", -+ directory = ":winsdk_winrt_include_directory", -+ source_directory = ":winsdk_winrt_include_source_directory", -+) -+ - directory( - name = "winsdk_ucrt_lib_arm64_files", - srcs = glob( -diff --git a/windows/source_directory_headers.bzl b/windows/source_directory_headers.bzl -new file mode 100644 ---- /dev/null -+++ b/windows/source_directory_headers.bzl -@@ -0,0 +1,20 @@ -+"""Headers exposed as one source directory with their DirectoryInfo.""" -+ -+load("@bazel_skylib//rules/directory:providers.bzl", "DirectoryInfo") -+ -+def _source_directory_headers_impl(ctx): -+ return [ -+ ctx.attr.directory[DirectoryInfo], -+ DefaultInfo(files = ctx.attr.source_directory[DefaultInfo].files), -+ ] -+ -+source_directory_headers = rule( -+ implementation = _source_directory_headers_impl, -+ doc = "Returns the DirectoryInfo of `directory` and the single source directory of `source_directory`.", -+ attrs = { -+ "directory": attr.label(mandatory = True, providers = [DirectoryInfo], doc = "Directory whose DirectoryInfo is forwarded."), -+ "source_directory": attr.label(mandatory = True, doc = "Filegroup holding the same directory as a source directory."), -+ }, -+ provides = [DirectoryInfo], -+ cfg = config.none(), -+) diff --git a/families/zig/.bazelrc b/families/zig/.bazelrc deleted file mode 100644 index 97c154f59a..0000000000 --- a/families/zig/.bazelrc +++ /dev/null @@ -1,23 +0,0 @@ -# dx Bazel preset; comment out an import to drop that layer. -try-import %workspace%/.dx/bazelrc/correctness.bazelrc -try-import %workspace%/.dx/bazelrc/performance.bazelrc -try-import %workspace%/.dx/bazelrc/resources.bazelrc - -common --registry=https://bcr.bazel.build -common --check_direct_dependencies=error - -build --java_runtime_version=remotejdk_21 -build --tool_java_runtime_version=remotejdk_21 -build --tool_java_language_version=17 - -common:ci --remote_cache=grpcs://remote.buildbuddy.io -common:ci --remote_cache_compression -common:ci --remote_timeout=10m -common:ci --remote_local_fallback -common:ci --remote_retries=5 -common:ci-pr --noremote_upload_local_results -common:bb --remote_cache=grpcs://remote.buildbuddy.io -common:bb --remote_cache_compression -common:bb --remote_timeout=10m - -try-import %workspace%/user.bazelrc diff --git a/families/zig/.bazelversion b/families/zig/.bazelversion deleted file mode 100644 index 3b74042132..0000000000 --- a/families/zig/.bazelversion +++ /dev/null @@ -1 +0,0 @@ -9.3.1 diff --git a/families/zig/.buildifier.json b/families/zig/.buildifier.json deleted file mode 100644 index 1d64e29305..0000000000 --- a/families/zig/.buildifier.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "warningsList": [ - "allowed-symbol-load-locations", - "attr-applicable_licenses", - "attr-cfg", - "attr-license", - "attr-licenses", - "attr-non-empty", - "attr-output-default", - "attr-single-file", - "build-args-kwargs", - "bzl-visibility", - "canonical-repository", - "confusing-name", - "constant-glob", - "ctx-actions", - "ctx-args", - "deprecated-function", - "depset-items", - "depset-iteration", - "depset-union", - "dict-concatenation", - "dict-method-named-arg", - "duplicated-name", - "external-path", - "filetype", - "function-docstring", - "function-docstring-header", - "git-repository", - "http-archive", - "integer-division", - "keyword-positional-params", - "list-append", - "load", - "module-docstring", - "name-conventions", - "native-android", - "native-build", - "native-cc-binary", - "native-cc-common", - "native-cc-debug-package-info", - "native-cc-fdo-prefetch-hints", - "native-cc-fdo-profile", - "native-cc-import", - "native-cc-info", - "native-cc-library", - "native-cc-memprof-profile", - "native-cc-objc-import", - "native-cc-objc-library", - "native-cc-propeller-optimize", - "native-cc-proto", - "native-cc-shared-library", - "native-cc-shared-library-hint-info", - "native-cc-shared-library-info", - "native-cc-test", - "native-cc-toolchain", - "native-cc-toolchain-suite", - "native-java-binary", - "native-java-common", - "native-java-import", - "native-java-info", - "native-java-library", - "native-java-lite-proto", - "native-java-package-config", - "native-java-plugin", - "native-java-plugin-info", - "native-java-proto", - "native-java-runtime", - "native-java-test", - "native-java-toolchain", - "native-package", - "native-proto", - "native-proto-common", - "native-proto-info", - "native-proto-lang-toolchain", - "native-proto-lang-toolchain-info", - "native-py", - "native-sh-binary", - "native-sh-library", - "native-sh-test", - "no-effect", - "output-group", - "overly-nested-depset", - "package-name", - "package-on-top", - "positional-args", - "print", - "provider-params", - "redefined-variable", - "repository-name", - "return-value", - "rule-impl-return", - "skylark-comment", - "skylark-docstring", - "string-iteration", - "uninitialized", - "unnamed-macro", - "unreachable", - "unused-variable" - ] -} diff --git a/families/zig/.dx/BUILD.bazel b/families/zig/.dx/BUILD.bazel deleted file mode 100644 index 4cf7a2e458..0000000000 --- a/families/zig/.dx/BUILD.bazel +++ /dev/null @@ -1,85 +0,0 @@ -# gazelle:ignore -# Generated by dx from dx.toml; dx generate rewrites this file. - -load("@rules_dx//quality:native_config.bzl", "buildifier_config") -load("@rules_dx//quality/private:generated_policy.bzl", "dx_generated_policy") - -package(default_visibility = ["//visibility:public"]) - -buildifier_config( - name = "buildifier", - src = "//:.buildifier.json", - data = ["config/buildifier/base.json"], -) - -dx_generated_policy( - name = "policy", - configs = [":buildifier"], - families = { - "cc": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["clang_format"], - "lint": [ - "clang_tidy", - "typos", - ], - }, - "json": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["biome"], - "lint": ["biome"], - }, - "markdown": { - "disabled": [ - "audit", - "format", - "typecheck", - ], - "lint": [ - "lychee", - "markdown_check", - "typos", - ], - }, - "shell": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["shfmt"], - "lint": [ - "shellcheck", - "typos", - ], - }, - "starlark": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["buildifier"], - "lint": [ - "buildifier", - "typos", - ], - }, - "toml": { - "disabled": [ - "audit", - "typecheck", - ], - "format": ["taplo"], - "lint": [ - "taplo", - "typos", - ], - }, - }, - tier = "strict", -) diff --git a/families/zig/.dx/bazelrc/correctness.bazelrc b/families/zig/.dx/bazelrc/correctness.bazelrc deleted file mode 100644 index cdc70dc863..0000000000 --- a/families/zig/.dx/bazelrc/correctness.bazelrc +++ /dev/null @@ -1,91 +0,0 @@ -# Vendored Bazel execution preset -- GENERATED, do not edit. -# Regenerate: `tools/dx init --apply`. -# Layer correctness: flags that change what a build or test produces. - -# Print the full command line of a failed action. -build --verbose_failures - -# Show the log of a failing test in the console. -test --test_output=errors - -# Apply the linux, macos and windows config lines on matching hosts. -common --enable_platform_specific_config - -# Make LLVM coverage write lcov data. -coverage --test_env=GENERATE_LLVM_LCOV=1 - -# Merge the coverage of every test into one lcov report. -coverage --combined_report=lcov - -# Skip tests tagged no-coverage during coverage runs. -coverage --test_tag_filters=-no-coverage - -# Coverage collectors read their inputs from a runfiles tree. -coverage --enable_runfiles - -# Instrument only targets in the main repository. -coverage --instrumentation_filter=^// - -# Instrument test targets so sources a test compiles itself are counted. -coverage --instrument_test_targets - -# On Windows, build runfiles trees only for actions that run. -build:windows --nobuild_runfile_links - -# On Windows, give tests a runfiles directory instead of only a manifest. -build:windows --enable_runfiles - -# On Windows, rustc links with rust-lld; clang-cl cannot drive a Rust link. -build:windows --@rules_dx//config:toolchain_linker_preference=rust - -# On Windows, build host tools on the MSVC-ABI host so rustc and clang-cl agree on the ABI. -common:windows --host_platform=@rules_dx//tools/platforms:windows_msvc_host - -# On Windows, prefer the MSVC-ABI host for actions and keep the plain host as a fallback. -common:windows --extra_execution_platforms=@rules_dx//tools/platforms:windows_msvc_host,@rules_dx//tools/platforms:host - -# Run Java targets on the downloaded JDK 21, not a host JDK. -build --java_runtime_version=remotejdk_21 - -# Run Java build tools on the downloaded JDK 21. -build --tool_java_runtime_version=remotejdk_21 - -# Compile Java build tools at language level 17. -build --tool_java_language_version=17 - -# Opt out of aspect_tools_telemetry usage reports. -common --repo_env=DO_NOT_TRACK=1 - -# Clippy findings are part of the build output, as in dx build. -build --@rules_dx//config:clippy_output_diagnostics=true - -# Rustc diagnostics are part of the build output, as in dx build. -build --@rules_dx//config:rustc_output_diagnostics=true - -# Under --config=ci, fail when MODULE.bazel.lock is out of date. -common:ci --lockfile_mode=error - -# Under --config=ci, skip probing the host JDK for @local_jdk. -common:ci --repo_env=JAVA_HOME=dx-no-local-jdk - -# Under --config=ci, build runfiles trees only for actions that run. -common:ci --nobuild_runfile_links - -# Compiler warnings fail the build under the strict profile. -common --@rules_dx//config:warnings_as_errors=true -common --@rules_dx//config:config_profile=strict - -# The workspace policy dx generates from dx.toml. -common --@rules_dx//config:workspace=//.dx:policy - -# The clippy tier. -common --@rules_dx//config:clippy_flag=-Wclippy::all -common --@rules_dx//config:clippy_flag=-Wclippy::pedantic -common --@rules_dx//config:clippy_flag=-Wclippy::dbg_macro -common --@rules_dx//config:clippy_flag=-Wclippy::todo -common --@rules_dx//config:clippy_flag=-Wclippy::unimplemented -common --@rules_dx//config:clippy_flag=-Wclippy::allow_attributes_without_reason -common --@rules_dx//config:clippy_flag=-Wclippy::allow_attributes -common --@rules_dx//config:clippy_flag=-Wrust_2018_idioms -common --@rules_dx//config:clippy_flag=-Wunused_qualifications -common --@rules_dx//config:clippy_flag=-Dwarnings diff --git a/families/zig/.dx/bazelrc/performance.bazelrc b/families/zig/.dx/bazelrc/performance.bazelrc deleted file mode 100644 index eda0a0d8e8..0000000000 --- a/families/zig/.dx/bazelrc/performance.bazelrc +++ /dev/null @@ -1,57 +0,0 @@ -# Vendored Bazel execution preset -- GENERATED, do not edit. -# Regenerate: `tools/dx init --apply`. -# Layer performance: build speed and the dx compilation configs. - -# Build host tools without optimization so builds finish sooner. -build --host_compilation_mode=fastbuild - -# The dx_build_debug config builds with debug symbols. -build:dx_build_debug --compilation_mode=dbg - -# The dx_build_dev config builds unoptimized for quick edit and test loops. -build:dx_build_dev --compilation_mode=fastbuild - -# The dx_build_release config builds optimized target code. -build:dx_build_release --compilation_mode=opt - -# The dx_build_release config also optimizes host tools. -build:dx_build_release --host_compilation_mode=opt - -# The dx_dev_remote config builds unoptimized on remote executors. -build:dx_dev_remote --compilation_mode=fastbuild - -# The dx_toolchain config builds toolchains unoptimized. -build:dx_toolchain --compilation_mode=fastbuild - -# With a remote cache set, also store fetched repositories there; without one this does nothing. Only use a remote cache you trust. -startup --experimental_remote_repo_contents_cache - -# Under --config=ci, run 64 actions at once, since remote cache hits hold job slots. -common:ci --jobs=64 - -# Under --config=ci, compress remote cache transfers. -common:ci --remote_cache_compression - -# Under --config=ci, send blobs under 100 bytes uncompressed. -common:ci --experimental_remote_cache_compression_threshold=100 - -# Under --config=ci, allow a remote cache call 10 minutes. -common:ci --remote_timeout=10m - -# Under --config=ci, build locally when the remote cache fails. -common:ci --remote_local_fallback - -# Under --config=ci, retry a failed remote cache call 5 times. -common:ci --remote_retries=5 - -# Under --config=ci, rebuild 5 times when the remote cache evicts an input. -common:ci --experimental_remote_cache_eviction_retries=5 - -# Under --config=ci, look up 32 repositories at once, since each remote contents cache lookup waits on the network. -common:ci --loading_phase_threads=32 - -# Under --config=ci, open up to 200 remote connections, since cache checks queue behind the default 100. -common:ci --remote_max_connections=200 - -# Under --config=ci-pr, read the remote cache without writing to it. -common:ci-pr --noremote_upload_local_results diff --git a/families/zig/.dx/bazelrc/resources.bazelrc b/families/zig/.dx/bazelrc/resources.bazelrc deleted file mode 100644 index aa74f07fb7..0000000000 --- a/families/zig/.dx/bazelrc/resources.bazelrc +++ /dev/null @@ -1,42 +0,0 @@ -# Vendored Bazel execution preset -- GENERATED, do not edit. -# Regenerate: `tools/dx init --apply`. -# Layer resources: memory, CPU and cache limits for the host. - -# Let the Bazel server return unused heap to the system sooner. -startup --host_jvm_args=-XX:MaxHeapFreeRatio=30 - -# Keep little spare heap after a garbage collection. -startup --host_jvm_args=-XX:MinHeapFreeRatio=10 - -# Cap the Bazel server heap at a quarter of host memory. -startup --host_jvm_args=-XX:MaxRAMPercentage=25 - -# Schedule local actions within half of host memory. -common --local_resources=memory=HOST_RAM*.5 - -# Leave a quarter of the CPUs for the rest of the machine. -common --local_resources=cpu=HOST_CPUS*.75 - -# Stop a Bazel server after 15 idle minutes. -startup --max_idle_secs=900 - -# Stop an idle Bazel server when the host runs low on memory. -startup --shutdown_on_low_sys_mem - -# Drop disk cache entries unused for 14 days. -common --experimental_disk_cache_gc_max_age=14d - -# Keep the disk cache under 20 GB. -common --experimental_disk_cache_gc_max_size=20G - -# Drop repository contents cache entries unused for 60 days. -common --repo_contents_cache_gc_max_age=60d - -# Shrink persistent worker pools when memory runs low. -build --experimental_shrink_worker_pool - -# Cap the memory of all persistent workers together at 4 GB. -build --experimental_total_worker_memory_limit_mb=4096 - -# Under --config=ci, schedule local actions on every CPU. -common:ci --local_resources=cpu=HOST_CPUS diff --git a/families/zig/.dx/config/buildifier/base.json b/families/zig/.dx/config/buildifier/base.json deleted file mode 100644 index 833abf52c2..0000000000 --- a/families/zig/.dx/config/buildifier/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "warnings": "all" -} diff --git a/families/zig/.dx/config/taplo/base.toml b/families/zig/.dx/config/taplo/base.toml deleted file mode 100644 index 1e9dea1b10..0000000000 --- a/families/zig/.dx/config/taplo/base.toml +++ /dev/null @@ -1,4 +0,0 @@ -[formatting] -column_width = 80 -indent_string = " " -reorder_keys = false diff --git a/families/zig/.dx/config/typos/base.toml b/families/zig/.dx/config/typos/base.toml deleted file mode 100644 index 58f31584ba..0000000000 --- a/families/zig/.dx/config/typos/base.toml +++ /dev/null @@ -1,5 +0,0 @@ -[default] -locale = "en" - -[files] -extend-exclude = ["*.lock", "*.min.js", "*.svg"] diff --git a/families/zig/.dx/pins b/families/zig/.dx/pins deleted file mode 100644 index 77d6f4ca23..0000000000 --- a/families/zig/.dx/pins +++ /dev/null @@ -1 +0,0 @@ -0.0.0 diff --git a/families/zig/BUILD.bazel b/families/zig/BUILD.bazel deleted file mode 100644 index e65ce53d9d..0000000000 --- a/families/zig/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@rules_dx//quality:fixtures.bzl", "real_source_target") -load("@rules_shell//shell:sh_test.bzl", "sh_test") - -# gazelle:exclude zig - -package(default_visibility = ["//visibility:public"]) - -real_source_target( - name = "corpus_starlark", - starlark_srcs = ["BUILD.bazel"], - tags = ["corpus"], -) - -real_source_target( - name = "corpus_markdown", - aspect_hints = ["@rules_dx//quality:corpus_vale_config"], - markdown_srcs = ["README.md"], - tags = ["corpus"], -) - -sh_test( - name = "starlark_docs_test", - srcs = ["starlark_docs_test.sh"], - args = ["$(rootpath @rules_dx//tools/ci:starlark_docs_family_test)"], - data = [ - "//zig/tests/fixtures/calc:corpus_starlark", - "//zig/tests/fixtures/hello:corpus_starlark", - "//zig/tests/fixtures/zig-app:corpus_starlark", - "//zig/tests/fixtures/zig-app/catalog:corpus_starlark", - "//zig/tests/fixtures/zig-app/cli:corpus_starlark", - "//zig/tests/fixtures/zig-app/diagnostics:corpus_starlark", - "//zig/tests/fixtures/zig-app/digest:corpus_starlark", - "@rules_dx//tools/ci:starlark_docs_family_test", - ], - env = {"STARLARK_DOCS_PACKAGES": "zig/tests/fixtures/calc,zig/tests/fixtures/hello,zig/tests/fixtures/zig-app,zig/tests/fixtures/zig-app/catalog,zig/tests/fixtures/zig-app/cli,zig/tests/fixtures/zig-app/diagnostics,zig/tests/fixtures/zig-app/digest"}, -) - -filegroup( - name = "module_srcs", - srcs = glob( - ["**"], - exclude = ["**/tests/**"], - ), - visibility = ["//visibility:public"], -) - -# dx:begin exports -exports_files( - [".buildifier.json"], - visibility = ["//.dx:__pkg__"], -) -# dx:end exports - -exports_files(["MODULE.bazel"]) diff --git a/families/zig/MODULE.bazel b/families/zig/MODULE.bazel deleted file mode 100644 index f57d677a5a..0000000000 --- a/families/zig/MODULE.bazel +++ /dev/null @@ -1,50 +0,0 @@ -module( - name = "rules_dx_zig", - version = "0.0.0", - bazel_compatibility = [">=9.2.0"], -) - -bazel_dep(name = "rules_dx", version = "0.0.0") - -include("//third_party/rules_dx:rules_dx.MODULE.bazel") - -local_path_override( - module_name = "rules_dx", - path = "../..", -) - -# floor: equals tested -bazel_dep(name = "bazel_skylib", version = "1.9.2") -bazel_dep(name = "platforms", version = "1.1.0") -bazel_dep(name = "rules_shell", version = "0.8.0") -bazel_dep(name = "rules_cc", version = "0.2.27") -bazel_dep(name = "rules_rust", version = "0.75.0", dev_dependency = True) - -# floor: equals tested -bazel_dep(name = "rules_zig", version = "0.17.0") - -zig = use_extension("@rules_zig//zig:extensions.bzl", "zig") -zig.toolchain(zig_version = "0.17.0") - -_http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -_http_archive( - name = "zig_app_xxhash", - build_file = "//zig/tests/fixtures/zig-app:xxhash.BUILD.bazel", - sha256 = "aae608dfe8213dfd05d909a57718ef82f30722c392344583d3f39050c7f29a80", - strip_prefix = "xxHash-0.8.3", - urls = ["https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.3.tar.gz"], -) - -rust = use_extension("@rules_rust//rust:extensions.bzl", "rust", dev_dependency = True) -rust.toolchain( - edition = "2024", - rustfmt_version = "1.99.1", - versions = ["1.99.1"], -) -use_repo(rust, "rust_toolchains") - -register_toolchains( - "@rust_toolchains//:all", - dev_dependency = True, -) diff --git a/families/zig/MODULE.bazel.lock b/families/zig/MODULE.bazel.lock deleted file mode 100644 index 10a94bd03f..0000000000 --- a/families/zig/MODULE.bazel.lock +++ /dev/null @@ -1,21937 +0,0 @@ -{ - "lockFileVersion": 28, - "registryFileHashes": { - "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", - "https://bcr.bazel.build/modules/abseil-cpp/20230125.1/MODULE.bazel": "89047429cb0207707b2dface14ba7f8df85273d484c2572755be4bab7ce9c3a0", - "https://bcr.bazel.build/modules/abseil-cpp/20230802.0/MODULE.bazel": "d253ae36a8bd9ee3c5955384096ccb6baf16a1b1e93e858370da0a3b94f77c16", - "https://bcr.bazel.build/modules/abseil-cpp/20230802.1/MODULE.bazel": "fa92e2eb41a04df73cdabeec37107316f7e5272650f81d6cc096418fe647b915", - "https://bcr.bazel.build/modules/abseil-cpp/20240116.2/MODULE.bazel": "73939767a4686cd9a520d16af5ab440071ed75cec1a876bf2fcfaf1f71987a16", - "https://bcr.bazel.build/modules/abseil-cpp/20250127.1/MODULE.bazel": "c4a89e7ceb9bf1e25cf84a9f830ff6b817b72874088bf5141b314726e46a57c1", - "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/MODULE.bazel": "d209fdb6f36ffaf61c509fcc81b19e81b411a999a934a032e10cd009a0226215", - "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/MODULE.bazel": "51f2312901470cdab0dbdf3b88c40cd21c62a7ed58a3de45b365ddc5b11bcab2", - "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/source.json": "cea3901d7e299da7320700abbaafe57a65d039f10d0d7ea601c4a66938ea4b0c", - "https://bcr.bazel.build/modules/abseil-py/2.1.0/MODULE.bazel": "5ebe5bf853769c65707e5c28f216798f7a4b1042015e6a36e6d03094d94bec8a", - "https://bcr.bazel.build/modules/abseil-py/2.1.0/source.json": "0e8fc4f088ce07099c1cd6594c20c7ddbb48b4b3c0849b7d94ba94be88ff042b", - "https://bcr.bazel.build/modules/apple_support/1.11.1/MODULE.bazel": "1843d7cd8a58369a444fc6000e7304425fba600ff641592161d9f15b179fb896", - "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", - "https://bcr.bazel.build/modules/apple_support/1.21.1/MODULE.bazel": "5809fa3efab15d1f3c3c635af6974044bac8a4919c62238cce06acee8a8c11f1", - "https://bcr.bazel.build/modules/apple_support/1.24.1/MODULE.bazel": "f46e8ddad60aef170ee92b2f3d00ef66c147ceafea68b6877cb45bd91737f5f8", - "https://bcr.bazel.build/modules/apple_support/1.24.2/MODULE.bazel": "0e62471818affb9f0b26f128831d5c40b074d32e6dda5a0d3852847215a41ca4", - "https://bcr.bazel.build/modules/apple_support/2.11.0/MODULE.bazel": "0f1e56d2d03842cef48348321fa90768e239138956d605a8d2615cdcd2fc0732", - "https://bcr.bazel.build/modules/apple_support/2.11.0/source.json": "2f0c765c28dbb7f6485ad3fb7c0a365ea5a041948b5fe2fc600ab655f514c990", - "https://bcr.bazel.build/modules/apple_support/2.3.0/MODULE.bazel": "d48f824ae8eeea5f837eb3038cef3615075d996d3e82eb9187192c2820605a81", - "https://bcr.bazel.build/modules/apple_support/2.5.2/MODULE.bazel": "bb1b7081e390a8d3885f642cb0073dfcf8e7a36525e079fa8f5835af7079c0fe", - "https://bcr.bazel.build/modules/apple_support/2.5.4/MODULE.bazel": "964e9268b37edb64e9a0fa525e5b5e535ba56bf63cadc68375f92e69fcb734f6", - "https://bcr.bazel.build/modules/apple_support/2.8.0/MODULE.bazel": "c45f5176057092afba0be6c48a9ea02101666802f8be536947e099e94757f8ed", - "https://bcr.bazel.build/modules/apple_support/2.8.3/MODULE.bazel": "4afffdeb3a37825fdae637efb14ead4de27fe6310dbae96d071059e4e7b2e431", - "https://bcr.bazel.build/modules/apple_support/2.9.1/MODULE.bazel": "fb209b83ed172af587419acb3340389cfe3260669e5f1c05e1ac3974aca614e0", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.14.0/MODULE.bazel": "2b31ffcc9bdc8295b2167e07a757dbbc9ac8906e7028e5170a3708cecaac119f", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.19.2/MODULE.bazel": "30dfabbfae0139b1f0036e01c201dd4c0167da3017f0b7ef3820d78e07622989", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.19.3/MODULE.bazel": "253d739ba126f62a5767d832765b12b59e9f8d2bc88cc1572f4a73e46eb298ca", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.21.1/MODULE.bazel": "07e3ce3eaaa50dbd0be7fa0094e36890478937adc780ec53e77fd9fe543af8b1", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.22.5/MODULE.bazel": "004ba890363d05372a97248c37205ae64b6fa31047629cd2c0895a9d0c7779e8", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.22.5/source.json": "ac2c3213df8f985785f1d0aeb7f0f73d5324e6e67d593d9b9470fb74a25d4a9b", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.7.7/MODULE.bazel": "491f8681205e31bb57892d67442ce448cda4f472a8e6b3dc062865e29a64f89c", - "https://bcr.bazel.build/modules/aspect_bazel_lib/2.8.1/MODULE.bazel": "812d2dd42f65dca362152101fbec418029cc8fd34cbad1a2fde905383d705838", - "https://bcr.bazel.build/modules/aspect_rules_jest/0.26.0/MODULE.bazel": "b32a16d50f02d5c65f727a2c98a280739f7bccad3a5c691342503dbba8006312", - "https://bcr.bazel.build/modules/aspect_rules_jest/0.26.0/source.json": "e978f5f3f368a8fe4a56d3f01b2e77a53c7042ceb9cb6abad86193a9a19ba31a", - "https://bcr.bazel.build/modules/aspect_rules_js/2.0.0/MODULE.bazel": "b45b507574aa60a92796e3e13c195cd5744b3b8aff516a9c0cb5ae6a048161c5", - "https://bcr.bazel.build/modules/aspect_rules_js/3.0.1/MODULE.bazel": "130d15e83caf6fd46ba65a112686d93f20e6ee31e8171eb62f25b4eb11f663bf", - "https://bcr.bazel.build/modules/aspect_rules_js/3.5.2/MODULE.bazel": "9e8e4cc25b21a51cf9336aa7bd1a0d8c1c6b508b9f0ae663d617ac4223ebcdb9", - "https://bcr.bazel.build/modules/aspect_rules_js/3.5.2/source.json": "3d11af690a74823879b297ca0ae57c6e73a94ccd944a87fb1a82b1e53e6d8442", - "https://bcr.bazel.build/modules/aspect_rules_ts/3.10.1/MODULE.bazel": "035205a7834b0ed9724ed3c4790e12d1c779ef2520d72496ab234e6307715e6c", - "https://bcr.bazel.build/modules/aspect_rules_ts/3.10.1/source.json": "d42b6560206adb5524caad2abc40ae0b5b34478dd38184a9f6ea4a5fed848cd6", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.3.3/MODULE.bazel": "37c764292861c2f70314efa9846bb6dbb44fc0308903b3285da6528305450183", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.4.2/MODULE.bazel": "f31aa84151d31e98cffd43eb7217ccff5ec52bdd5f2d10db8f053aeb23342eca", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.5.1/MODULE.bazel": "9d94e5c22c0019995c0a3216a6abb1717dc3f35acccf4e6267a55d6df38367aa", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.5.2/MODULE.bazel": "c715a5fb6b13a0086c061618f00d033a4ab6d76cbd1083e38d7ca953b5e547f4", - "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.5.2/source.json": "4dd300d44767ad4860098b006dda614e67ab0409ae6ec6e133faad303fe9ede8", - "https://bcr.bazel.build/modules/avro-cpp/1.12.0.bcr.1/MODULE.bazel": "5a3ba733805370100b663a5e518aacbde8eed6a0d3fb927874fa47f8ed6ae0e8", - "https://bcr.bazel.build/modules/avro-cpp/1.12.0.bcr.1/source.json": "949a05d4ae35e198b2786e7b13a9cfbe462902ea1abbc20fb0af323e266b8907", - "https://bcr.bazel.build/modules/bazel_features/1.0.0/MODULE.bazel": "d7f022dc887efb96e1ee51cec7b2e48d41e36ff59a6e4f216c40e4029e1585bf", - "https://bcr.bazel.build/modules/bazel_features/1.1.0/MODULE.bazel": "cfd42ff3b815a5f39554d97182657f8c4b9719568eb7fded2b9135f084bf760b", - "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", - "https://bcr.bazel.build/modules/bazel_features/1.10.0/MODULE.bazel": "f75e8807570484a99be90abcd52b5e1f390362c258bcb73106f4544957a48101", - "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", - "https://bcr.bazel.build/modules/bazel_features/1.13.0/MODULE.bazel": "c14c33c7c3c730612bdbe14ebbb5e61936b6f11322ea95a6e91cd1ba962f94df", - "https://bcr.bazel.build/modules/bazel_features/1.17.0/MODULE.bazel": "039de32d21b816b47bd42c778e0454217e9c9caac4a3cf8e15c7231ee3ddee4d", - "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", - "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", - "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", - "https://bcr.bazel.build/modules/bazel_features/1.24.0/MODULE.bazel": "4796b4c25b47053e9bbffa792b3792d07e228ff66cd0405faef56a978708acd4", - "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", - "https://bcr.bazel.build/modules/bazel_features/1.28.0/MODULE.bazel": "4b4200e6cbf8fa335b2c3f43e1d6ef3e240319c33d43d60cc0fbd4b87ece299d", - "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", - "https://bcr.bazel.build/modules/bazel_features/1.32.0/MODULE.bazel": "095d67022a58cb20f7e20e1aefecfa65257a222c18a938e2914fd257b5f1ccdc", - "https://bcr.bazel.build/modules/bazel_features/1.33.0/MODULE.bazel": "8b8dc9d2a4c88609409c3191165bccec0e4cb044cd7a72ccbe826583303459f6", - "https://bcr.bazel.build/modules/bazel_features/1.34.0/MODULE.bazel": "e8475ad7c8965542e0c7aac8af68eb48c4af904be3d614b6aa6274c092c2ea1e", - "https://bcr.bazel.build/modules/bazel_features/1.36.0/MODULE.bazel": "596cb62090b039caf1cad1d52a8bc35cf188ca9a4e279a828005e7ee49a1bec3", - "https://bcr.bazel.build/modules/bazel_features/1.39.0/MODULE.bazel": "28739425c1fc283c91931619749c832b555e60bcd1010b40d8441ce0a5cf726d", - "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", - "https://bcr.bazel.build/modules/bazel_features/1.41.0/MODULE.bazel": "6e0f87fafed801273c371d41e22a15a6f8abf83fdd7f87d5e44ad317b94433d0", - "https://bcr.bazel.build/modules/bazel_features/1.42.0/MODULE.bazel": "e8ca15cb2639c5f12183db6dcb678735555d0cdd739b32a0418b6532b5e565f8", - "https://bcr.bazel.build/modules/bazel_features/1.42.1/MODULE.bazel": "275a59b5406ff18c01739860aa70ad7ccb3cfb474579411decca11c93b951080", - "https://bcr.bazel.build/modules/bazel_features/1.43.0/MODULE.bazel": "defa2226f06ba20550d6548c3a2ea2a7929634437a52973869c20c225450eb91", - "https://bcr.bazel.build/modules/bazel_features/1.48.1/MODULE.bazel": "8f43b2b90bd70402825ab07a85bf26079935271e2662a1df37fe0de969aa3ecf", - "https://bcr.bazel.build/modules/bazel_features/1.50.0/MODULE.bazel": "2083ef9c7a469f520890483ccf8e0189d6e71e2117e7752e15e6554433d5ae3e", - "https://bcr.bazel.build/modules/bazel_features/1.51.0/MODULE.bazel": "8e1310d09db6ee2e4f19f9994e360aca941ddc32083edc8d9bdc19c83c94cee4", - "https://bcr.bazel.build/modules/bazel_features/1.54.1/MODULE.bazel": "026b77134bd460e2ca0f44c57f4f3a3a8593f27a497b4ee98336e065047834f5", - "https://bcr.bazel.build/modules/bazel_features/1.54.1/source.json": "23ba6f9625d32f5f718393ae65f05ac70025448aed23543c238b1cffec08f28a", - "https://bcr.bazel.build/modules/bazel_features/1.9.0/MODULE.bazel": "885151d58d90d8d9c811eb75e3288c11f850e1d6b481a8c9f766adee4712358b", - "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", - "https://bcr.bazel.build/modules/bazel_lib/3.0.0-rc.0/MODULE.bazel": "d6e00979a98ac14ada5e31c8794708b41434d461e7e7ca39b59b765e6d233b18", - "https://bcr.bazel.build/modules/bazel_lib/3.0.0/MODULE.bazel": "22b70b80ac89ad3f3772526cd9feee2fa412c2b01933fea7ed13238a448d370d", - "https://bcr.bazel.build/modules/bazel_lib/3.1.0/MODULE.bazel": "6809765c14e3c766a9b9286c7b0ec56ed87a73326e48fe01749f0c0fdcfe3287", - "https://bcr.bazel.build/modules/bazel_lib/3.2.2/MODULE.bazel": "e2c890c8a515d6bca9c66d47718aa9e44b458fde64ec7204b8030bf2d349058c", - "https://bcr.bazel.build/modules/bazel_lib/3.3.1/MODULE.bazel": "732a0d516cf6400d9b3136e4356258aef1bf91de8d5240f87f0112f098920c1d", - "https://bcr.bazel.build/modules/bazel_lib/3.7.0/MODULE.bazel": "d7c10ed67f0f7f1fda179db8f86c22642581bd614882e1a50545fbe069525173", - "https://bcr.bazel.build/modules/bazel_lib/3.7.2/MODULE.bazel": "cbc920fff00a55b2fd663d40850560a6fb17fd5ef3a9f3d6cbf0d32908dd8a40", - "https://bcr.bazel.build/modules/bazel_lib/3.7.2/source.json": "7a9c2b06a113c4962d329bb68befdb90d0447788a19aabaa32b476a0458e7d28", - "https://bcr.bazel.build/modules/bazel_linux_packages/0.4.1/MODULE.bazel": "9bcd612b78aa98db07f01ca7edc3129148aced24d3726884bba1f321031e724d", - "https://bcr.bazel.build/modules/bazel_linux_packages/0.4.1/source.json": "f3bbbf0f046fbc692b5e00f317088c6163b1874213027f1047bf505a1b9c647b", - "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", - "https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e", - "https://bcr.bazel.build/modules/bazel_skylib/1.2.0/MODULE.bazel": "44fe84260e454ed94ad326352a698422dbe372b21a1ac9f3eab76eb531223686", - "https://bcr.bazel.build/modules/bazel_skylib/1.2.1/MODULE.bazel": "f35baf9da0efe45fa3da1696ae906eea3d615ad41e2e3def4aeb4e8bc0ef9a7a", - "https://bcr.bazel.build/modules/bazel_skylib/1.3.0/MODULE.bazel": "20228b92868bf5cfc41bda7afc8a8ba2a543201851de39d990ec957b513579c5", - "https://bcr.bazel.build/modules/bazel_skylib/1.4.0/MODULE.bazel": "2ab127ef8d56a739a99bb2ce00ec4c7d1ecc7977d4370c0ca6efd0d8f03d6d99", - "https://bcr.bazel.build/modules/bazel_skylib/1.4.1/MODULE.bazel": "a0dcb779424be33100dcae821e9e27e4f2901d9dfd5333efe5ac6a8d7ab75e1d", - "https://bcr.bazel.build/modules/bazel_skylib/1.4.2/MODULE.bazel": "3bd40978e7a1fac911d5989e6b09d8f64921865a45822d8b09e815eaa726a651", - "https://bcr.bazel.build/modules/bazel_skylib/1.5.0/MODULE.bazel": "32880f5e2945ce6a03d1fbd588e9198c0a959bb42297b2cfaf1685b7bc32e138", - "https://bcr.bazel.build/modules/bazel_skylib/1.6.1/MODULE.bazel": "8fdee2dbaace6c252131c00e1de4b165dc65af02ea278476187765e1a617b917", - "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/MODULE.bazel": "3120d80c5861aa616222ec015332e5f8d3171e062e3e804a2a0253e1be26e59b", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.0/MODULE.bazel": "2fb3fb53675f6adfc1ca5bfbd5cfb655ae350fba4706d924a8ec7e3ba945671c", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/MODULE.bazel": "88ade7293becda963e0e3ea33e7d54d3425127e0a326e0d17da085a5f1f03ff6", - "https://bcr.bazel.build/modules/bazel_skylib/1.8.2/MODULE.bazel": "69ad6927098316848b34a9142bcc975e018ba27f08c4ff403f50c1b6e646ca67", - "https://bcr.bazel.build/modules/bazel_skylib/1.9.0/MODULE.bazel": "72997b29dfd95c3fa0d0c48322d05590418edef451f8db8db5509c57875fb4b7", - "https://bcr.bazel.build/modules/bazel_skylib/1.9.2/MODULE.bazel": "8c51259b0f4481475586dbfede7591e57b75702e637f840f6138eec80c34b270", - "https://bcr.bazel.build/modules/bazel_skylib/1.9.2/source.json": "41cbde7546542dee2f26e3f10bf1c4ac57909943194b7ac48cc5238a01893aa8", - "https://bcr.bazel.build/modules/bazel_worker_api/0.0.10/MODULE.bazel": "a426df551b40c3997c351d05f00f0d1f86b618ddb646012f1e9c72efce8ed939", - "https://bcr.bazel.build/modules/bazel_worker_api/0.0.11/MODULE.bazel": "fe09a8d3fb25c95414249f72cb0936201bf7e3c3f0e302175b2fc81e68bc6069", - "https://bcr.bazel.build/modules/bazel_worker_api/0.0.11/source.json": "7867c70965fccd202c57796de69fcbdf0555da34e3b09a14b06d74afb0f2f26d", - "https://bcr.bazel.build/modules/bazel_worker_java/0.0.11/MODULE.bazel": "1ee9e4c28ce455dbacdff8e007e133ea209e6f673a9e97cf20e99b161bc17548", - "https://bcr.bazel.build/modules/bazel_worker_java/0.0.11/source.json": "48b9b9c55f69cc360a54a712f47b889dd3d367ce2d45c3ccec242e9af86fe9cd", - "https://bcr.bazel.build/modules/bazelrc-preset.bzl/1.6.0/MODULE.bazel": "11bc946a2e1a9c1bea066e44a704091b482e6049164b75b2381e8419bf055cf1", - "https://bcr.bazel.build/modules/bazelrc-preset.bzl/1.6.0/source.json": "ad6cee6b42b5def78f6b3082c0bd7041a330003cbace330aaf1d3f94a122c48b", - "https://bcr.bazel.build/modules/boost.algorithm/1.87.0/MODULE.bazel": "d1c8f1466cc1a04a16eebeefe0f54a9508cc9f1a3c21d65d806acbc36593e204", - "https://bcr.bazel.build/modules/boost.algorithm/1.87.0/source.json": "9280ee3bfa6b9427aad20a450c33d74fabb93a69d81e201955098035a514f287", - "https://bcr.bazel.build/modules/boost.align/1.87.0/MODULE.bazel": "b9b08a94ac9db10fa17a58fc278a8c79fdb32c915de7a9133f6f01f6fe8887f7", - "https://bcr.bazel.build/modules/boost.align/1.87.0/source.json": "c41e1675e9686a3d82b130ccf496d5780fc4edf42ff2e91b2323fd05d3773e81", - "https://bcr.bazel.build/modules/boost.any/1.87.0/MODULE.bazel": "bd5e7c7abe254911ea9ee86877b2f9d72e5b01ba5e1d78224564d6919105e03a", - "https://bcr.bazel.build/modules/boost.any/1.87.0/source.json": "928d3773ee07be66fd2f1025cf63776bca9f80d7c57b705e994ed953cd17b6bb", - "https://bcr.bazel.build/modules/boost.array/1.87.0/MODULE.bazel": "beb11f5d659b17df58c07e039392edc9233e1be9565e5d4b1393fff9bf4457c4", - "https://bcr.bazel.build/modules/boost.array/1.87.0/source.json": "0583a9fd9d24a14e33b74b4342f94b4a4a3b539af11b0c12403a1a4da1f1548a", - "https://bcr.bazel.build/modules/boost.assert/1.87.0/MODULE.bazel": "8a950da6e19dd6d6427b95b1cfe1d2fc86eb598f6fb753345d925eb92d74a821", - "https://bcr.bazel.build/modules/boost.assert/1.87.0/source.json": "085a7c247d90bb4f8f5c3cc7eec1994f3d46d2a26af1947c85ff6f8ddd86ce59", - "https://bcr.bazel.build/modules/boost.atomic/1.87.0/MODULE.bazel": "7afe1354a8901637ba820edd6ec83a1602ba68f8af31d285d4704a1ec23a2fb6", - "https://bcr.bazel.build/modules/boost.atomic/1.87.0/source.json": "26badcfadd6846993f1ce2308da8af4f9477bc53587167229ec3cf0be4d2fdbf", - "https://bcr.bazel.build/modules/boost.bind/1.87.0/MODULE.bazel": "6d224cd013e45d15710476840fff34aa2da53389c3bfd252054e2efd893b0bf9", - "https://bcr.bazel.build/modules/boost.bind/1.87.0/source.json": "e93e696ab6140c1f07317357b04b4d0fcf0aefa61991b8fa8b65416d81677b44", - "https://bcr.bazel.build/modules/boost.chrono/1.87.0/MODULE.bazel": "ac035fc481cfaf6dd0b42c791938aa53d5ad7debba1a877c0169d1cc9deae874", - "https://bcr.bazel.build/modules/boost.chrono/1.87.0/source.json": "a050f84c8488008a3ac15550592259cbf90abf86ca31052f30f120f4e60de772", - "https://bcr.bazel.build/modules/boost.concept_check/1.87.0/MODULE.bazel": "6a935c9f5d739ad6d0401d1e5f71f4bfb538c66ccb1d3b8ac7a5a2b74bd207ff", - "https://bcr.bazel.build/modules/boost.concept_check/1.87.0/source.json": "45ffc4ae171c9b14bbe595e3d3e7d0a5065ceb18f949d1a2365d328ca89e1a1c", - "https://bcr.bazel.build/modules/boost.config/1.87.0/MODULE.bazel": "01da6517cb341d5abea9be54337bf85ba50132b3690a621f09be5890ecd12796", - "https://bcr.bazel.build/modules/boost.config/1.87.0/source.json": "9a00cd7c9afd6f58b349a806791c7aab040b1cd1a35464e59b79be724261a5ae", - "https://bcr.bazel.build/modules/boost.container/1.87.0/MODULE.bazel": "affb6e485eb13d3df0e9ee464f6a890175762526166da601a83f12d21b6c6950", - "https://bcr.bazel.build/modules/boost.container/1.87.0/source.json": "ddf180a658ad7743e081970719a184538945b9554be8278b55a67ba281ceede0", - "https://bcr.bazel.build/modules/boost.container_hash/1.87.0/MODULE.bazel": "a718ac13832c18ffc828f33e9cf8e566095d5ed8c80584bd1ad429c4ce91efa5", - "https://bcr.bazel.build/modules/boost.container_hash/1.87.0/source.json": "a7a90c4dfea2da1648ac530a838faebc093cbbaeab5e4f43a8532e5b76ff32d3", - "https://bcr.bazel.build/modules/boost.conversion/1.87.0/MODULE.bazel": "47bafdb6a14ec58feefe69a1367b537458563e0627e1986f377cc0b4e8ebd41e", - "https://bcr.bazel.build/modules/boost.conversion/1.87.0/source.json": "7aa865b11b0a699d15926eb87a21d17220d64265da3d280261a480b0d88b3dbb", - "https://bcr.bazel.build/modules/boost.core/1.87.0/MODULE.bazel": "33517eb46bb16f4b4f4a1bde61fe8b2475f45b5574bcd9f04c85f4bf3afe30d2", - "https://bcr.bazel.build/modules/boost.core/1.87.0/source.json": "9e2920b45c833a6a2cd42b16e17a5b97201bb73698a3902936cc90c1aa3de667", - "https://bcr.bazel.build/modules/boost.crc/1.87.0/MODULE.bazel": "99c5da72a920f6f8b86d2c2834ee132d39453e3d08892bf4ea231c6beeaac6c7", - "https://bcr.bazel.build/modules/boost.crc/1.87.0/source.json": "ca8e74014886ba5fa93808d59dd5541e1601994f000d05aca0c5f7920b63f8ed", - "https://bcr.bazel.build/modules/boost.describe/1.87.0/MODULE.bazel": "638752de4ad46348a7e3ac72910b699fde5a3c71d42fc69047d2aa8825411646", - "https://bcr.bazel.build/modules/boost.describe/1.87.0/source.json": "c260a5c38806ea88ce50b2d070484ae634941d2be7a1ddb0f959923ca8ef10d4", - "https://bcr.bazel.build/modules/boost.detail/1.87.0/MODULE.bazel": "64ed391c2b60b226263de4f486fad690414afc6a68d1a5e58eed70e4a63f2d80", - "https://bcr.bazel.build/modules/boost.detail/1.87.0/source.json": "dde910ab5e8ca18352cceaf4a922904b3de9ace042bf16f1a2015ca53776a568", - "https://bcr.bazel.build/modules/boost.dynamic_bitset/1.87.0/MODULE.bazel": "542b8afeb7534c248e9f28fdef589ba8a443d18c253a7ea06e283848bb06a237", - "https://bcr.bazel.build/modules/boost.dynamic_bitset/1.87.0/source.json": "5b15c2b7c3164175dd861bb7eba3af9d306858f267806743d0384ce32c51f404", - "https://bcr.bazel.build/modules/boost.exception/1.87.0/MODULE.bazel": "2bc7bfa2166bccb25c8b814ad8d5bf462448349ffd41e9541cfa7b849bd15ca8", - "https://bcr.bazel.build/modules/boost.exception/1.87.0/source.json": "987bb7df5cbf05e4c3349073fe889e33b8914ea9b9b0b5cf72bc742941343d8b", - "https://bcr.bazel.build/modules/boost.filesystem/1.87.0/MODULE.bazel": "a072d9c1d3f7dd251911224752998fa861eaaf0aee1911b1b3035cd0f290d154", - "https://bcr.bazel.build/modules/boost.filesystem/1.87.0/source.json": "3ceae891eb6db1970849731a0b84acbc6ac72fcfd351ca0267724d3f22ee71b6", - "https://bcr.bazel.build/modules/boost.function/1.87.0/MODULE.bazel": "d7ad93c26d0102b48cd6f781fcb68d16861fd6bf8772f784f034afabbabea391", - "https://bcr.bazel.build/modules/boost.function/1.87.0/source.json": "dd6765e2d9d902fc82da874f55061cf233a17affa66acb1641f478480b80d5d2", - "https://bcr.bazel.build/modules/boost.function_types/1.87.0/MODULE.bazel": "fed8aedff1fb01468a24e53a10793411330e36ebe29aeafaadeae00e25c20371", - "https://bcr.bazel.build/modules/boost.function_types/1.87.0/source.json": "c3a7fa0a172a109ae04a575eba033e133a38448005468dfddedab065d071dbbf", - "https://bcr.bazel.build/modules/boost.functional/1.87.0/MODULE.bazel": "5488597db90a4d8615505e9673806db23a98a4c73eadc16999478c7b1a6c1bc7", - "https://bcr.bazel.build/modules/boost.functional/1.87.0/source.json": "d39c98b1a9ae0a74da51ff049054fe6f77060d00c1768ea7eb6c629f3ac9eea5", - "https://bcr.bazel.build/modules/boost.fusion/1.87.0/MODULE.bazel": "2c28c212edcf35584dcf09089c51d6dcb2a01cf5d8d5c2b125dc91acb083a463", - "https://bcr.bazel.build/modules/boost.fusion/1.87.0/source.json": "35cb70a4a379e430e9efde27c9c2aa061791e9a1f693f7c85d2d4f1665ba2381", - "https://bcr.bazel.build/modules/boost.integer/1.87.0/MODULE.bazel": "2b862679c8595b6ecb3806ec5c7a1024c9e00fca94e5ee713d75ab022c6a7444", - "https://bcr.bazel.build/modules/boost.integer/1.87.0/source.json": "adce74ac44da997658d139f419f3c6a909fdc35d05566814c9c15e3ccb99fff6", - "https://bcr.bazel.build/modules/boost.intrusive/1.87.0/MODULE.bazel": "9dd904f7da54b7efa8476da8152e8cd60702e7b61bfae2689672f185458dc478", - "https://bcr.bazel.build/modules/boost.intrusive/1.87.0/source.json": "cc603911503905072f8596510bb6e95ce210a82564258d3fd319f9499f339cf6", - "https://bcr.bazel.build/modules/boost.io/1.87.0/MODULE.bazel": "30b1fbdc4a0463f727e2a78558550adf05c61e1fc209a6dcd35df03eaa4dafac", - "https://bcr.bazel.build/modules/boost.io/1.87.0/source.json": "b42dd52763c9bce54ed4a4c8ef48d560460f854bb53770f37c839180dba897e0", - "https://bcr.bazel.build/modules/boost.iostreams/1.87.0/MODULE.bazel": "c5cd8eb60e79c135185834e8727e1d1750cb6da2e6cb2c4d5f4b9418cd55ebe9", - "https://bcr.bazel.build/modules/boost.iostreams/1.87.0/source.json": "16dde1a58982ca8a2a63e710aacb149a6a85650acd227b83a3e3c3f90410a629", - "https://bcr.bazel.build/modules/boost.iterator/1.87.0/MODULE.bazel": "7e6ce23b059902c1709ba033dd1f4783b3de3f48ec4dc9f5e6ab82ddc699223e", - "https://bcr.bazel.build/modules/boost.iterator/1.87.0/source.json": "69d37225c6ffc3e8af0e7ea427ff51ccb04d84c6e7e361bbb8f1dc859b4412ea", - "https://bcr.bazel.build/modules/boost.lexical_cast/1.87.0/MODULE.bazel": "878478bbe6d3350cad171dd1b4558732dbee7021ab69e40a3c5bf9e59b37922c", - "https://bcr.bazel.build/modules/boost.lexical_cast/1.87.0/source.json": "80e0443943851508f2fa427c1c48b714690691c7022082ec65551dbe4680c82e", - "https://bcr.bazel.build/modules/boost.math/1.87.0/MODULE.bazel": "80f886ab97e394f8c106014a19a8c1de7a78b8fd7d5bfc89ac431896b26816b4", - "https://bcr.bazel.build/modules/boost.math/1.87.0/source.json": "8dd908b8e87cf8b2529b75e4571c4c772495f6e294ea7dc7fc36aeb8153ca1b9", - "https://bcr.bazel.build/modules/boost.move/1.87.0/MODULE.bazel": "5f26dacea41a8d617b6097219df961405c8a08a9315da14cefa8da15587a7fc5", - "https://bcr.bazel.build/modules/boost.move/1.87.0/source.json": "a95f9b258ddf918c3137c2b8d223b0b55cf9a17a52d4e19ccabfe650dcf118e3", - "https://bcr.bazel.build/modules/boost.mp11/1.87.0/MODULE.bazel": "af9644d2b668f3e014ac335a8a84ac74d9cb263454cd07cd5b84ce206f5dd81f", - "https://bcr.bazel.build/modules/boost.mp11/1.87.0/source.json": "fb17f9453d8e62a6425efccc3a827f29ddb4577aaffee68393c86bd21e517187", - "https://bcr.bazel.build/modules/boost.mpl/1.87.0/MODULE.bazel": "72eba3a8cc5711e15a852829d00482abbf7869ed2ee6f598b8f295261f3e5496", - "https://bcr.bazel.build/modules/boost.mpl/1.87.0/source.json": "81a99487d926f8a26dd5d80662e14baa0a6842b81a2a47f3f529064d0a36f36f", - "https://bcr.bazel.build/modules/boost.numeric_conversion/1.87.0/MODULE.bazel": "0164792509fbf8e6374eeb94a8e84ba8aa5e939620266177a112eac118e67f7c", - "https://bcr.bazel.build/modules/boost.numeric_conversion/1.87.0/source.json": "b19fe476ce051ee4b127f78b2ee4fcec917f60e2f0a06a26528c5666b355d623", - "https://bcr.bazel.build/modules/boost.optional/1.87.0/MODULE.bazel": "a12ca5b2394521bd60e432c9a98623d5a33edf9f7f891fb26c5d0840fb6b182e", - "https://bcr.bazel.build/modules/boost.optional/1.87.0/source.json": "38de88d9d67d2c7673a2c3a817a578c2ead946a11ae111f24f71859b401b0656", - "https://bcr.bazel.build/modules/boost.predef/1.87.0/MODULE.bazel": "4bb0cc9a326ea8ffde86044c2dbdf08b75d5e8fe7e4ea8c399b058262680a890", - "https://bcr.bazel.build/modules/boost.predef/1.87.0/source.json": "421162e76f175a64d22296b9cf3272441324fa994766acffd367182a777ad092", - "https://bcr.bazel.build/modules/boost.preprocessor/1.87.0/MODULE.bazel": "fdbcce15c585de47e4a5e9f6e2b9aa87f690a87e205eded400c5590f7e64535a", - "https://bcr.bazel.build/modules/boost.preprocessor/1.87.0/source.json": "ef9b9006890126f5880bb51ccbe8a97a95baf21606e2f30acdb1c30c0dd79758", - "https://bcr.bazel.build/modules/boost.program_options/1.87.0/MODULE.bazel": "186e44a5e01b9dedc91420141fba5b31cb73d04f374a6387f80ab53d725faafc", - "https://bcr.bazel.build/modules/boost.program_options/1.87.0/source.json": "53dacc9541ab7e68796c86cacb4d395b9a758a2a2fb2778f67ca5dcd1ef990e0", - "https://bcr.bazel.build/modules/boost.random/1.87.0/MODULE.bazel": "4e145cf085222598574e08e328867995b38d520f763d02a44f13cc0074762139", - "https://bcr.bazel.build/modules/boost.random/1.87.0/source.json": "d5ae4fbacf288a7b14984f2abddc87d9b98b3d6bb863ddf9e9a58b189bd18a5c", - "https://bcr.bazel.build/modules/boost.range/1.87.0/MODULE.bazel": "b1604553c080ca8620fb8e16267b397d4345986acae9ddd8277f36ad87236b60", - "https://bcr.bazel.build/modules/boost.range/1.87.0/source.json": "3477215270d2295f882b0b127347fddf69aecdb7cd77ba315e55199c36208661", - "https://bcr.bazel.build/modules/boost.ratio/1.87.0/MODULE.bazel": "c5a3695cd1bbb22d6a00a6df2c857be1f52f64f36fa3a89bd6835de94485fa60", - "https://bcr.bazel.build/modules/boost.ratio/1.87.0/source.json": "86662c1c2dd510741c8838c43b53a685183fd7ca793d04a8660f0d3f68317005", - "https://bcr.bazel.build/modules/boost.rational/1.87.0/MODULE.bazel": "421044b95b2db3ca1ae3a93ba12e235db938c9786c3a209a2b50754c3c0a07d7", - "https://bcr.bazel.build/modules/boost.rational/1.87.0/source.json": "876156ee5dacf41912b6f3516160ab70b07ee974321ec141f58f6caf99999630", - "https://bcr.bazel.build/modules/boost.regex/1.87.0/MODULE.bazel": "b91f176af90ce5ad96c8be6f83c4fb253fc8b391055e23a349f35e76e679e302", - "https://bcr.bazel.build/modules/boost.regex/1.87.0/source.json": "a887e4a0ac22ae2eb6203bbfbc2b6a9581edc1d65af0a8c392b30327a7688432", - "https://bcr.bazel.build/modules/boost.scope/1.87.0/MODULE.bazel": "7b2bbfc85dd0f19652bb08c4087ce1c09d766584d77d85d03ecea23f468bfe51", - "https://bcr.bazel.build/modules/boost.scope/1.87.0/source.json": "3ae2809ee428900a2941be74c9351a41b1c357aecd557fe1eff8df726a337492", - "https://bcr.bazel.build/modules/boost.smart_ptr/1.87.0/MODULE.bazel": "a2a2b804d33fd47e37b33bb0b47a66b07aab616c12083654f4d9b92ab1308470", - "https://bcr.bazel.build/modules/boost.smart_ptr/1.87.0/source.json": "ff2c2bc2620fd9f404ea1937f38c1776a6b88ae17516c440eda88366fbd14c91", - "https://bcr.bazel.build/modules/boost.static_assert/1.87.0/MODULE.bazel": "06e7170d6e4ec08d6a4a83d1f0bce3f7fdacd89e4dcaa93d508f971e4e363d4f", - "https://bcr.bazel.build/modules/boost.static_assert/1.87.0/source.json": "d5b3f81fba6382b83885ff2dfaef07a5788323ed82d472d2fd629fcbba04ec7a", - "https://bcr.bazel.build/modules/boost.system/1.87.0/MODULE.bazel": "fe98a0cf5cd04613f81b2b4338ccf22d75f4049875c294a35c0949c3c6e8cbc1", - "https://bcr.bazel.build/modules/boost.system/1.87.0/source.json": "470c81ca91d728f1410def4849789a329da81a9080acdca6e1dace58e30728bb", - "https://bcr.bazel.build/modules/boost.test/1.87.0/MODULE.bazel": "c4178121303e784ff5e783a4eee3bc71c6808796b9d0eee15e371127d6b38faf", - "https://bcr.bazel.build/modules/boost.test/1.87.0/source.json": "0bf69689bfc6bc71f7678907237d5c6056cd26d29d3c502962e106bd0cb01dbd", - "https://bcr.bazel.build/modules/boost.throw_exception/1.87.0/MODULE.bazel": "d02c1799ff6bc1bd0a9e7f149ac35a4851c89156be7d81805df9238d52047f02", - "https://bcr.bazel.build/modules/boost.throw_exception/1.87.0/source.json": "b52fb8b064d825ebb7047a72cf2c101a047dc60c1d0a89829b7ed8e39ff4fe6a", - "https://bcr.bazel.build/modules/boost.timer/1.87.0/MODULE.bazel": "ef942e1d3c04a65215e0bbddfeb60be5bf2f6d7c70a2563db7438713a5fe900e", - "https://bcr.bazel.build/modules/boost.timer/1.87.0/source.json": "1fee39edf29aa2e4777e9777c981faef4042d1c3687af45e1c829fc973444bf7", - "https://bcr.bazel.build/modules/boost.tokenizer/1.87.0/MODULE.bazel": "48ecacd7bf0fcb7cbf27b55a7d6bf82b988f308666bda2d51840450ea6d62401", - "https://bcr.bazel.build/modules/boost.tokenizer/1.87.0/source.json": "c39ec91706ad8eeab142528eac47737b6fc314b952ffdb9578ab95e5f3c690b4", - "https://bcr.bazel.build/modules/boost.tuple/1.87.0/MODULE.bazel": "94a17666a0d0e875a346b4e8db75ec05e3a1c9c7a681ac5eca80c18e68b5d547", - "https://bcr.bazel.build/modules/boost.tuple/1.87.0/source.json": "5f42023d26b3abefc034817a535d3d0ab06712f4740a93aa4e247287fba1cb47", - "https://bcr.bazel.build/modules/boost.type_index/1.87.0/MODULE.bazel": "a871d18870b21f00c89ba8dd469e027cd697363a9f3dd525176d91e837b8bb38", - "https://bcr.bazel.build/modules/boost.type_index/1.87.0/source.json": "fe14f80f9a857b92af204396d0e81bf57751113e37a77586b9610a7894407092", - "https://bcr.bazel.build/modules/boost.type_traits/1.87.0/MODULE.bazel": "8d2d44e992e85a59b6bd13b145ae27736d932a29e5aec743a0cfd014af5aee27", - "https://bcr.bazel.build/modules/boost.type_traits/1.87.0/source.json": "fd7434b8e36d19a1c8e9349e041ceaf19d0b98e90b6d4c7b86249735907cea34", - "https://bcr.bazel.build/modules/boost.typeof/1.87.0/MODULE.bazel": "c3cd122b8745c835229c58df8c46e81b944996b4bd3822f947873cb617374dd8", - "https://bcr.bazel.build/modules/boost.typeof/1.87.0/source.json": "ba36c7ce360efd31bf7ab5c1503b785de5c8db673056067ff8c7e3e94efccb68", - "https://bcr.bazel.build/modules/boost.unordered/1.87.0/MODULE.bazel": "bfee6daa324bb37c618fc073c50a0754985b9538e13de0e873381d41d634168c", - "https://bcr.bazel.build/modules/boost.unordered/1.87.0/source.json": "3b237fcd1dda18408dbdcb06984e50a13f0688fd0dca480a552f1ff37a6f50b5", - "https://bcr.bazel.build/modules/boost.utility/1.87.0/MODULE.bazel": "8ab710d4feac76acba004a1cac6d64823c812bfeefea18fb7b1a907c86a9ecf6", - "https://bcr.bazel.build/modules/boost.utility/1.87.0/source.json": "ab5744c8cc722dd83c96ae672e01010b944ad4e864e445de66f78164152a7a23", - "https://bcr.bazel.build/modules/boost.variant2/1.87.0/MODULE.bazel": "c0d8e1d486e3080200b74af21f50e4993b0d6dc649ae5700e42fc1d74e1f72b8", - "https://bcr.bazel.build/modules/boost.variant2/1.87.0/source.json": "d57a8992e410f6def5c2e876e53bb21d7907a0df1b9608f59ff90113a4879e67", - "https://bcr.bazel.build/modules/boost.winapi/1.87.0/MODULE.bazel": "b36870b9f3ebe56c1dadd0507fb6ee6b5a59e13c5c0b784baaa509722bd0ffba", - "https://bcr.bazel.build/modules/boost.winapi/1.87.0/source.json": "8e363a11b36f5f78b4d00a4543a8b181313d78abdcc5dec6e438a5c4b2fd2a7e", - "https://bcr.bazel.build/modules/buildozer/8.5.1/MODULE.bazel": "a35d9561b3fc5b18797c330793e99e3b834a473d5fbd3d7d7634aafc9bdb6f8f", - "https://bcr.bazel.build/modules/buildozer/8.5.1/source.json": "e3386e6ff4529f2442800dee47ad28d3e6487f36a1f75ae39ae56c70f0cd2fbd", - "https://bcr.bazel.build/modules/bzip2/1.0.8.bcr.2/MODULE.bazel": "43b570f55b7479bfa7c6675b227ccc3155d56377bb7782f178b2d1733196a435", - "https://bcr.bazel.build/modules/bzip2/1.0.8.bcr.3/MODULE.bazel": "29ecf4babfd3c762be00d7573c288c083672ab60e79c833ff7f49ee662e54471", - "https://bcr.bazel.build/modules/bzip2/1.0.8.bcr.3/source.json": "8be4a3ef2599693f759e5c0990a4cc5a246ac08db4c900a38f852ba25b5c39be", - "https://bcr.bazel.build/modules/elfutils/0.195/MODULE.bazel": "e76f1f423235a390e29c649f266a960a7563270cbffac9cdfb02136d449fc161", - "https://bcr.bazel.build/modules/elfutils/0.195/source.json": "3375293960b28396fc6e403ceebae20cca34537de22e1ad2acf586c3b8780c9f", - "https://bcr.bazel.build/modules/fmt/12.2.0.bcr.1/MODULE.bazel": "1f391c93affc305e3d32fa24024f132e465fcdeec3d39adfb01e7f3869b993a7", - "https://bcr.bazel.build/modules/fmt/12.2.0.bcr.1/source.json": "5a817473cfdd07162adbf555a3cd5c8a798f1f751b87a13a3464dc6d9370b0f3", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.1/MODULE.bazel": "cdf8cbe5ee750db04b78878c9633cc76e80dcf4416cbe982ac3a9222f80713c8", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.3/MODULE.bazel": "f1b7bb2dd53e8f2ef984b39485ec8a44e9076dda5c4b8efd2fb4c6a6e856a31d", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.7/MODULE.bazel": "1e5e03c383fa64ebbe0942a225c32168fd6ef6b270351bbec481d47d19d1b96d", - "https://bcr.bazel.build/modules/gawk/5.3.2.bcr.7/source.json": "34a83d58ae2f1ef6731d1fc8a1b6f07825741aff3f5993b67b67ec21d2c2946e", - "https://bcr.bazel.build/modules/gazelle/0.32.0/MODULE.bazel": "b499f58a5d0d3537f3cf5b76d8ada18242f64ec474d8391247438bf04f58c7b8", - "https://bcr.bazel.build/modules/gazelle/0.33.0/MODULE.bazel": "a13a0f279b462b784fb8dd52a4074526c4a2afe70e114c7d09066097a46b3350", - "https://bcr.bazel.build/modules/gazelle/0.34.0/MODULE.bazel": "abdd8ce4d70978933209db92e436deb3a8b737859e9354fb5fd11fb5c2004c8a", - "https://bcr.bazel.build/modules/gazelle/0.36.0/MODULE.bazel": "e375d5d6e9a6ca59b0cb38b0540bc9a05b6aa926d322f2de268ad267a2ee74c0", - "https://bcr.bazel.build/modules/gazelle/0.47.0/MODULE.bazel": "b61bb007c4efad134aa30ee7f4a8e2a39b22aa5685f005edaa022fbd1de43ebc", - "https://bcr.bazel.build/modules/gazelle/0.51.3/MODULE.bazel": "618a729142f66de1e2cb776d026413763be5b80d5e3d29ffb9d3d90c5defde90", - "https://bcr.bazel.build/modules/gazelle/0.54.0/MODULE.bazel": "10620287bdf57c55c2321ed5a387ade11c7187aba444fdec583c9f21c3263f45", - "https://bcr.bazel.build/modules/gazelle/0.54.0/source.json": "6c9639ac87508c7edea37bd9d5380581c96defde056ca26518d201a8816805e4", - "https://bcr.bazel.build/modules/gcc_toolchain/0.13.0/MODULE.bazel": "8912be8684729c2814e922aa3555d163d1c6e7dbf620e72753fe44f3761250e4", - "https://bcr.bazel.build/modules/gcc_toolchain/0.13.0/source.json": "41e8693ad56244dde548f7711126deda72eeff630f66f5e2d8403227d4a78097", - "https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb", - "https://bcr.bazel.build/modules/google_benchmark/1.9.5/MODULE.bazel": "8a85cfd90b1e45e6e68f1aa2aa9efce3c04add57df732571d7fd54c07e7c5143", - "https://bcr.bazel.build/modules/google_benchmark/1.9.5/source.json": "0bd357fd9db30ee31d5eb4c78b1086ce3d79b4423ce76de19e8a2fa7b2fa2e10", - "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", - "https://bcr.bazel.build/modules/googletest/1.14.0/MODULE.bazel": "cfbcbf3e6eac06ef9d85900f64424708cc08687d1b527f0ef65aa7517af8118f", - "https://bcr.bazel.build/modules/googletest/1.15.2/MODULE.bazel": "6de1edc1d26cafb0ea1a6ab3f4d4192d91a312fd2d360b63adaa213cd00b2108", - "https://bcr.bazel.build/modules/googletest/1.17.0/MODULE.bazel": "dbec758171594a705933a29fcf69293d2468c49ec1f2ebca65c36f504d72df46", - "https://bcr.bazel.build/modules/googletest/1.17.0/source.json": "38e4454b25fc30f15439c0378e57909ab1fd0a443158aa35aec685da727cd713", - "https://bcr.bazel.build/modules/hermetic_launcher/0.0.17/MODULE.bazel": "afa67883ae04001c93578f80c39e5ec9231ae670978bc380778baf66e1936ad5", - "https://bcr.bazel.build/modules/hermetic_launcher/0.0.17/source.json": "46ee01ccb275e46f59a3c070f91be52eb113405efe577a99365dd69f168713ef", - "https://bcr.bazel.build/modules/jq.bzl/0.1.0/MODULE.bazel": "2ce69b1af49952cd4121a9c3055faa679e748ce774c7f1fda9657f936cae902f", - "https://bcr.bazel.build/modules/jq.bzl/0.4.0/MODULE.bazel": "a7b39b37589f2b0dad53fd6c1ccaabbdb290330caa920d7ef3e6aad068cd4ab2", - "https://bcr.bazel.build/modules/jq.bzl/0.4.0/source.json": "52ec7530c4618e03f634b30ff719814a68d7d39c235938b7aa2abbfe1eb1c52c", - "https://bcr.bazel.build/modules/jsoncpp/1.9.6.bcr.2/MODULE.bazel": "64f508885f907ac2518039b3d0c5c1703a8f6137d9f5d635067ba93d33c2670a", - "https://bcr.bazel.build/modules/jsoncpp/1.9.6.bcr.2/source.json": "13199fa0a267ca46814e9e6ab313a71890c8f1822e57376fdc23a2d2cd384051", - "https://bcr.bazel.build/modules/libpfm/4.11.0.bcr.1/MODULE.bazel": "e5362dadc90aab6724c83a2cc1e67cbed9c89a05d97fb1f90053c8deb1e445c8", - "https://bcr.bazel.build/modules/libpfm/4.11.0.bcr.1/source.json": "0646414d9037f8aad148781dd760bec90b0b25ac12fda5e03f8aadbd6b9c61e6", - "https://bcr.bazel.build/modules/libpfm/4.11.0/MODULE.bazel": "45061ff025b301940f1e30d2c16bea596c25b176c8b6b3087e92615adbd52902", - "https://bcr.bazel.build/modules/libxml2/2.15.3/MODULE.bazel": "a6bffafd8aa8b0c13eaa4bf25d55be188ec8548549395f03e98c39bab264adaa", - "https://bcr.bazel.build/modules/libxml2/2.15.4/MODULE.bazel": "8d0bca5635a3ba19dddd0fcf0578b032f3c127f597e7f6b24cec3462bf10b824", - "https://bcr.bazel.build/modules/libxml2/2.15.4/source.json": "8495e801060e7d4edb558fa1f02ccdbc4653e572e83103b4d723c9b80bfb53b6", - "https://bcr.bazel.build/modules/llvm/0.8.26/MODULE.bazel": "633a1076b1f20d4e6be387fa22f0b99a1b7e7d94d07b60a70c67f4f91f369423", - "https://bcr.bazel.build/modules/llvm/0.8.26/source.json": "2d6d463638dfec25acfcc8cefc56f8ad8fb215b7b1e699b3c2840590ce328fc1", - "https://bcr.bazel.build/modules/lua/5.4.6.bcr.1/MODULE.bazel": "8e3b950c34f8963eb57cca78fa4d37d81bc703aca155a9ca659f2643d38b8e94", - "https://bcr.bazel.build/modules/lua/5.4.6.bcr.1/source.json": "5b09c069b5837ba333df2aaa9f82ab987365f07b0845d4d1029216e23f3721cf", - "https://bcr.bazel.build/modules/mimalloc/3.5.3/MODULE.bazel": "d4555726ceff5240bef25b0ec38b1c80c68337eec2b4b5df20cf611df1383e6a", - "https://bcr.bazel.build/modules/mimalloc/3.5.3/source.json": "e94e4baf53f881236b86b16c436c6ab4a338b37135e370154802a7111c0dda28", - "https://bcr.bazel.build/modules/nlohmann_json/3.12.0.bcr.1/MODULE.bazel": "a1c8bb07b5b91d971727c635f449d05623ac9608f6fe4f5f04254ea12f08e349", - "https://bcr.bazel.build/modules/nlohmann_json/3.12.0.bcr.1/source.json": "93f82a5ae985eb935c539bfee95e04767187818189241ac956f3ccadbdb8fb02", - "https://bcr.bazel.build/modules/package_metadata/0.0.13/MODULE.bazel": "a9cc7e81640c1e7eaca5a465cdf4b63c88d416ca998fcded3680181b1602eee2", - "https://bcr.bazel.build/modules/package_metadata/0.0.13/source.json": "f488e4534468eac223f6417dfdf8d3b7299166d36536408d37c2493ca1e8539d", - "https://bcr.bazel.build/modules/package_metadata/0.0.2/MODULE.bazel": "fb8d25550742674d63d7b250063d4580ca530499f045d70748b1b142081ebb92", - "https://bcr.bazel.build/modules/package_metadata/0.0.3/MODULE.bazel": "77890552ecea9e284b5424c9de827a58099348763a4359e975c359a83d4faa83", - "https://bcr.bazel.build/modules/package_metadata/0.0.5/MODULE.bazel": "ef4f9439e3270fdd6b9fd4dbc3d2f29d13888e44c529a1b243f7a31dfbc2e8e4", - "https://bcr.bazel.build/modules/package_metadata/0.0.6/MODULE.bazel": "341dab6f417197494517d54c8e557c0baee1de7aec83543a4fbefe57900acb7e", - "https://bcr.bazel.build/modules/package_metadata/0.0.7/MODULE.bazel": "7adb03933fc8401f495800cf4eafcff0edc6da0ff55c7db223ef69d19f689486", - "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5", - "https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f", - "https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee", - "https://bcr.bazel.build/modules/platforms/0.0.5/MODULE.bazel": "5733b54ea419d5eaf7997054bb55f6a1d0b5ff8aedf0176fef9eea44f3acda37", - "https://bcr.bazel.build/modules/platforms/0.0.6/MODULE.bazel": "ad6eeef431dc52aefd2d77ed20a4b353f8ebf0f4ecdd26a807d2da5aa8cd0615", - "https://bcr.bazel.build/modules/platforms/0.0.7/MODULE.bazel": "72fd4a0ede9ee5c021f6a8dd92b503e089f46c227ba2813ff183b71616034814", - "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", - "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", - "https://bcr.bazel.build/modules/platforms/1.0.0/MODULE.bazel": "f05feb42b48f1b3c225e4ccf351f367be0371411a803198ec34a389fb22aa580", - "https://bcr.bazel.build/modules/platforms/1.1.0/MODULE.bazel": "1c0c09f5bdcf4b3f924720d2478a3711cb39f4977019ca5988685e5b7e18b3d2", - "https://bcr.bazel.build/modules/platforms/1.1.0/source.json": "fcf351c47596c939140ab0d333dfdd08ed1ea6ce33c2fe70c12493a301cf1344", - "https://bcr.bazel.build/modules/protobuf/36.2/MODULE.bazel": "7c2b9060f7770778a606e2147e69a17465e2a08c61bfb337eaf2da61aaf62b5f", - "https://bcr.bazel.build/modules/protobuf/36.2/source.json": "f9167721eeaa0f65b255aa30f1eb7d7655617d8d63823c3c48521159cf67672f", - "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1/MODULE.bazel": "88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e", - "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/MODULE.bazel": "e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34", - "https://bcr.bazel.build/modules/pybind11_bazel/3.0.0/MODULE.bazel": "a2bfa6020ed603a00d944161c63173c7f109774e99bee0c2cd8dbf24159f8134", - "https://bcr.bazel.build/modules/pybind11_bazel/3.0.0/source.json": "d8f5104d4c21d272bf327ebe44366fb0b4c036cdaa1f5cceb21a408ca4ef2ef8", - "https://bcr.bazel.build/modules/re2/2023-09-01/MODULE.bazel": "cb3d511531b16cfc78a225a9e2136007a48cf8a677e4264baeab57fe78a80206", - "https://bcr.bazel.build/modules/re2/2024-07-02.bcr.1/MODULE.bazel": "b4963dda9b31080be1905ef085ecd7dd6cd47c05c79b9cdf83ade83ab2ab271a", - "https://bcr.bazel.build/modules/re2/2024-07-02/MODULE.bazel": "0eadc4395959969297cbcf31a249ff457f2f1d456228c67719480205aa306daa", - "https://bcr.bazel.build/modules/re2/2025-11-05.bcr.1/MODULE.bazel": "3d9d4995833fc0334fc5c88b56a05288dd25d651544cd7b2233bbd6357bbeba0", - "https://bcr.bazel.build/modules/re2/2025-11-05.bcr.1/source.json": "7df1394aabda1c9bc188a302f5d54b1c657924edd04ebc57d2be29dbd7efd141", - "https://bcr.bazel.build/modules/rules_android/0.8.0/MODULE.bazel": "92961a7a1218694a31fa748eba164db2721f5c42f2d7ed3325c52b19d00ae2f5", - "https://bcr.bazel.build/modules/rules_android/0.8.0/source.json": "efec84c34a78d0b6a23b7a07d51e810942428a5b980857284806d0a59762591f", - "https://bcr.bazel.build/modules/rules_apple/4.1.0/MODULE.bazel": "76e10fd4a48038d3fc7c5dc6e63b7063bbf5304a2e3bd42edda6ec660eebea68", - "https://bcr.bazel.build/modules/rules_apple/5.2.0/MODULE.bazel": "9b46da6889ba44e1b61dda2b4456f69606064cf38a95c1aacab5ae408f2aa735", - "https://bcr.bazel.build/modules/rules_apple/5.4.0/MODULE.bazel": "35332c590fdb8e03f208e200b6077856b2504ef8fd52aebca729d1a4e2ced010", - "https://bcr.bazel.build/modules/rules_apple/5.4.0/source.json": "7dd022593cf2800dc16c7e581a0fc45743f0e6c7ea52bbf125bc42f0295657ba", - "https://bcr.bazel.build/modules/rules_batch/0.1.1/MODULE.bazel": "d86a3773a3aed23878baaf7263917ea7dd71d2100934e989d2f303246389fdcb", - "https://bcr.bazel.build/modules/rules_batch/0.1.1/source.json": "7280584357144d887d386f436ea0e8f9629a68d6396458f65f5fb4e49d8a185d", - "https://bcr.bazel.build/modules/rules_cc/0.0.1/MODULE.bazel": "cb2aa0747f84c6c3a78dad4e2049c154f08ab9d166b1273835a8174940365647", - "https://bcr.bazel.build/modules/rules_cc/0.0.10/MODULE.bazel": "ec1705118f7eaedd6e118508d3d26deba2a4e76476ada7e0e3965211be012002", - "https://bcr.bazel.build/modules/rules_cc/0.0.15/MODULE.bazel": "6704c35f7b4a72502ee81f61bf88706b54f06b3cbe5558ac17e2e14666cd5dcc", - "https://bcr.bazel.build/modules/rules_cc/0.0.17/MODULE.bazel": "2ae1d8f4238ec67d7185d8861cb0a2cdf4bc608697c331b95bf990e69b62e64a", - "https://bcr.bazel.build/modules/rules_cc/0.0.2/MODULE.bazel": "6915987c90970493ab97393024c156ea8fb9f3bea953b2f3ec05c34f19b5695c", - "https://bcr.bazel.build/modules/rules_cc/0.0.6/MODULE.bazel": "abf360251023dfe3efcef65ab9d56beefa8394d4176dd29529750e1c57eaa33f", - "https://bcr.bazel.build/modules/rules_cc/0.0.8/MODULE.bazel": "964c85c82cfeb6f3855e6a07054fdb159aced38e99a5eecf7bce9d53990afa3e", - "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel": "836e76439f354b89afe6a911a7adf59a6b2518fafb174483ad78a2a2fde7b1c5", - "https://bcr.bazel.build/modules/rules_cc/0.1.1/MODULE.bazel": "2f0222a6f229f0bf44cd711dc13c858dad98c62d52bd51d8fc3a764a83125513", - "https://bcr.bazel.build/modules/rules_cc/0.1.2/MODULE.bazel": "557ddc3a96858ec0d465a87c0a931054d7dcfd6583af2c7ed3baf494407fd8d0", - "https://bcr.bazel.build/modules/rules_cc/0.1.5/MODULE.bazel": "88dfc9361e8b5ae1008ac38f7cdfd45ad738e4fa676a3ad67d19204f045a1fd8", - "https://bcr.bazel.build/modules/rules_cc/0.2.0/MODULE.bazel": "b5c17f90458caae90d2ccd114c81970062946f49f355610ed89bebf954f5783c", - "https://bcr.bazel.build/modules/rules_cc/0.2.13/MODULE.bazel": "eecdd666eda6be16a8d9dc15e44b5c75133405e820f620a234acc4b1fdc5aa37", - "https://bcr.bazel.build/modules/rules_cc/0.2.14/MODULE.bazel": "353c99ed148887ee89c54a17d4100ae7e7e436593d104b668476019023b58df8", - "https://bcr.bazel.build/modules/rules_cc/0.2.15/MODULE.bazel": "6a0a4a75a57aa6dc888300d848053a58c6b12a29f89d4304e1c41448514ec6e8", - "https://bcr.bazel.build/modules/rules_cc/0.2.16/MODULE.bazel": "9242fa89f950c6ef7702801ab53922e99c69b02310c39fb6e62b2bd30df2a1d4", - "https://bcr.bazel.build/modules/rules_cc/0.2.17/MODULE.bazel": "1849602c86cb60da8613d2de887f9566a6d354a6df6d7009f9d04a14402f9a84", - "https://bcr.bazel.build/modules/rules_cc/0.2.18/MODULE.bazel": "4460ec36adc8f722a6a2a4ac9374cb91f2acebadaa93fc37966129afb3dece87", - "https://bcr.bazel.build/modules/rules_cc/0.2.20/MODULE.bazel": "f5c07bce5ddcb99be21a0812ff5aadb439e688b7449c6542152363b2fd859c1a", - "https://bcr.bazel.build/modules/rules_cc/0.2.25/MODULE.bazel": "4a3d4f3606d3b3190be495dbc497acca552807d1d5540661ef0d1658472882e3", - "https://bcr.bazel.build/modules/rules_cc/0.2.26/MODULE.bazel": "a9f7b7f4a52747910965bddb1f58fc1fef50604ed1980ebdd16ea6f446d92249", - "https://bcr.bazel.build/modules/rules_cc/0.2.27/MODULE.bazel": "99483699eeba3ec1159e938d724134762e748e8dc16dd0d8cbcc3d01a3d19440", - "https://bcr.bazel.build/modules/rules_cc/0.2.27/source.json": "a1e5e45c8a56ec19fadf109ef34abb06979982badf55a504d3f82a1258d83e3f", - "https://bcr.bazel.build/modules/rules_cc/0.2.4/MODULE.bazel": "1ff1223dfd24f3ecf8f028446d4a27608aa43c3f41e346d22838a4223980b8cc", - "https://bcr.bazel.build/modules/rules_cc/0.2.8/MODULE.bazel": "f1df20f0bf22c28192a794f29b501ee2018fa37a3862a1a2132ae2940a23a642", - "https://bcr.bazel.build/modules/rules_cc/0.2.9/MODULE.bazel": "34263f1dca62ea664265438cef714d7db124c03e1ed55ebb4f1dc860164308d1", - "https://bcr.bazel.build/modules/rules_dart/0.8.1/MODULE.bazel": "33619834fd31d962818d096d9a39195a8c656752e0734237e159254df9b3dc79", - "https://bcr.bazel.build/modules/rules_dart/0.8.1/source.json": "ef64102b1100ed61c1eb00e11ee049265523d8469d624e7e8a4484cac55a321f", - "https://bcr.bazel.build/modules/rules_flutter/0.0.8/MODULE.bazel": "8066f31443a0dcc2b198ce64149d60569f13cb2b497e94095c3a16420bd0ac9d", - "https://bcr.bazel.build/modules/rules_flutter/0.0.8/source.json": "c932c3f0d3e84b433e914e9057c5188b32539f6fe68f620699081a7c40e8dc0e", - "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", - "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel": "55861d8e8bb0e62cbd2896f60ff303f62ffcb0eddb74ecb0e5c0cbe36fc292c8", - "https://bcr.bazel.build/modules/rules_go/0.42.0/MODULE.bazel": "8cfa875b9aa8c6fce2b2e5925e73c1388173ea3c32a0db4d2b4804b453c14270", - "https://bcr.bazel.build/modules/rules_go/0.46.0/MODULE.bazel": "3477df8bdcc49e698b9d25f734c4f3a9f5931ff34ee48a2c662be168f5f2d3fd", - "https://bcr.bazel.build/modules/rules_go/0.53.0/MODULE.bazel": "a4ed760d3ac0dbc0d7b967631a9a3fd9100d28f7d9fcf214b4df87d4bfff5f9a", - "https://bcr.bazel.build/modules/rules_go/0.59.0/MODULE.bazel": "b7e43e7414a3139a7547d1b4909b29085fbe5182b6c58cbe1ed4c6272815aeae", - "https://bcr.bazel.build/modules/rules_go/0.62.0/MODULE.bazel": "8ee616065c3d2b2f7ac0880108316ce8d0c332b3a30aad24e95c0bc124ec853e", - "https://bcr.bazel.build/modules/rules_go/0.64.2/MODULE.bazel": "178287400ec88bc4e20c048b5cf9b8e619d9879eb6118592f8572e49d5342c74", - "https://bcr.bazel.build/modules/rules_go/0.65.0/MODULE.bazel": "9aedb8cc7186d99881b438b545334e6c8ea38619a43b79b4240d1181d5e88abe", - "https://bcr.bazel.build/modules/rules_go/0.65.0/source.json": "36eb4ae1387d5f910968c277de3f8d91627c7b3a321f3b3de166ea7014fd00f3", - "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", - "https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86", - "https://bcr.bazel.build/modules/rules_java/6.0.0/MODULE.bazel": "8a43b7df601a7ec1af61d79345c17b31ea1fedc6711fd4abfd013ea612978e39", - "https://bcr.bazel.build/modules/rules_java/6.3.0/MODULE.bazel": "a97c7678c19f236a956ad260d59c86e10a463badb7eb2eda787490f4c969b963", - "https://bcr.bazel.build/modules/rules_java/7.12.2/MODULE.bazel": "579c505165ee757a4280ef83cda0150eea193eed3bef50b1004ba88b99da6de6", - "https://bcr.bazel.build/modules/rules_java/7.3.2/MODULE.bazel": "50dece891cfdf1741ea230d001aa9c14398062f2b7c066470accace78e412bc2", - "https://bcr.bazel.build/modules/rules_java/7.4.0/MODULE.bazel": "a592852f8a3dd539e82ee6542013bf2cadfc4c6946be8941e189d224500a8934", - "https://bcr.bazel.build/modules/rules_java/7.6.0/MODULE.bazel": "14cd36d05b60aa53c345b5b436c1c4a1f1dec58e82e480ffb9657038e323d330", - "https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe", - "https://bcr.bazel.build/modules/rules_java/8.6.0/MODULE.bazel": "9c064c434606d75a086f15ade5edb514308cccd1544c2b2a89bbac4310e41c71", - "https://bcr.bazel.build/modules/rules_java/8.6.1/MODULE.bazel": "f4808e2ab5b0197f094cabce9f4b006a27766beb6a9975931da07099560ca9c2", - "https://bcr.bazel.build/modules/rules_java/8.9.0/MODULE.bazel": "e17c876cb53dcd817b7b7f0d2985b710610169729e8c371b2221cacdcd3dce4a", - "https://bcr.bazel.build/modules/rules_java/9.1.0/MODULE.bazel": "ee63f27e36a3fada80342869361182f120a9819c74320e8e65b1e04ba0cd7a9d", - "https://bcr.bazel.build/modules/rules_java/9.3.0/MODULE.bazel": "f657c72d65ac449caae9abf2e68e66c0d36f9416848c4c4903d0b3234229e7f2", - "https://bcr.bazel.build/modules/rules_java/9.9.0/MODULE.bazel": "6b2092957b4849ffcbb84d5c7fe0d5a4582f5e3062bc84d607122ac4ef832e55", - "https://bcr.bazel.build/modules/rules_java/9.9.0/source.json": "9c4e694db18812d19b5c1e279ba9dffc1adc3fcac163896829f374a7c426fe12", - "https://bcr.bazel.build/modules/rules_julia/0.8.0/MODULE.bazel": "8d0283ad5e93092dcf7f1c6320c844b30cae1e1b52c7a15c221da090a98f02d4", - "https://bcr.bazel.build/modules/rules_julia/0.8.0/source.json": "8911ab3baabdf30d74a36423ab2890d9d6b32b0174afd1807b7ba7bfaee06a8b", - "https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036", - "https://bcr.bazel.build/modules/rules_jvm_external/6.1/MODULE.bazel": "75b5fec090dbd46cf9b7d8ea08cf84a0472d92ba3585b476f44c326eda8059c4", - "https://bcr.bazel.build/modules/rules_jvm_external/6.2/MODULE.bazel": "36a6e52487a855f33cb960724eb56547fa87e2c98a0474c3acad94339d7f8e99", - "https://bcr.bazel.build/modules/rules_jvm_external/6.7/MODULE.bazel": "e717beabc4d091ecb2c803c2d341b88590e9116b8bf7947915eeb33aab4f96dd", - "https://bcr.bazel.build/modules/rules_jvm_external/6.8/MODULE.bazel": "b5afe861e867e4c8e5b88e401cb7955bd35924258f97b1862cc966cbcf4f1a62", - "https://bcr.bazel.build/modules/rules_jvm_external/6.9/MODULE.bazel": "07c5db05527db7744a54fcffd653e1550d40e0540207a7f7e6d0a4de5bef8274", - "https://bcr.bazel.build/modules/rules_jvm_external/7.1/MODULE.bazel": "e151b1beaa45bfc9e5de4df637d980e27039eb2b1092a95972bf2adbf99ac1a0", - "https://bcr.bazel.build/modules/rules_jvm_external/7.2/MODULE.bazel": "e4f60a972780ca22128d5377d6131b4f9c000854e8bc89e212202676e41e78ce", - "https://bcr.bazel.build/modules/rules_jvm_external/7.2/source.json": "b0e87d55b9c5dd01852ad75641e62f16e5bcbaedd40cb43fc2a2738840e678ff", - "https://bcr.bazel.build/modules/rules_kotlin/2.4.21/MODULE.bazel": "a7f6b1c34486c5112c2d461ce70e14d07421a01519580ba825ef4ade4218b131", - "https://bcr.bazel.build/modules/rules_kotlin/2.4.21/source.json": "c42c737b7acef4e695ce40c68aec5cb6f5f8ed14b1863f2bb3236345e547cf70", - "https://bcr.bazel.build/modules/rules_license/0.0.3/MODULE.bazel": "627e9ab0247f7d1e05736b59dbb1b6871373de5ad31c3011880b4133cafd4bd0", - "https://bcr.bazel.build/modules/rules_license/0.0.7/MODULE.bazel": "088fbeb0b6a419005b89cf93fe62d9517c0a2b8bb56af3244af65ecfe37e7d5d", - "https://bcr.bazel.build/modules/rules_license/1.0.0/MODULE.bazel": "a7fda60eefdf3d8c827262ba499957e4df06f659330bbe6cdbdb975b768bb65c", - "https://bcr.bazel.build/modules/rules_license/1.0.0/source.json": "a52c89e54cc311196e478f8382df91c15f7a2bfdf4c6cd0e2675cc2ff0b56efb", - "https://bcr.bazel.build/modules/rules_m4/0.3.1/MODULE.bazel": "dcfb70aa14ba4ab99bcda9605d6fd0c8de4531a74bf854fb76ecd9f93a6f1e7e", - "https://bcr.bazel.build/modules/rules_m4/0.3.1/source.json": "43e9093a7921c709a70395f4af26da7af6e1419c8e9d76726bce1ea9d90557fd", - "https://bcr.bazel.build/modules/rules_nodejs/6.2.0/MODULE.bazel": "ec27907f55eb34705adb4e8257952162a2d4c3ed0f0b3b4c3c1aad1fac7be35e", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.3/MODULE.bazel": "c22a48b2a0dbf05a9dc5f83837bbc24c226c1f6e618de3c3a610044c9f336056", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.4/MODULE.bazel": "e6a241a55c82e999145553d2e00a08fc6ebadf62b63d108fb5e984696ffd0bd2", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.7/MODULE.bazel": "e80c95eebba3e38fa28ea0553ec580e4bffbbe8d0e8fa892457fa0e6b616f3d8", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.7/source.json": "60081c2448d70db3c5c0e75f55c0a55a22b2144646c21977c46c4986dacacdb6", - "https://bcr.bazel.build/modules/rules_oci/2.3.0/MODULE.bazel": "49075197960c924c0a4d759b7c765c3d00a41d2fdd4a943b42823c1d016ab4ec", - "https://bcr.bazel.build/modules/rules_oci/2.3.0/source.json": "47710c28446211b5e61a24015a4669c50c6862d5f91e6bdbc710de8d750cf613", - "https://bcr.bazel.build/modules/rules_perl/1.5.0/MODULE.bazel": "7a7cb1197e01287cded2c7c46a11e921ab5eb4a3a3b834dcf734740a5d656b02", - "https://bcr.bazel.build/modules/rules_perl/1.5.0/source.json": "d7d3504a77bb226609e4258033973b58d8ccc84acde048a08d825da84df5b197", - "https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff", - "https://bcr.bazel.build/modules/rules_pkg/1.3.0/MODULE.bazel": "ae0bdefbacc990c91f843206c90cf0f4be620639a5bf22119043599ba86d51a3", - "https://bcr.bazel.build/modules/rules_pkg/1.3.0/source.json": "58ae84c545141762f7c434c0ce78bfb55ef0be08d84863e7f0503fff135fe4e2", - "https://bcr.bazel.build/modules/rules_proto/4.0.0/MODULE.bazel": "a7a7b6ce9bee418c1a760b3d84f83a299ad6952f9903c67f19e4edd964894e06", - "https://bcr.bazel.build/modules/rules_proto/6.0.0/MODULE.bazel": "b531d7f09f58dce456cd61b4579ce8c86b38544da75184eadaf0a7cb7966453f", - "https://bcr.bazel.build/modules/rules_proto/6.0.2/MODULE.bazel": "ce916b775a62b90b61888052a416ccdda405212b6aaeb39522f7dc53431a5e73", - "https://bcr.bazel.build/modules/rules_proto/7.0.2/MODULE.bazel": "bf81793bd6d2ad89a37a40693e56c61b0ee30f7a7fdbaf3eabbf5f39de47dea2", - "https://bcr.bazel.build/modules/rules_proto/7.1.0/MODULE.bazel": "002d62d9108f75bb807cd56245d45648f38275cb3a99dcd45dfb864c5d74cb96", - "https://bcr.bazel.build/modules/rules_proto/7.1.0/source.json": "39f89066c12c24097854e8f57ab8558929f9c8d474d34b2c00ac04630ad8940e", - "https://bcr.bazel.build/modules/rules_python/2.4.6/MODULE.bazel": "edd87d5af3d4cc3c6e233c4450209bad2f4d6124d24c647670ee8062cfdf822e", - "https://bcr.bazel.build/modules/rules_python/2.4.6/source.json": "2e5154205999e263cdee7399111b09acfb9361a205f29e95af93f9423be674d6", - "https://bcr.bazel.build/modules/rules_robolectric/4.14.1.2/MODULE.bazel": "d44fec647d0aeb67b9f3b980cf68ba634976f3ae7ccd6c07d790b59b87a4f251", - "https://bcr.bazel.build/modules/rules_robolectric/4.14.1.2/source.json": "37c10335f2361c337c5c1f34ed36d2da70534c23088062b33a8bdaab68aa9dea", - "https://bcr.bazel.build/modules/rules_rust/0.75.0/MODULE.bazel": "77452ad75faf65400abc8d0956033d5732c68d39478c9ac064288d3f484f6e34", - "https://bcr.bazel.build/modules/rules_rust/0.75.0/source.json": "6205a2156646606f99828f217931f4cd5c68f3ada35916dab6601020358bfc63", - "https://bcr.bazel.build/modules/rules_rust_prost/0.75.0/MODULE.bazel": "352c97c54b4938acaae4f5be9cf380845d56ce6f062cf161f78059764f7d901a", - "https://bcr.bazel.build/modules/rules_rust_prost/0.75.0/source.json": "fdd8bb6bd5fca6d0f672a2438312016e91c8010fdd9c9355a8eec4f503aa5ac5", - "https://bcr.bazel.build/modules/rules_rust_wasm_bindgen/0.75.0/MODULE.bazel": "2da21af41a035b2c603b2b8fe768d63746df1bae69fadd2d762c0436cd601ac8", - "https://bcr.bazel.build/modules/rules_rust_wasm_bindgen/0.75.0/source.json": "f0ce711d9162d4fda731e58d2939358d70bc35ac641c9890f998e6852842cec2", - "https://bcr.bazel.build/modules/rules_scala/7.4.1/MODULE.bazel": "74174791015794a463fb0f1e5b68d281dbb64d0afea01a539b21abe922eab79d", - "https://bcr.bazel.build/modules/rules_scala/7.4.1/source.json": "6d44092458477113b4f1b0e2eaad2475afbb13ecad97ac04a5ee5112be55b1fe", - "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", - "https://bcr.bazel.build/modules/rules_shell/0.3.0/MODULE.bazel": "de4402cd12f4cc8fda2354fce179fdb068c0b9ca1ec2d2b17b3e21b24c1a937b", - "https://bcr.bazel.build/modules/rules_shell/0.4.1/MODULE.bazel": "00e501db01bbf4e3e1dd1595959092c2fadf2087b2852d3f553b5370f5633592", - "https://bcr.bazel.build/modules/rules_shell/0.6.1/MODULE.bazel": "72e76b0eea4e81611ef5452aa82b3da34caca0c8b7b5c0c9584338aa93bae26b", - "https://bcr.bazel.build/modules/rules_shell/0.7.1/MODULE.bazel": "257dd8d667371de804918dfceb86f6ddd2e1b5e025f5d9322878d4a73dc8aa58", - "https://bcr.bazel.build/modules/rules_shell/0.8.0/MODULE.bazel": "f6a89f1d6a669a26f28fe814503857055d76306b79cfc11d12399af08d0b80ae", - "https://bcr.bazel.build/modules/rules_shell/0.8.0/source.json": "eb53cc815bc503c6683c5fe12d943f98883f81fc22f51403ec8a95610cba4195", - "https://bcr.bazel.build/modules/rules_swift/4.2.2/MODULE.bazel": "dce65c0c22c5880dc0060b525dbbb7c44ede24e317e27509064512aa92fe237e", - "https://bcr.bazel.build/modules/rules_swift/4.2.2/source.json": "4d8348d47ac5495a40a86235fff26202f9e578188fae00dec806b7c6d9d73487", - "https://bcr.bazel.build/modules/rules_zig/0.17.0/MODULE.bazel": "2c1c08adc986cfdb5fee97e21982cac846f8a20a6a8054ae9cab8b02721c2011", - "https://bcr.bazel.build/modules/rules_zig/0.17.0/source.json": "488f71f57c596ed9b7635ebeb28066b23c6fc1802c30749d06bdad261d7b04a2", - "https://bcr.bazel.build/modules/sqlite3/3.53.4/MODULE.bazel": "1827a71c19204893597a5cd8450d4ca0a64ddea87641522499051407f9c13b77", - "https://bcr.bazel.build/modules/sqlite3/3.53.4/source.json": "3e645ccf3ad53c308491605be7dbf5259b4bdf8274bf186c8e739a18ab2f4eb2", - "https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c", - "https://bcr.bazel.build/modules/stardoc/0.5.4/MODULE.bazel": "6569966df04610b8520957cb8e97cf2e9faac2c0309657c537ab51c16c18a2a4", - "https://bcr.bazel.build/modules/stardoc/0.5.6/MODULE.bazel": "c43dabc564990eeab55e25ed61c07a1aadafe9ece96a4efabb3f8bf9063b71ef", - "https://bcr.bazel.build/modules/stardoc/0.6.2/MODULE.bazel": "7060193196395f5dd668eda046ccbeacebfd98efc77fed418dbe2b82ffaa39fd", - "https://bcr.bazel.build/modules/stardoc/0.7.0/MODULE.bazel": "05e3d6d30c099b6770e97da986c53bd31844d7f13d41412480ea265ac9e8079c", - "https://bcr.bazel.build/modules/stardoc/0.7.1/MODULE.bazel": "3548faea4ee5dda5580f9af150e79d0f6aea934fc60c1cc50f4efdd9420759e7", - "https://bcr.bazel.build/modules/stardoc/0.7.1/source.json": "b6500ffcd7b48cd72c29bb67bcac781e12701cc0d6d55d266a652583cfcdab01", - "https://bcr.bazel.build/modules/swift_argument_parser/1.7.0/MODULE.bazel": "40d4e44950e44973dcf8590bcee637591de196b5dbe3696d07eb342b74d53672", - "https://bcr.bazel.build/modules/swift_argument_parser/1.7.0/source.json": "b9b952cba0c748083b9b891e6ac46d347c92d37e8a92ead96d2a54b966bacd87", - "https://bcr.bazel.build/modules/tar.bzl/0.10.1/MODULE.bazel": "bf5fda5b5ccef8c3c4a5f4886144377386e0baa382972f257acb42dcf40ea908", - "https://bcr.bazel.build/modules/tar.bzl/0.10.4/MODULE.bazel": "e8f9ff79199e8d9eaad7f1b0a77ad74b30bb82d794b87d8ca942bead5de83ae9", - "https://bcr.bazel.build/modules/tar.bzl/0.10.9/MODULE.bazel": "4636f5f6a7c34d3d0653634ed95a34560426d548c5301c6c5924c885ef737b46", - "https://bcr.bazel.build/modules/tar.bzl/0.10.9/source.json": "30a5cf0a8281adce53ab1c5a4291e88b2c161e2df1feb6cba4ee50556f1748d7", - "https://bcr.bazel.build/modules/tar.bzl/0.2.1/MODULE.bazel": "52d1c00a80a8cc67acbd01649e83d8dd6a9dc426a6c0b754a04fe8c219c76468", - "https://bcr.bazel.build/modules/tar.bzl/0.5.1/MODULE.bazel": "7c2eb3dcfc53b0f3d6f9acdfd911ca803eaf92aadf54f8ca6e4c1f3aee288351", - "https://bcr.bazel.build/modules/tar.bzl/0.6.0/MODULE.bazel": "a3584b4edcfafcabd9b0ef9819808f05b372957bbdff41601429d5fd0aac2e7c", - "https://bcr.bazel.build/modules/tar.bzl/0.7.0/MODULE.bazel": "cc1acd85da33c80e430b65219a620d54d114628df24a618c3a5fa0b65e988da9", - "https://bcr.bazel.build/modules/toml.bzl/0.3.0/MODULE.bazel": "5016e5dd1ad2200e119a4b28b2b3935e276c4b480f2fe3e952bea7eeba88f578", - "https://bcr.bazel.build/modules/toml.bzl/0.4.1/MODULE.bazel": "6bc0b938f03ade8d58c2fca0ad5c3fa12b4764e1e1927ad50b0c860286db2167", - "https://bcr.bazel.build/modules/toml.bzl/0.5.0/MODULE.bazel": "29c04b37a3f50c8dfcdc0c742eec7561ecb3d0cfea353bdb445ad8f6e0c81370", - "https://bcr.bazel.build/modules/toml.bzl/0.5.0/source.json": "a80e38d7d03cee9de004f49f0b817943332fc357ec0ca9b123a334ac6e9722ca", - "https://bcr.bazel.build/modules/windows_support/0.4.1/MODULE.bazel": "2287f95ac65c48ea05197f626a9b5711ea3c88cea61f2a5782882bdd55fdeb51", - "https://bcr.bazel.build/modules/windows_support/0.4.1/source.json": "bdb72e6717b00135e0a4a8512b3f6b626df0baea0bde74bf7312c7484f791287", - "https://bcr.bazel.build/modules/with_cfg.bzl/0.12.0/MODULE.bazel": "b573395fe63aef4299ba095173e2f62ccfee5ad9bbf7acaa95dba73af9fc2b38", - "https://bcr.bazel.build/modules/with_cfg.bzl/0.12.0/source.json": "3f3fbaeafecaf629877ad152a2c9def21f8d330d91aa94c5dc75bbb98c10b8b8", - "https://bcr.bazel.build/modules/xctestrunner/0.2.16-20260212-4c6f493/MODULE.bazel": "df9d74c77698e7dbc52a65ebdd6de5727044e98121ac309b5d046f2d04121d56", - "https://bcr.bazel.build/modules/xctestrunner/0.2.16-20260212-4c6f493/source.json": "73a5421c8ef51cd455a572dee5bb9415351ab5acbcb65d4efa56a574790bd2f2", - "https://bcr.bazel.build/modules/yaml.bzl/0.1.2/MODULE.bazel": "bd9b2434761c3b1ee41e77fcda787af3bcd7874513d1a5eba4a7395cbd5ed618", - "https://bcr.bazel.build/modules/yaml.bzl/0.1.2/source.json": "fc9af4a6e1ebc109f7d9d85cd75f112d495b448a8defa88af9c2a2148be0498a", - "https://bcr.bazel.build/modules/yq.bzl/0.1.1/MODULE.bazel": "9039681f9bcb8958ee2c87ffc74bdafba9f4369096a2b5634b88abc0eaefa072", - "https://bcr.bazel.build/modules/yq.bzl/0.3.2/MODULE.bazel": "0384efa70e8033d842ea73aa4b7199fa099709e236a7264345c03937166670b6", - "https://bcr.bazel.build/modules/yq.bzl/0.3.4/MODULE.bazel": "d3a270662f5d766cd7229732d65a5a5bc485240c3007343dd279edfb60c9ae27", - "https://bcr.bazel.build/modules/yq.bzl/0.3.4/source.json": "786dafdc2843722da3416e4343ee1a05237227f068590779a6e8496a2064c0f9", - "https://bcr.bazel.build/modules/zlib-ng/2.3.3.bcr.2/MODULE.bazel": "86130924115bf8dfc4aba286fb49a2ec8d32430a21771db9ccf5381acf0d10cc", - "https://bcr.bazel.build/modules/zlib-ng/2.3.3.bcr.2/source.json": "7aa4112eb2fbb99757e97cf0b7a4e2bdb3464b2b3cfb351bc807ffcb34bd349f", - "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", - "https://bcr.bazel.build/modules/zlib/1.3.2.bcr.3/MODULE.bazel": "0b6a197b824f4882f97f6717d81e09b10c7562023370bf7e9da6380238e9c212", - "https://bcr.bazel.build/modules/zlib/1.3.2.bcr.3/source.json": "00797abf23e06df10af2d7b78cff7d3360349e72c434329faeb532f9c358449b", - "https://bcr.bazel.build/modules/zlib/1.3.2/MODULE.bazel": "7303cb87d80e438f313194fc640e38475a8d337b8c70ff6a0725f55236566a33", - "https://bcr.bazel.build/modules/zstd/1.5.7.bcr.1/MODULE.bazel": "c5977176dd8555be7a9d598512ae0cae11831259c06f00a5e5e0037d5db4e3f5", - "https://bcr.bazel.build/modules/zstd/1.5.7.bcr.1/source.json": "aa95e0b5aac9d80195b9047d223beaf26b1948be55d49f0e803e180e9ccc6e75", - "https://bcr.bazel.build/modules/zstd/1.5.7/MODULE.bazel": "f5780cdbd6f4c5bb985a20f839844316fe48fb5e463056f372dbc37cfabdf450" - }, - "selectedYankedVersions": {}, - "moduleExtensions": { - "@@aspect_tools_telemetry+//:extension.bzl%telemetry": { - "general": { - "bzlTransitiveDigest": "ihzLOoAnQP6Y5iSYOhEjvb6uxEbA6ZgH8Qikau2lGRU=", - "usagesDigest": "9jD5ypNZfOa8PCtqb7zh2LhW4lsg4BaSkXHt/JHi9rk=", - "recordedInputs": [ - "REPO_MAPPING:aspect_tools_telemetry+,bazel_lib bazel_lib+", - "REPO_MAPPING:aspect_tools_telemetry+,bazel_skylib bazel_skylib+", - "ENV:ASPECT_TOOLS_TELEMETRY_TEST \\0" - ], - "generatedRepoSpecs": { - "aspect_tools_telemetry_report": { - "repoRuleId": "@@aspect_tools_telemetry+//:extension.bzl%tel_repository", - "attributes": { - "deps": { - "aspect_rules_js": "3.5.2", - "aspect_rules_ts": "3.10.1", - "aspect_rules_jest": "0.26.0", - "aspect_tools_telemetry": "0.5.2" - }, - "last_notice": 0 - } - } - }, - "moduleExtensionMetadata": { - "useAllRepos": "NO", - "reproducible": false - } - } - }, - "@@gcc_toolchain+//:internal.bzl%non_bazel_dependencies": { - "general": { - "bzlTransitiveDigest": "2lJ032c8fOuugvP5l8O9QCbfJ0bax+IIqOgaFwlNDec=", - "usagesDigest": "sKYmx+ooOsbnANJqjmba+8IeuYjA9CbwKfQETYhyNuU=", - "recordedInputs": [ - "REPO_MAPPING:gcc_toolchain+,bazel_tools bazel_tools", - "REPO_MAPPING:gcc_toolchain+,lapack gcc_toolchain++non_bazel_dependencies+lapack" - ], - "generatedRepoSpecs": { - "openssl": { - "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", - "attributes": { - "build_file_content": "filegroup(\n name = \"srcs\",\n srcs = glob(\n include = [\"**\"],\n exclude = [\"**/* *\"],\n ),\n visibility = [\"//visibility:public\"],\n)\n", - "sha256": "40dceb51a4f6a5275bde0e6bf20ef4b91bfc32ed57c0552e2e8e15463372b17a", - "strip_prefix": "openssl-1.1.1n", - "url": "https://www.openssl.org/source/openssl-1.1.1n.tar.gz" - } - }, - "lapack": { - "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", - "attributes": { - "build_file_content": "filegroup(\n name = \"srcs\",\n srcs = glob(\n include = [\"**\"],\n exclude = [\"**/* *\"],\n ),\n visibility = [\"//visibility:public\"],\n)\n", - "patch_cmds": [ - "cat > make.inc < - #include - - namespace avro { -diff --git a/include/avro/buffer/detail/BufferDetail.hh b/include/avro/buffer/detail/BufferDetail.hh ---- a/include/avro/buffer/detail/BufferDetail.hh -+++ b/include/avro/buffer/detail/BufferDetail.hh -@@ -31,6 +31,7 @@ - #include - #include - #include -+#include - - /** - * \file BufferDetail.hh -diff --git a/include/avro/Layout.hh b/include/avro/Layout.hh ---- a/include/avro/Layout.hh -+++ b/include/avro/Layout.hh -@@ -20,6 +20,8 @@ - #define avro_Layout_hh__ - - #include "Config.hh" -+#include -+#include - #include - - /// \file Layout.hh -diff --git a/include/avro/Node.hh b/include/avro/Node.hh ---- a/include/avro/Node.hh -+++ b/include/avro/Node.hh -@@ -24,6 +24,7 @@ - #include - #include - #include -+#include - #include - - #include "CustomAttributes.hh" -diff --git a/include/avro/Exception.hh b/include/avro/Exception.hh ---- a/include/avro/Exception.hh -+++ b/include/avro/Exception.hh -@@ -20,7 +20,7 @@ - #define avro_Exception_hh__ - - #include "Config.hh" --#include -+#include - #include - - namespace avro { diff --git a/families/zig/third_party/rules_dx/gcc_toolchain.native_include_layout.patch b/families/zig/third_party/rules_dx/gcc_toolchain.native_include_layout.patch deleted file mode 100644 index 274d949843..0000000000 --- a/families/zig/third_party/rules_dx/gcc_toolchain.native_include_layout.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -109,7 +109,7 @@ - ] - - cxx_builtin_includes = [] -- if target_arch == ARCHS.x86_64: -+ if target_arch == ARCHS.x86_64 or not rctx.path("{}include/c++".format(include_prefix)).exists: - cxx_builtin_includes.extend([ - include.format( - gcc_version = rctx.attr.gcc_version, diff --git a/families/zig/third_party/rules_dx/gcc_toolchain.runtime_libs.patch b/families/zig/third_party/rules_dx/gcc_toolchain.runtime_libs.patch deleted file mode 100644 index df5d4a6995..0000000000 --- a/families/zig/third_party/rules_dx/gcc_toolchain.runtime_libs.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -982,6 +982,8 @@ - strip_files = ":strip_files", - coverage_files = ":coverage_files", - supports_param_files = {supports_param_files}, -+ dynamic_runtime_lib = ":dx_dynamic_runtime_lib", -+ static_runtime_lib = ":dx_static_runtime_lib", - toolchain_config = ":cc_toolchain_config", - toolchain_identifier = "gcc-toolchain", - ) -@@ -1001,6 +1003,24 @@ - ) - - filegroup( -+ name = "dx_dynamic_runtime_lib", -+ srcs = glob( -+ include = [ -+ "lib64/libstdc++.so.6", -+ "lib64/libgcc_s.so.1", -+ "*/lib64/libstdc++.so.6", -+ "*/lib64/libgcc_s.so.1", -+ ], -+ allow_empty = True, -+ ), -+) -+ -+filegroup( -+ name = "dx_static_runtime_lib", -+ srcs = [], -+) -+ -+filegroup( - name = "all_files", - srcs = [ - ":ar_files", diff --git a/families/zig/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch b/families/zig/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch deleted file mode 100644 index b1e88ba100..0000000000 --- a/families/zig/third_party/rules_dx/gcc_toolchain.sanitizer_spec.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -1081,6 +1081,7 @@ - "**/*.la", - "**/*.o", - "**/*.lo", -+ "**/lib*/libsanitizer.spec", - ], - exclude = ["lib*/**/*python*/**"], - allow_empty = True, diff --git a/families/zig/third_party/rules_dx/gcc_toolchain.target_identity_config.patch b/families/zig/third_party/rules_dx/gcc_toolchain.target_identity_config.patch deleted file mode 100644 index be5fc75deb..0000000000 --- a/families/zig/third_party/rules_dx/gcc_toolchain.target_identity_config.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/toolchain/cc_toolchain_config.bzl -+++ b/toolchain/cc_toolchain_config.bzl -@@ -587,7 +587,7 @@ - - return [ - cc_common.create_cc_toolchain_config_info( -- abi_libc_version = "local", -+ abi_libc_version = ctx.attr.target_libc, - abi_version = "local", - action_configs = action_configs, - artifact_name_patterns = [], -@@ -599,8 +599,8 @@ - host_system_name = "local", - make_variables = [], - target_cpu = "local", -- target_libc = "local", -- target_system_name = "local", -+ target_libc = ctx.attr.target_libc, -+ target_system_name = ctx.attr.target_system_name, - tool_paths = [ - tool_path(name = name, path = path) - for name, path in tool_paths.items() -@@ -614,6 +614,8 @@ - attrs = { - "cxx_builtin_include_directories": attr.string_list(mandatory = True), - "enable_fortran": attr.bool(mandatory = True), -+ "target_libc": attr.string(default = "local"), -+ "target_system_name": attr.string(default = "local"), - "extra_cflags": attr.string_list(mandatory = True), - "extra_cxxflags": attr.string_list(mandatory = True), - "extra_enabled_features": attr.label_list(mandatory = True), diff --git a/families/zig/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch b/families/zig/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch deleted file mode 100644 index 5d9ee89d29..0000000000 --- a/families/zig/third_party/rules_dx/gcc_toolchain.target_identity_defs.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- a/toolchain/defs.bzl -+++ b/toolchain/defs.bzl -@@ -269,6 +269,8 @@ - - # cc_toolchain attributes - supports_param_files = 1 if rctx.attr.supports_param_files else 0, -+ target_libc = rctx.attr.target_libc, -+ target_system_name = "{}-linux-gnu".format(rctx.attr.target_arch), - - # Fortran, if enabled - **_fortran_vars( -@@ -490,6 +492,10 @@ - doc = "The target architecture this toolchain produces. E.g. x86_64.", - mandatory = True, - ), -+ "target_libc": attr.string( -+ doc = "The libc name and version reported in the cc toolchain identity. E.g. glibc_2.28.", -+ default = "local", -+ ), - } - - # Attributes of the `toolchain` declarations, which live in the hub rather than in the repository -@@ -674,6 +680,7 @@ - "extra_target_compatible_with", - "extra_target_settings", - "supports_param_files", -+ "target_libc", - ] - } - -@@ -997,6 +1004,8 @@ - extra_fflags = {extra_fflags}, - extra_ldflags = {extra_ldflags}, - extra_asmflags = {extra_asmflags}, -+ target_libc = "{target_libc}", -+ target_system_name = "{target_system_name}", - extra_enabled_features = {extra_enabled_features}, - extra_known_features = {extra_known_features}, - tool_paths = tool_paths, diff --git a/families/zig/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch b/families/zig/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch deleted file mode 100644 index 206afb59a8..0000000000 --- a/families/zig/third_party/rules_dx/gcc_toolchain.target_identity_extension.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/toolchain/module_extensions.bzl -+++ b/toolchain/module_extensions.bzl -@@ -25,6 +25,7 @@ - extra_target_compatible_with = declare.extra_target_compatible_with, - extra_target_settings = declare.extra_target_settings, - supports_param_files = declare.supports_param_files, -+ target_libc = declare.target_libc, - ) - - # Since we know that for each gcc toolchain repository we'll generate the same files, we mark the rule as reproducible. diff --git a/families/zig/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch b/families/zig/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch deleted file mode 100644 index 0599d7222f..0000000000 --- a/families/zig/third_party/rules_dx/hermetic_launcher.windows_arm64_toolchains.patch +++ /dev/null @@ -1,50 +0,0 @@ -diff -ru a/launcher/private/prebuilt/BUILD.bazel b/launcher/private/prebuilt/BUILD.bazel ---- a/launcher/private/prebuilt/BUILD.bazel -+++ b/launcher/private/prebuilt/BUILD.bazel -@@ -11,6 +11,7 @@ - finalizers = { - "aarch64_linux": "@finalize_stub_aarch64_linux//file", - "aarch64_macos": "@finalize_stub_aarch64_macos//file", -+ "aarch64_windows": "@finalize_stub_aarch64_windows//file", - "s390x_linux": "@finalize_stub_s390x_linux//file", - "x86_64_linux": "@finalize_stub_x86_64_linux//file", - "x86_64_macos": "@finalize_stub_x86_64_macos//file", -@@ -19,6 +20,7 @@ - templates = { - "aarch64_linux": "@runfiles_stub_aarch64_linux//file", - "aarch64_macos": "@runfiles_stub_aarch64_macos//file", -+ "aarch64_windows": "@runfiles_stub_aarch64_windows//file", - "s390x_linux": "@runfiles_stub_s390x_linux//file", - "x86_64_linux": "@runfiles_stub_x86_64_linux//file", - "x86_64_macos": "@runfiles_stub_x86_64_macos//file", -diff -ru a/launcher/private/toolchains.bzl b/launcher/private/toolchains.bzl ---- a/launcher/private/toolchains.bzl -+++ b/launcher/private/toolchains.bzl -@@ -22,14 +22,14 @@ - attrs = {"src": attr.label(mandatory = True)}, - ) - --# The platforms toolchains are registered for. Windows/aarch64 ships for --# standalone use but has no auto-registered Bazel toolchain (see README --# "Supported platforms"). -+# The platforms toolchains are registered for. A platform missing from the -+# templates or finalizers dict of a stub source is skipped for that source. - # - # (name, cpu, os) - PLATFORMS = [ - ("aarch64_linux", "aarch64", "linux"), - ("aarch64_macos", "aarch64", "macos"), -+ ("aarch64_windows", "aarch64", "windows"), - ("s390x_linux", "s390x", "linux"), - ("x86_64_linux", "x86_64", "linux"), - ("x86_64_macos", "x86_64", "macos"), -@@ -56,6 +56,9 @@ - target_settings = ["//launcher/private:stub_source_" + name] - - for (platform, cpu, os) in PLATFORMS: -+ if platform not in templates or platform not in finalizers: -+ continue -+ - constraints = [ - "@platforms//cpu:" + cpu, - "@platforms//os:" + os, diff --git a/families/zig/third_party/rules_dx/llvm.aarch64_outline_atomics.patch b/families/zig/third_party/rules_dx/llvm.aarch64_outline_atomics.patch deleted file mode 100644 index 436a00ebeb..0000000000 --- a/families/zig/third_party/rules_dx/llvm.aarch64_outline_atomics.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -@@ -751,6 +751,10 @@ - "//conditions:default": [], - }), - deps = select({ -+ # Clang only defaults to outline atomics on Linux-like targets, so -+ # nothing calls the __aarch64_* helpers on macOS or Windows. -+ "@llvm//platforms/config:macos_aarch64": [], -+ "@llvm//platforms/config:windows_aarch64": [], - "@platforms//cpu:aarch64": [ - ":builtins_aarch64_atomic", - ], diff --git a/families/zig/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch b/families/zig/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch deleted file mode 100644 index 5df92a2b33..0000000000 --- a/families/zig/third_party/rules_dx/llvm.clang_cl_crt_default_lib.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff -ruN a/toolchain/args/windows/msvc/BUILD.bazel b/toolchain/args/windows/msvc/BUILD.bazel ---- a/toolchain/args/windows/msvc/BUILD.bazel 2026-11-06 03:26:58.926919250 +0100 -+++ b/toolchain/args/windows/msvc/BUILD.bazel 2026-11-06 03:26:58.932824171 +0100 -@@ -219,6 +219,24 @@ - ) - - cc_args( -+ name = "dynamic_crt_default_lib", -+ actions = ["@rules_cc//cc/toolchains/actions:link_actions"], -+ args = [ -+ "/clang:-Xlinker", -+ "/clang:/DEFAULTLIB:msvcrt.lib", -+ ], -+) -+ -+cc_args( -+ name = "static_crt_default_lib", -+ actions = ["@rules_cc//cc/toolchains/actions:link_actions"], -+ args = [ -+ "/clang:-Xlinker", -+ "/clang:/DEFAULTLIB:libcmt.lib", -+ ], -+) -+ -+cc_args( - name = "sdk_library_search_paths", - actions = [ - "@rules_cc//cc/toolchains/actions:link_actions", -@@ -279,8 +297,8 @@ - "common_support_library_search_paths", - "com_support_library_search_paths", - ] + select({ -- "//toolchain/features/msvc:static_crt_config": ["static_crt_library_search_paths"], -- "//conditions:default": ["dynamic_crt_library_search_paths"], -+ "//toolchain/features/msvc:static_crt_config": ["static_crt_library_search_paths", "static_crt_default_lib"], -+ "//conditions:default": ["dynamic_crt_library_search_paths", "dynamic_crt_default_lib"], - }) + select({ - # Hosted C construction tools need the target CRT and SDK, but do not - # consume the C++ standard library. diff --git a/families/zig/third_party/rules_dx/llvm.libunwind_copy.patch b/families/zig/third_party/rules_dx/llvm.libunwind_copy.patch deleted file mode 100644 index 527a5b3ccc..0000000000 --- a/families/zig/third_party/rules_dx/llvm.libunwind_copy.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -ruN a/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel b/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel ---- a/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/libunwind/libunwind.BUILD.bazel -@@ -176,7 +176,6 @@ - name = "libunwind.static.gnu_link_name", - src = "libunwind.static", - out = "libunwind.a", -- allow_symlink = True, - visibility = ["//visibility:public"], - ) - diff --git a/families/zig/third_party/rules_dx/llvm.lse_atomic_sources.patch b/families/zig/third_party/rules_dx/llvm.lse_atomic_sources.patch deleted file mode 100644 index f3c913e6fe..0000000000 --- a/families/zig/third_party/rules_dx/llvm.lse_atomic_sources.patch +++ /dev/null @@ -1,189 +0,0 @@ -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel b/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel -index 454cd22..c9ad737 100644 ---- a/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/compiler-rt/BUILD.bazel -@@ -9,10 +9,13 @@ bzl_library( - name = "targets", - srcs = ["targets.bzl"], - visibility = ["//visibility:public"], -- deps = [ -- "@bazel_lib//lib:copy_file", -- "@rules_cc//cc:core_rules", -- ], -+ deps = ["@rules_cc//cc:core_rules"], -+) -+ -+bzl_library( -+ name = "lse_variants", -+ srcs = ["lse_variants.bzl"], -+ visibility = ["//visibility:public"], - ) - - bzl_library( -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel b/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -index 0fa0744..3c53c15 100644 ---- a/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -+++ b/3rd_party/llvm-project/x.x/compiler-rt/compiler-rt.BUILD.bazel -@@ -5,6 +5,7 @@ load("@bazel_skylib//rules/directory:directory.bzl", "directory") - load("@bazel_skylib//rules/directory:subdirectory.bzl", "subdirectory") - load("@llvm//:sh_script.bzl", "sh_script") - load("@llvm//3rd_party/llvm-project/x.x/compiler-rt:filter_builtin_sources.bzl", "filter_builtin_sources") -+load("@llvm//3rd_party/llvm-project/x.x/compiler-rt:lse_variants.bzl", "LSE_ATOMIC_VARIANTS") - load("@llvm//3rd_party/llvm-project/x.x/compiler-rt:targets.bzl", "atomic_helper_cc_library") - load( - "@llvm//3rd_party/llvm-project/x.x/compiler-rt:weak_symbols.bzl", -@@ -512,29 +513,7 @@ builtins_aarch64_atomic_deps = [ - model = model, - pat = pat, - ) -- for pat in [ -- "cas", -- "swp", -- "ldadd", -- "ldclr", -- "ldeor", -- "ldset", -- ] -- for size in [ -- 1, -- 2, -- 4, -- 8, -- 16, -- ] -- for model in [ -- 1, -- 2, -- 3, -- 4, -- 5, -- ] -- if pat == "cas" or size != 16 -+ for pat, size, model in LSE_ATOMIC_VARIANTS - ] - - cc_library( -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/lse_variants.bzl b/3rd_party/llvm-project/x.x/compiler-rt/lse_variants.bzl -new file mode 100644 -index 0000000..b275140 ---- /dev/null -+++ b/3rd_party/llvm-project/x.x/compiler-rt/lse_variants.bzl -@@ -0,0 +1,33 @@ -+""" -+The aarch64 outline atomic helpers built from lib/builtins/aarch64/lse.S. -+ -+Each (pat, size, model) gets its own lse___.S copy, written -+when llvm-project is fetched, so cc_static_library sees distinct object names. -+""" -+ -+LSE_ATOMIC_VARIANTS = [ -+ (pat, size, model) -+ for pat in [ -+ "cas", -+ "swp", -+ "ldadd", -+ "ldclr", -+ "ldeor", -+ "ldset", -+ ] -+ for size in [ -+ 1, -+ 2, -+ 4, -+ 8, -+ 16, -+ ] -+ for model in [ -+ 1, -+ 2, -+ 3, -+ 4, -+ 5, -+ ] -+ if pat == "cas" or size != 16 -+] -diff --git a/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl b/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl -index 541c39a..0be33c6 100644 ---- a/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl -+++ b/3rd_party/llvm-project/x.x/compiler-rt/targets.bzl -@@ -2,7 +2,6 @@ - Helper functions for defining targets. - """ - --load("@bazel_lib//lib:copy_file.bzl", "copy_file") - load("@rules_cc//cc:cc_library.bzl", "cc_library") - - def atomic_helper_cc_library(name, pat, size, model): -@@ -10,17 +9,11 @@ def atomic_helper_cc_library(name, pat, size, model): - - # cc_library will always produce an archive file containing lse.o. - # Because those end up in a static library, cc_static_library will complain -- # that the archive has lse.o specified multiple times. -- copy_file( -- name = unique_filename, -- src = "lib/builtins/aarch64/lse.S", -- out = "{}.S".format(unique_filename), -- allow_symlink = True, -- ) -- -+ # that the archive has lse.o specified multiple times. The renamed copies -+ # are written when llvm-project is fetched (see lse_variants.bzl). - cc_library( - name = name, -- srcs = [unique_filename], -+ srcs = ["lib/builtins/aarch64/{}.S".format(unique_filename)], - copts = select({ - # The clang-cl hermetic compilation policy already supplies both - # options with its required /clang: spelling. -diff --git a/private/BUILD.bazel b/private/BUILD.bazel -index 4e70eeb..3b366e2 100644 ---- a/private/BUILD.bazel -+++ b/private/BUILD.bazel -@@ -13,6 +13,7 @@ bzl_library( - deps = [ - ":llvm_project_common", - "//:http_bsdtar_archive", -+ "//3rd_party/llvm-project/x.x/compiler-rt:lse_variants", - "@bazel_lib//lib:repo_utils", - "@bazel_skylib//lib:paths", - "@bazel_tools//tools/build_defs/repo:cache.bzl", -diff --git a/private/llvm_project_archive.bzl b/private/llvm_project_archive.bzl -index 366dd80..7855a24 100644 ---- a/private/llvm_project_archive.bzl -+++ b/private/llvm_project_archive.bzl -@@ -12,6 +12,7 @@ load( - "update_attrs", - ) - load("//:http_bsdtar_archive.bzl", "download_remote_files") -+load("//3rd_party/llvm-project/x.x/compiler-rt:lse_variants.bzl", "LSE_ATOMIC_VARIANTS") - load(":llvm_project_common.bzl", "LLVM_PROJECT_OVERLAY", "write_llvm_project_files") - - _DEFAULT_OVERLAY_FILES = { -@@ -177,6 +178,19 @@ def _copy_files(rctx, module_root): - fail("Input {} does not exist".format(label)) - rctx.file(path, rctx.read(source, watch = "no"), executable = False) - -+def _write_lse_atomic_sources(rctx): -+ # One copy of lse.S per atomic helper, so the objects get distinct names -+ # without a copy or symlink action each. Only the compiler-rt BUILD file -+ # in overlay_files uses them. -+ content = rctx.read("compiler-rt/lib/builtins/aarch64/lse.S") -+ for pat, size, model in LSE_ATOMIC_VARIANTS: -+ rctx.file( -+ "compiler-rt/lib/builtins/aarch64/lse_{}_{}_{}.S".format(pat, size, model), -+ content, -+ executable = False, -+ legacy_utf8 = False, -+ ) -+ - def _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info): - overrides = {} - if not rctx.attr.sha256 and not rctx.attr.integrity: -@@ -216,6 +230,7 @@ def _llvm_project_archive_impl(rctx): - module_root = _watch_llvm_project_inputs(rctx) - remote_patches_info = _patch(rctx, module_root) - _copy_files(rctx, module_root) -+ _write_lse_atomic_sources(rctx) - write_llvm_project_files(rctx) - - return _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info) diff --git a/families/zig/third_party/rules_dx/llvm.msvc_source_directories.patch b/families/zig/third_party/rules_dx/llvm.msvc_source_directories.patch deleted file mode 100644 index 95a77ef740..0000000000 --- a/families/zig/third_party/rules_dx/llvm.msvc_source_directories.patch +++ /dev/null @@ -1,187 +0,0 @@ -diff --git a/runtimes/msvc/BUILD.bazel b/runtimes/msvc/BUILD.bazel ---- a/runtimes/msvc/BUILD.bazel -+++ b/runtimes/msvc/BUILD.bazel -@@ -1,71 +1,7 @@ --load("@bazel_lib//lib:copy_to_directory.bzl", "copy_to_directory") - load("//:case_insensitive_vfs.bzl", "case_insensitive_vfs_overlay") --load("//:directory.bzl", "directory_info") - - package(default_visibility = ["//visibility:public"]) - --# These archives do not select a CRT mode. Their directives may request other --# support archives or SDK libraries, so expose the complete native closure. --_MSVC_COMMON_SUPPORT_LIBRARIES = [ -- "exe_initialize_mta.lib", -- "iso_stdio_wide_specifiers.lib", -- "legacy_stdio_definitions.lib", -- "legacy_stdio_wide_specifiers.lib", -- "oldnames.lib", --] -- --_MSVC_DYNAMIC_RUNTIME_LIBRARIES = [ -- "msvcprt.lib", -- "msvcrt.lib", -- "vcruntime.lib", --] -- --_MSVC_STATIC_RUNTIME_LIBRARIES = [ -- "libcmt.lib", -- "libcpmt.lib", -- "libvcruntime.lib", --] -- --# Keep LLVM's COM compiler-support dependency separate from the Microsoft STL. --# new.h is already provided by the selected UCRT include tree. --_MSVC_COM_SUPPORT_HEADERS = [ -- "comdef.h", -- "comdefsp.h", -- "comip.h", -- "comutil.h", --] -- --_MSVC_COM_SUPPORT_LIBRARIES = [ -- "comsupp.lib", -- "comsuppw.lib", --] -- --# Keep Layer 1's VCRuntime ABI surface separate from Microsoft STL. These are --# the compiler/exception runtime headers required by clang-cl and libc++; the --# selected C++ standard-library headers still come exclusively from libc++. --_MSVC_VCRUNTIME_HEADERS = [ -- "CodeAnalysis/sourceannotations.h", -- "concurrencysal.h", -- "crtdefs.h", -- "eh.h", -- "ehdata.h", -- "ehdata_forceinclude.h", -- "ehdata_values.h", -- "excpt.h", -- "sal.h", -- "setjmp.h", -- "setjmpex.h", -- "threads.h", -- "vadefs.h", -- "vcruntime.h", -- "vcruntime_exception.h", -- "vcruntime_new.h", -- "vcruntime_new_debug.h", -- "vcruntime_string.h", -- "vcruntime_startup.h", -- "vcruntime_typeinfo.h", --] -- - alias( - name = "msvc_include", - actual = "@msvc_runtime//:msvc_include", -@@ -104,30 +40,26 @@ - actual = "@msvc_runtime//:msvc_lib_x64", - ) - --copy_to_directory( -+# @msvc_runtime copies these subsets when it is fetched, so they are not -+# build actions. -+alias( - name = "msvc_vcruntime_headers_source", -- srcs = [":msvc_include"], -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_VCRUNTIME_HEADERS, -- root_paths = ["**/include"], -+ actual = "@msvc_runtime//:msvc_vcruntime_include", - ) - --directory_info( -+alias( - name = "msvc_vcruntime_headers", -- src = ":msvc_vcruntime_headers_source", -+ actual = "@msvc_runtime//:msvc_vcruntime_include", - ) - --copy_to_directory( -+alias( - name = "msvc_com_support_headers_source", -- srcs = [":msvc_include"], -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_COM_SUPPORT_HEADERS, -- root_paths = ["**/include"], -+ actual = "@msvc_runtime//:msvc_com_support_include", - ) - --directory_info( -+alias( - name = "msvc_com_support_headers", -- src = ":msvc_com_support_headers_source", -+ actual = "@msvc_runtime//:msvc_com_support_include", - ) - - case_insensitive_vfs_overlay( -@@ -150,62 +82,22 @@ - ], - ) - --copy_to_directory( -+alias( - name = "msvc_com_support_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_COM_SUPPORT_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_com_libraries", - ) - --copy_to_directory( -+alias( - name = "msvc_common_support_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_COMMON_SUPPORT_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_common_libraries", - ) - --copy_to_directory( -+alias( - name = "msvc_dynamic_runtime_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_DYNAMIC_RUNTIME_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_dynamic_libraries", - ) - --copy_to_directory( -+alias( - name = "msvc_static_runtime_libraries", -- srcs = select({ -- "//platforms/config:windows_aarch64_msvc": [":msvc_lib_arm64"], -- "//platforms/config:windows_x86_64_msvc": [":msvc_lib_x64"], -- "//conditions:default": [], -- }), -- include_external_repositories = ["**"], -- include_srcs_patterns = _MSVC_STATIC_RUNTIME_LIBRARIES, -- root_paths = [ -- "**/lib/arm64", -- "**/lib/x64", -- ], -+ actual = "@msvc_runtime//:msvc_static_libraries", - ) diff --git a/families/zig/third_party/rules_dx/llvm.stage0_runtime_features.patch b/families/zig/third_party/rules_dx/llvm.stage0_runtime_features.patch deleted file mode 100644 index b4a9edc8db..0000000000 --- a/families/zig/third_party/rules_dx/llvm.stage0_runtime_features.patch +++ /dev/null @@ -1,165 +0,0 @@ -diff -ruN a/tests/stage0_features/BUILD.bazel b/tests/stage0_features/BUILD.bazel ---- a/tests/stage0_features/BUILD.bazel 1970-01-01 01:00:00.000000000 +0100 -+++ b/tests/stage0_features/BUILD.bazel 2026-11-07 13:47:32.681561424 +0100 -@@ -0,0 +1,17 @@ -+load(":stage0_features_test.bzl", "bin_dir_probe", "stage0_bin_dir_probe", "stage0_features_test", "stage_roots") -+ -+bin_dir_probe(name = "probe") -+ -+stage0_bin_dir_probe(name = "stage0_probe") -+ -+stage_roots( -+ name = "roots", -+ bootstrap = ":probe", -+ tags = ["manual"], -+ with_cfg = ":stage0_probe", -+) -+ -+stage0_features_test( -+ name = "stage0_features_test", -+ target_under_test = ":roots", -+) -diff -ruN a/tests/stage0_features/stage0_features_test.bzl b/tests/stage0_features/stage0_features_test.bzl ---- a/tests/stage0_features/stage0_features_test.bzl 1970-01-01 01:00:00.000000000 +0100 -+++ b/tests/stage0_features/stage0_features_test.bzl 2026-11-07 13:47:32.681700032 +0100 -@@ -0,0 +1,54 @@ -+"""Tests that cc_stage0_object and the with_cfg stage0 runtimes share a configuration.""" -+ -+load("@bazel_skylib//lib:unittest.bzl", "analysistest", "asserts") -+load("@with_cfg.bzl", "with_cfg") -+load("//toolchain/runtimes:cc_stage0_object.bzl", "bootstrap_transition") -+load("//toolchain/runtimes:with_cfg_runtimes_common.bzl", "configure_builder_for_runtimes") -+ -+def _bin_dir_probe_impl(ctx): -+ out = ctx.actions.declare_file(ctx.label.name + ".txt") -+ ctx.actions.write(out, "") -+ return [DefaultInfo(files = depset([out]))] -+ -+bin_dir_probe = rule( -+ implementation = _bin_dir_probe_impl, -+) -+ -+stage0_bin_dir_probe, _stage0_bin_dir_probe_internal = configure_builder_for_runtimes( -+ with_cfg(bin_dir_probe), -+ "stage0", -+).build() -+ -+StageRootsInfo = provider( -+ doc = "Output roots of the same probe reached through both stage0 transitions.", -+ fields = ["bootstrap", "with_cfg"], -+) -+ -+def _stage_roots_impl(ctx): -+ return [StageRootsInfo( -+ bootstrap = ctx.file.bootstrap.root.path, -+ with_cfg = ctx.file.with_cfg.root.path, -+ )] -+ -+stage_roots = rule( -+ implementation = _stage_roots_impl, -+ attrs = { -+ "bootstrap": attr.label(allow_single_file = True, cfg = bootstrap_transition), -+ "with_cfg": attr.label(allow_single_file = True), -+ }, -+) -+ -+def _stage0_features_test_impl(ctx): -+ env = analysistest.begin(ctx) -+ roots = analysistest.target_under_test(env)[StageRootsInfo] -+ asserts.equals(env, roots.with_cfg, roots.bootstrap) -+ return analysistest.end(env) -+ -+# cc_stage0_object is reached from runtimes that already set the linkmode, which -+# bootstrap_transition leaves alone. -+stage0_features_test = analysistest.make( -+ _stage0_features_test_impl, -+ config_settings = { -+ str(Label("//runtimes:linkmode")): "static", -+ }, -+) -diff -ruN a/toolchain/runtimes/BUILD.bazel b/toolchain/runtimes/BUILD.bazel ---- a/toolchain/runtimes/BUILD.bazel 2026-11-07 13:47:31.802888290 +0100 -+++ b/toolchain/runtimes/BUILD.bazel 2026-11-07 13:47:31.811194201 +0100 -@@ -324,6 +324,7 @@ - srcs = ["cc_stage0_object.bzl"], - visibility = ["//visibility:public"], - deps = [ -+ "@llvm//toolchain/runtimes:with_cfg_runtimes_common", - "@rules_cc//cc:action_names_bzl", - "@rules_cc//cc:find_cc_toolchain_bzl", - "@rules_cc//cc/common", -diff -ruN a/toolchain/runtimes/cc_stage0_object.bzl b/toolchain/runtimes/cc_stage0_object.bzl ---- a/toolchain/runtimes/cc_stage0_object.bzl 2026-11-07 13:47:31.801872345 +0100 -+++ b/toolchain/runtimes/cc_stage0_object.bzl 2026-11-07 13:47:31.811147655 +0100 -@@ -1,10 +1,18 @@ -+load("@llvm//toolchain/runtimes:with_cfg_runtimes_common.bzl", "RUNTIME_RESET_FEATURES") - load("@rules_cc//cc:action_names.bzl", "ACTION_NAMES") - load("@rules_cc//cc:find_cc_toolchain.bzl", "CC_TOOLCHAIN_TYPE", "find_cc_toolchain", "use_cc_toolchain") - load("@rules_cc//cc/common:cc_common.bzl", "cc_common") - --#TODO(cerisier): use a single shared transition --bootstrap_transition = transition( -- implementation = lambda settings, attr: { -+def _bootstrap_transition_impl(settings, _attr): -+ features = settings["//command_line_option:features"] -+ -+ # Append the reset the same way with_cfg's extend does, so stage0 objects -+ # share a configuration with the other stage0 runtimes. -+ if features[-len(RUNTIME_RESET_FEATURES):] != RUNTIME_RESET_FEATURES: -+ features = features + RUNTIME_RESET_FEATURES -+ -+ return { -+ "//command_line_option:features": features, - # we are compiling runtimes without any kind of other dependencies - "//toolchain:runtime_stage": "stage0", - # Stage0 objects (crtbegin/crtend) are linked into every binary and -@@ -49,9 +57,13 @@ - "//config:host_xray": False, - "//config:host_fuzzer": False, - "//config:host_profile": False, -- }, -- inputs = [], -+ } -+ -+bootstrap_transition = transition( -+ implementation = _bootstrap_transition_impl, -+ inputs = ["//command_line_option:features"], - outputs = [ -+ "//command_line_option:features", - "//toolchain:runtime_stage", - "//command_line_option:copt", - "//command_line_option:cxxopt", -diff -ruN a/toolchain/runtimes/with_cfg_runtimes_common.bzl b/toolchain/runtimes/with_cfg_runtimes_common.bzl ---- a/toolchain/runtimes/with_cfg_runtimes_common.bzl 2026-11-07 13:47:31.802490308 +0100 -+++ b/toolchain/runtimes/with_cfg_runtimes_common.bzl 2026-11-07 13:47:31.811169606 +0100 -@@ -1,3 +1,13 @@ -+# Release policy is expressed through compiler-personality features rather -+# than user compile options. Reset it at the same runtime boundary as the -+# user options: each runtime owns its exception, RTTI, and frame-pointer -+# requirements independently from the final LLVM product. -+RUNTIME_RESET_FEATURES = [ -+ "-no_exceptions", -+ "-no_rtti", -+ "-omit_frame_pointer", -+] -+ - def configure_builder_for_runtimes(builder, runtime_stage, linkmode = "static", sanitizers = False, inherit_asan = False): - # The problem is that compiler-rt and start libs can only be compiled with - # a specific set of flags and compilation mode. It is not safe to let the user -@@ -12,15 +22,7 @@ - builder.set("host_conlyopt", []) - builder.set("host_linkopt", []) - -- # Release policy is expressed through compiler-personality features rather -- # than user compile options. Reset it at the same runtime boundary as the -- # options above: each runtime owns its exception, RTTI, and frame-pointer -- # requirements independently from the final LLVM product. -- builder.extend("features", [ -- "-no_exceptions", -- "-no_rtti", -- "-omit_frame_pointer", -- ]) -+ builder.extend("features", RUNTIME_RESET_FEATURES) - - # We are compiling runtimes without any kind of other dependencies. - builder.set( diff --git a/families/zig/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch b/families/zig/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch deleted file mode 100644 index 3ce2f77756..0000000000 --- a/families/zig/third_party/rules_dx/llvm.unwatched_overlay_inputs.patch +++ /dev/null @@ -1,68 +0,0 @@ -diff -ruN a/private/llvm_project_archive.bzl b/private/llvm_project_archive.bzl ---- a/private/llvm_project_archive.bzl 2026-11-07 03:07:33.986516422 +0100 -+++ b/private/llvm_project_archive.bzl 2026-11-07 03:07:43.390885795 +0100 -@@ -133,14 +133,49 @@ - overlay_prefix.count("/") + 1, - ) - --def _copy_files(rctx): -+# Patches and overlay files under this tree are read as plain paths and the -+# tree is watched once. A path() call per label records one file input each, -+# and Bazel checks those one at a time against the repo contents cache. -+_LLVM_PROJECT_INPUTS = Label("//3rd_party/llvm-project:BUILD.bazel") -+ -+def _watch_llvm_project_inputs(rctx): -+ inputs = rctx.path(_LLVM_PROJECT_INPUTS).dirname -+ rctx.watch_tree(inputs) -+ return inputs.dirname.dirname -+ -+def _input_path(rctx, module_root, label): -+ if label.repo_name == _LLVM_PROJECT_INPUTS.repo_name and (label.package + "/").startswith(_LLVM_PROJECT_INPUTS.package + "/"): -+ return module_root.get_child(label.package, label.name) -+ return rctx.path(label) -+ -+def _native_patch_strip(rctx): -+ attr = rctx.attr -+ if attr.patch_tool or attr.patch_cmds or attr.patch_cmds_win or attr.remote_patches or attr.remote_module_file_urls: -+ return None -+ args = ["-p%s" % attr.patch_strip] + attr.patch_args -+ for arg in args: -+ if not arg.startswith("-p"): -+ return None -+ return int(args[-1][2:]) -+ -+def _patch(rctx, module_root): -+ strip = _native_patch_strip(rctx) -+ if strip == None: -+ return patch(rctx) -+ if rctx.attr.patches: -+ rctx.report_progress("Patching repository") -+ for label in rctx.attr.patches: -+ rctx.patch(_input_path(rctx, module_root, label), strip, watch_patch = "no") -+ return {} -+ -+def _copy_files(rctx, module_root): - files = dict(rctx.attr.overlay_files) - files.update(rctx.attr.files) - for path, label in files.items(): -- source = rctx.path(label) -+ source = _input_path(rctx, module_root, label) - if not source.exists: - fail("Input {} does not exist".format(label)) -- rctx.file(path, rctx.read(source), executable = False) -+ rctx.file(path, rctx.read(source, watch = "no"), executable = False) - - def _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info): - overrides = {} -@@ -178,8 +213,9 @@ - rctx.delete(archive) - - remote_files_info = download_remote_files(rctx) -- remote_patches_info = patch(rctx) -- _copy_files(rctx) -+ module_root = _watch_llvm_project_inputs(rctx) -+ remote_patches_info = _patch(rctx, module_root) -+ _copy_files(rctx, module_root) - write_llvm_project_files(rctx) - - return _update_integrity_attrs(rctx, archive_info, remote_files_info, remote_patches_info) diff --git a/families/zig/third_party/rules_dx/protobuf.no_crate_universe.patch b/families/zig/third_party/rules_dx/protobuf.no_crate_universe.patch deleted file mode 100644 index ddbda76023..0000000000 --- a/families/zig/third_party/rules_dx/protobuf.no_crate_universe.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- a/MODULE.bazel -+++ b/MODULE.bazel -@@ -193,29 +193,6 @@ - versions = ["1.85.0"], - ) - --crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate") --crate.spec( -- package = "googletest", -- version = ">0.0.0", --) --crate.spec( -- package = "linkme", -- version = "0.3.35", --) --crate.spec( -- package = "paste", -- version = ">=1", --) --crate.spec( -- package = "quote", -- version = ">=1", --) --crate.spec( -- package = "syn", -- version = "2", --) --crate.from_specs() --use_repo(crate, crate_index = "crates") - - # Keep this list minimal; these dependencies will be part of the common `maven` install and could affect end-user projects. - PROTOBUF_MAVEN_ARTIFACTS = [ diff --git a/families/zig/third_party/rules_dx/rules_android.bundle_keystore_properties.patch b/families/zig/third_party/rules_dx/rules_android.bundle_keystore_properties.patch deleted file mode 100644 index 1e591f0c29..0000000000 --- a/families/zig/third_party/rules_dx/rules_android.bundle_keystore_properties.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/rules/common.bzl -+++ b/rules/common.bzl -@@ -118,10 +118,15 @@ - - def _create_signer_properties(ctx, oldest_key): - properties = ctx.actions.declare_file("%s/keystore.properties" % ctx.label.name) -- ctx.actions.expand_template( -- template = ctx.file._bundle_keystore_properties, -+ ctx.actions.write( - output = properties, -- substitutions = {"%oldest_key%": oldest_key.short_path}, -+ content = "\n".join([ -+ "ks=" + oldest_key.short_path, -+ "ks-key-alias=androiddebugkey", -+ "ks-pass=pass:android", -+ "key-pass=pass:android", -+ "", -+ ]), - ) - return properties - diff --git a/families/zig/third_party/rules_dx/rules_dart.coverage.patch b/families/zig/third_party/rules_dx/rules_dart.coverage.patch deleted file mode 100644 index a29a09c5ca..0000000000 --- a/families/zig/third_party/rules_dx/rules_dart.coverage.patch +++ /dev/null @@ -1,84 +0,0 @@ -diff -ruN a/dart/private/tools/test_runner.dart b/dart/private/tools/test_runner.dart ---- a/dart/private/tools/test_runner.dart -+++ b/dart/private/tools/test_runner.dart -@@ -146,6 +146,8 @@ - final xmlOutput = env['XML_OUTPUT_FILE']; - final shardStatus = env['TEST_SHARD_STATUS_FILE']; - final report = _join(tmp.path, 'results.json'); -+ final coverageOutput = env['COVERAGE_OUTPUT_FILE']; -+ final coverageDir = File(_join(tmp.path, 'coverage/raw')).parent.path; - - // Touched before the run, as Bazel asks: it is how a test runner says it - // supports sharding at all. -@@ -165,6 +167,7 @@ - // timeout a test states on its own case, and that one is the author's. - '--timeout=${_suiteTimeout(env)}', - '--file-reporter=json:$report', -+ if (coverageOutput != null) '--coverage=$coverageDir', - if (filter != null && filter.isNotEmpty) ...['--name', filter], - if (totalShards != null && shardIndex != null) ...[ - '--total-shards', -@@ -196,6 +199,15 @@ - code = 0; - } - -+ if (coverageOutput != null) { -+ final documents = [ -+ for (final entity in Directory(coverageDir).listSync(recursive: true)) -+ if (entity is File && entity.path.endsWith('.json')) -+ entity.readAsStringSync(), -+ ]; -+ File(coverageOutput).writeAsStringSync(lcovFromCoverage(documents)); -+ } -+ - if (xmlOutput != null) { - final reportFile = File(report); - if (reportFile.existsSync()) { -@@ -207,6 +219,47 @@ - return code; - } - -+/// Converts the VM service coverage `package:test --coverage` writes into LCOV. -+/// -+/// Sources are reported as the VM names them: `org-dartlang-root:///` for -+/// files of the workspace and `package:/` for libraries. The `dart:` -+/// core libraries and the test bootstrap are left out. -+String lcovFromCoverage(List documents) { -+ final hits = >{}; -+ for (final document in documents) { -+ final decoded = jsonDecode(document); -+ if (decoded is! Map) continue; -+ for (final entry in (decoded['coverage'] as List? ?? const [])) { -+ final source = (entry as Map)['source'] as String; -+ final reportable = -+ source.startsWith('org-dartlang-root:///') || -+ source.startsWith('package:'); -+ if (!reportable || source.endsWith('.vm_test.dart')) continue; -+ final lines = hits.putIfAbsent(source, () => {}); -+ final pairs = (entry['hits'] as List).cast(); -+ for (var i = 0; i + 1 < pairs.length; i += 2) { -+ if (pairs[i + 1] > (lines[pairs[i]] ?? -1)) { -+ lines[pairs[i]] = pairs[i + 1]; -+ } -+ } -+ } -+ } -+ final out = StringBuffer(); -+ for (final source in hits.keys.toList()..sort()) { -+ final lines = hits[source]!; -+ final numbers = lines.keys.toList()..sort(); -+ out.writeln('SF:$source'); -+ for (final line in numbers) { -+ out.writeln('DA:$line,${lines[line]}'); -+ } -+ out -+ ..writeln('LF:${numbers.length}') -+ ..writeln('LH:${numbers.where((line) => lines[line]! > 0).length}') -+ ..writeln('end_of_record'); -+ } -+ return out.toString(); -+} -+ - /// Lays out `workspace`'s runfiles under [into] from the lines of a runfiles - /// manifest, each ` `. - /// diff --git a/families/zig/third_party/rules_dx/rules_dart.external_pkgsrcs.patch b/families/zig/third_party/rules_dx/rules_dart.external_pkgsrcs.patch deleted file mode 100644 index 7e0d9a4f49..0000000000 --- a/families/zig/third_party/rules_dx/rules_dart.external_pkgsrcs.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -ruN a/dart/private/source_set.bzl b/dart/private/source_set.bzl ---- a/dart/private/source_set.bzl -+++ b/dart/private/source_set.bzl -@@ -183,11 +183,22 @@ - mangled = p.package_name - for ch in ["/", ":", ".", "+"]: - mangled = mangled.replace(ch, "_") -+ root_paths = [p.lib_root] if p.lib_root else ["."] -+ external_repos = [] -+ if p.lib_root.startswith("../"): -+ # An external package's lib_root is short_path style -+ # (`../repo/pkg`), but copy_to_directory drops external files -+ # unless their repo is listed and matches root_paths against the -+ # repo-relative path (`pkg`). -+ repo, _, rest = p.lib_root[len("../"):].partition("/") -+ root_paths = [rest] if rest else [] -+ external_repos = [repo] - assembled = assemble_source_dir( - ctx, - ctx.label.name + "." + mangled + ".pkgsrcs", - files, -- root_paths = [p.lib_root] if p.lib_root else ["."], -+ root_paths = root_paths, -+ include_external_repositories = external_repos, - ) - - # Only `lib_root` changes. Everything else the record carries — diff --git a/families/zig/third_party/rules_dx/rules_dx.MODULE.bazel b/families/zig/third_party/rules_dx/rules_dx.MODULE.bazel deleted file mode 100644 index bec8122ced..0000000000 --- a/families/zig/third_party/rules_dx/rules_dx.MODULE.bazel +++ /dev/null @@ -1,174 +0,0 @@ -# Generated by dx; do not edit. Regenerate with `tools/dx init --apply`. -# Root-only overrides rules_dx needs; see -# https://github.com/devhusdk/rules_dx/blob/main/patches/README.md - -single_version_override( - module_name = "rules_rust", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_rust.clippy_metadata_inputs.patch", - "//third_party/rules_dx:rules_rust.pipelined_rmeta_path.patch", - "//third_party/rules_dx:rules_rust.crate_universe_root_lookup.patch", - "//third_party/rules_dx:rules_rust.exec_cc_toolchain_env.patch", - "//third_party/rules_dx:rules_rust.msvc_pdb_output.patch", - "//third_party/rules_dx:rules_rust.rust_lld_msvc_libpath.patch", - "//third_party/rules_dx:rules_rust.crate_universe_lazy_host_tools.patch", - "//third_party/rules_dx:rules_rust.cargo_toml_env_vars_flag.patch", - ], - version = "0.75.0", -) - -single_version_override( - module_name = "rules_android", - patch_strip = 1, - patches = ["//third_party/rules_dx:rules_android.bundle_keystore_properties.patch"], - version = "0.8.0", -) - -single_version_override( - module_name = "rules_kotlin", - patch_strip = 1, - patches = ["//third_party/rules_dx:rules_kotlin.windows_coverage_test_suite.patch"], - version = "2.4.21", -) - -single_version_override( - module_name = "rules_dart", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_dart.coverage.patch", - "//third_party/rules_dx:rules_dart.external_pkgsrcs.patch", - ], - version = "0.8.1", -) - -single_version_override( - module_name = "rules_julia", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_julia.package_annotation_version.patch", - "//third_party/rules_dx:rules_julia.package_name.patch", - "//third_party/rules_dx:rules_julia.portable_cpu_target.patch", - "//third_party/rules_dx:rules_julia.template_action_input.patch", - ], - version = "0.8.0", -) - -single_version_override( - module_name = "protobuf", - patch_strip = 1, - patches = ["//third_party/rules_dx:protobuf.no_crate_universe.patch"], - version = "36.2", -) - -single_version_override( - module_name = "rules_python", - patch_strip = 1, - patches = ["//third_party/rules_dx:rules_python.single_import_lib.patch"], - version = "2.4.6", -) - -archive_override( - module_name = "rules_py", - integrity = "sha256-TlCUj7uFZKizo7HzVM2ex//f4wT2PGpf6x/bz7/Hgr0=", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_py.py_cc_toolchain_platform.patch", - "//third_party/rules_dx:rules_py.native_sdist_toolchain_flags.patch", - "//third_party/rules_dx:rules_py.pep517_msvc.patch", - "//third_party/rules_dx:rules_py.venv_bin_files.patch", - "//third_party/rules_dx:rules_py.host_interpreter_windows_arm64.patch", - "//third_party/rules_dx:rules_py.external_repo_pytest_paths.patch", - ], - strip_prefix = "rules_py-2.0.0-alpha.11", - urls = ["https://github.com/aspect-build/rules_py/releases/download/v2.0.0-alpha.11/rules_py-v2.0.0-alpha.11.tar.gz"], -) - -single_version_override( - module_name = "aspect_rules_ts", - patch_strip = 1, - patches = ["//third_party/rules_dx:aspect_rules_ts.typecheck_root_dir.patch"], - version = "3.10.1", -) - -single_version_override( - module_name = "avro-cpp", - patch_strip = 1, - patches = ["//third_party/rules_dx:avro-cpp.iterator.patch"], - version = "1.12.0.bcr.1", -) - -single_version_override( - module_name = "gcc_toolchain", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:gcc_toolchain.sanitizer_spec.patch", - "//third_party/rules_dx:gcc_toolchain.runtime_libs.patch", - "//third_party/rules_dx:gcc_toolchain.target_identity_config.patch", - "//third_party/rules_dx:gcc_toolchain.target_identity_defs.patch", - "//third_party/rules_dx:gcc_toolchain.target_identity_extension.patch", - "//third_party/rules_dx:gcc_toolchain.native_include_layout.patch", - ], - version = "0.13.0", -) - -single_version_override( - module_name = "fmt", - version = "12.2.0.bcr.1", -) - -single_version_override( - module_name = "rules_flutter", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_flutter.missing_font.patch", - "//third_party/rules_dx:rules_flutter.lock_extension.patch", - "//third_party/rules_dx:rules_flutter.registrant_javacopts.patch", - ], - version = "0.0.8", -) - -single_version_override( - module_name = "hermetic_launcher", - patch_strip = 1, - patches = ["//third_party/rules_dx:hermetic_launcher.windows_arm64_toolchains.patch"], - version = "0.0.17", -) - -single_version_override( - module_name = "llvm", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:llvm.libunwind_copy.patch", - "//third_party/rules_dx:llvm.clang_cl_crt_default_lib.patch", - "//third_party/rules_dx:llvm.unwatched_overlay_inputs.patch", - "//third_party/rules_dx:llvm.msvc_source_directories.patch", - "//third_party/rules_dx:llvm.lse_atomic_sources.patch", - "//third_party/rules_dx:llvm.stage0_runtime_features.patch", - "//third_party/rules_dx:llvm.aarch64_outline_atomics.patch", - ], - version = "0.8.26", -) - -single_version_override( - module_name = "windows_support", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:windows_support.host_tools.patch", - "//third_party/rules_dx:windows_support.rules_dx_hosts.patch", - "//third_party/rules_dx:windows_support.hostarm64_packages.patch", - "//third_party/rules_dx:windows_support.dx_msvc_layout.patch", - "//third_party/rules_dx:windows_support.source_directory_headers.patch", - ], - version = "0.4.1", -) - -single_version_override( - module_name = "rules_swift", - patch_strip = 1, - patches = [ - "//third_party/rules_dx:rules_swift.toolchain_sysroot_env.patch", - "//third_party/rules_dx:rules_swift.non_root_toolchain.patch", - ], - version = "4.2.2", -) diff --git a/families/zig/third_party/rules_dx/rules_flutter.lock_extension.patch b/families/zig/third_party/rules_dx/rules_flutter.lock_extension.patch deleted file mode 100644 index bc042b3bd7..0000000000 --- a/families/zig/third_party/rules_dx/rules_flutter.lock_extension.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/flutter/extensions.bzl -+++ b/flutter/extensions.bzl -@@ -262,7 +262,7 @@ - # the full set makes tidy force repos they don't. Letting users maintain - # their own use_repo lists (rules_python does the same) is the right - # tradeoff for an extension with this many optional outputs. -- return module_ctx.extension_metadata(reproducible = True) -+ return module_ctx.extension_metadata(reproducible = False) - - flutter = module_extension( - implementation = _toolchain_extension, diff --git a/families/zig/third_party/rules_dx/rules_flutter.missing_font.patch b/families/zig/third_party/rules_dx/rules_flutter.missing_font.patch deleted file mode 100644 index 447f91a11b..0000000000 --- a/families/zig/third_party/rules_dx/rules_flutter.missing_font.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/flutter/private/flutter_library.bzl b/flutter/private/flutter_library.bzl -index 7eb21be..51e9f12 100644 ---- a/flutter/private/flutter_library.bzl -+++ b/flutter/private/flutter_library.bzl -@@ -57,8 +57,9 @@ def build_pub_contributions(package_name, fonts_json, font_files_dict, pkg_asset - weight = font.get("weight"), - style = font.get("style"), - )) -- if asset_path in path_to_file: -- file_list.append(path_to_file[asset_path]) -+ if asset_path not in path_to_file: -+ fail("fonts_json names font asset \"%s\" but font_files does not provide it" % asset_path) -+ file_list.append(path_to_file[asset_path]) - extra_pub_fonts.append(struct( - package_name = package_name, - family = family, diff --git a/families/zig/third_party/rules_dx/rules_flutter.registrant_javacopts.patch b/families/zig/third_party/rules_dx/rules_flutter.registrant_javacopts.patch deleted file mode 100644 index 0d5a787241..0000000000 --- a/families/zig/third_party/rules_dx/rules_flutter.registrant_javacopts.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- a/flutter/android.bzl -+++ b/flutter/android.bzl -@@ -52,6 +52,7 @@ - load("@bazel_skylib//rules:write_file.bzl", "write_file") - load("@rules_android//android:rules.bzl", _android_binary = "android_binary", _android_library = "android_library") - load("@rules_java//java:java_import.bzl", _java_import = "java_import") -+load("@rules_kotlin//kotlin:jvm.bzl", _kt_javac_options = "kt_javac_options") - load("@rules_kotlin//kotlin:android.bzl", _kt_android_library = "kt_android_library") - load("//flutter/private:constants.bzl", _ANDROID_ABI_FOR_ARCH = "ANDROID_ABI_FOR_ARCH", _ANDROID_MIN_SDK_VERSION = "ANDROID_MIN_SDK_VERSION", _ANDROID_TARGET_SDK_VERSION = "ANDROID_TARGET_SDK_VERSION") - load("//flutter/private:flutter_android_application.bzl", _flutter_android_bundle = "flutter_android_bundle") -@@ -621,10 +622,16 @@ - registrant_deps.append("@%s//android:all_android_plugin_libs" % pub_hub_name) - registrant_deps = registrant_deps + deps - -+ _kt_javac_options( -+ name = "__%s_registrant_javac_opts" % name, -+ x_lint = ["-options"], -+ ) -+ - _kt_android_library( - name = "__%s_registrant" % name, - srcs = ["__%s_registrant_src" % name], - custom_package = "io.flutter.plugins", -+ javac_opts = "__%s_registrant_javac_opts" % name, - tags = tags, - deps = registrant_deps, - ) diff --git a/families/zig/third_party/rules_dx/rules_julia.package_annotation_version.patch b/families/zig/third_party/rules_dx/rules_julia.package_annotation_version.patch deleted file mode 100644 index d6ea02e65e..0000000000 --- a/families/zig/third_party/rules_dx/rules_julia.package_annotation_version.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/julia/pkg/private/pkg.bzl -+++ b/julia/pkg/private/pkg.bzl -@@ -482,7 +482,7 @@ - deps = [dep for dep in all_deps if dep in all_package_names] - - repo_name = "{}__{}".format(prefix, package_name) -- package_annotations = annotations.get(package_name) -+ package_annotations = annotations.get("{}@{}".format(package_name, version)) or annotations.get(package_name) - - artifact_deps = _artifact_repositories( - hub = attrs.name, diff --git a/families/zig/third_party/rules_dx/rules_julia.package_name.patch b/families/zig/third_party/rules_dx/rules_julia.package_name.patch deleted file mode 100644 index 35c6c5b1a0..0000000000 --- a/families/zig/third_party/rules_dx/rules_julia.package_name.patch +++ /dev/null @@ -1,76 +0,0 @@ -diff -ruN a/julia/private/julia.bzl b/julia/private/julia.bzl ---- a/julia/private/julia.bzl -+++ b/julia/private/julia.bzl -@@ -40,6 +40,7 @@ - depot = julia_common.precompile( - ctx, - name = ctx.label.name, -+ package = ctx.attr.package_name or ctx.label.name, - includes = includes, - runfiles = runfiles, - dep_depots = dep_depots, -@@ -51,7 +52,7 @@ - - return [ - JuliaInfo( -- app_name = ctx.label.name, -+ app_name = ctx.attr.package_name or ctx.label.name, - srcs = srcs, - transitive_srcs = transitive_srcs, - include = layout.include, -diff -ruN a/julia/private/julia_common.bzl b/julia/private/julia_common.bzl ---- a/julia/private/julia_common.bzl -+++ b/julia/private/julia_common.bzl -@@ -202,7 +202,7 @@ - - path = "{}/{}".format(workspace_name, ctx.label.package).rstrip("/") - -- entry_name = ctx.label.name + ".jl" -+ entry_name = (ctx.attr.package_name or ctx.label.name) + ".jl" - if "src/" + entry_name in rel_paths: - src_layout = True - entry = rel_paths["src/" + entry_name] -@@ -476,7 +476,7 @@ - - return [ - JuliaInfo( -- app_name = ctx.label.name, -+ app_name = ctx.attr.package_name or ctx.label.name, - srcs = depset(srcs), - transitive_srcs = transitive_srcs, - include = layout.include, -@@ -579,12 +579,13 @@ - **kwargs - ) - --def _precompile(ctx, *, name, includes, runfiles, dep_depots, toolchain_info, artifact_depots = None): -+def _precompile(ctx, *, name, includes, runfiles, dep_depots, toolchain_info, artifact_depots = None, package = None): - """Precompile a Julia package into a depot directory. - - Args: - ctx: Rule context. -- name (str): The package (module) name. -+ name (str): The name used for output files. -+ package (str): The package (module) name; defaults to name. - includes (depset[str]): Include paths of the package and its dependencies. - runfiles (runfiles): Runfiles of the package and its dependencies. - dep_depots (depset[File]): Depots of dependencies. -@@ -609,7 +610,7 @@ - args.add("--config", config) - args.add("--manifest", manifest) - args.add("--depot", depot.path) -- args.add("--package", name) -+ args.add("--package", package or name) - - _run_driver( - ctx, -@@ -626,6 +627,9 @@ - - # Attributes every rule using the build-time drivers needs. - DRIVER_ATTRS = { -+ "package_name": attr.string( -+ doc = "Package name; picks the `.jl` entry. Defaults to the target name.", -+ ), - "_rules_julia_common": attr.label( - default = Label("//julia/private:rules_julia_common.jl"), - allow_single_file = True, diff --git a/families/zig/third_party/rules_dx/rules_julia.portable_cpu_target.patch b/families/zig/third_party/rules_dx/rules_julia.portable_cpu_target.patch deleted file mode 100644 index a17dd37e9f..0000000000 --- a/families/zig/third_party/rules_dx/rules_julia.portable_cpu_target.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -ruN a/julia/private/precompile.jl b/julia/private/precompile.jl ---- a/julia/private/precompile.jl -+++ b/julia/private/precompile.jl -@@ -11,6 +11,15 @@ - - include(joinpath(@__DIR__, "rules_julia_common.jl")) - -+# Package images default to the build host's CPU, which a remote worker with a -+# different CPU rejects. Build for the same portable targets as Julia's own -+# images instead. -+function portable_cpu_target() -+ Sys.ARCH === :x86_64 && return "generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)" -+ Sys.ARCH === :aarch64 && return "generic;cortex-a57;thunderx2t99;carmel,clone_all;apple-m1,base(3);neoverse-512tvb,base(3)" -+ return "generic" -+end -+ - function main() - flags = parse_flags(ARGS; scalars = ["--config", "--manifest", "--depot", "--package"]) - config = require_flag(flags, "--config") -@@ -25,6 +34,8 @@ - - # Julia writes new caches to the first depot. The tree and dependency - # depots follow, then the bundled depots for stdlib caches. -+ ENV["JULIA_CPU_TARGET"] = portable_cpu_target() -+ - copy!(DEPOT_PATH, [depot]) - configure_depots!(tree, depots) - append_bundled_depots!(DEPOT_PATH) diff --git a/families/zig/third_party/rules_dx/rules_julia.template_action_input.patch b/families/zig/third_party/rules_dx/rules_julia.template_action_input.patch deleted file mode 100644 index 92a496a1e0..0000000000 --- a/families/zig/third_party/rules_dx/rules_julia.template_action_input.patch +++ /dev/null @@ -1,60 +0,0 @@ -diff -ruN a/julia/private/julia_common.bzl b/julia/private/julia_common.bzl ---- a/julia/private/julia_common.bzl 2026-11-09 15:12:22.821045394 +0100 -+++ b/julia/private/julia_common.bzl 2026-11-09 15:12:22.830896307 +0100 -@@ -383,19 +383,32 @@ - else: - julia_flags_str = " ".join([_shell_quote(arg) for arg in all_flags]) - -- ctx.actions.expand_template( -- template = template_file, -- output = wrapper, -- substitutions = { -- "{config}": config_rloc, -- "{entrypoint}": entrypoint_rloc, -- "{interpreter}": julia_rloc, -- "{julia_flags}": julia_flags_str, -- "{main}": main_rloc, -- "{sysimage}": sysimage_rloc, -- "{test_compiled_modules}": test_compiled_modules, -- }, -- is_executable = True, -+ # The template is generated by an action, so it must be an action input. -+ # expand_template reads it during analysis, which fails when the template -+ # is not downloaded locally (the default remote download mode). -+ args = ctx.actions.args() -+ args.add("--output", wrapper) -+ args.add("--template", template_file) -+ for old, new in { -+ "{config}": config_rloc, -+ "{entrypoint}": entrypoint_rloc, -+ "{interpreter}": julia_rloc, -+ "{julia_flags}": julia_flags_str, -+ "{main}": main_rloc, -+ "{sysimage}": sysimage_rloc, -+ "{test_compiled_modules}": test_compiled_modules, -+ }.items(): -+ args.add("--substitution") -+ args.add(old) -+ args.add(new) -+ _run_driver( -+ ctx, -+ toolchain_info = toolchain_info, -+ driver = ctx.file._wrapper_maker, -+ arguments = args, -+ inputs = depset([template_file]), -+ outputs = [wrapper], -+ mnemonic = "JuliaWrapper", - ) - - return wrapper -@@ -642,6 +655,10 @@ - default = Label("//julia/private:entrypoint.jl"), - allow_single_file = True, - ), -+ "_wrapper_maker": attr.label( -+ default = Label("//julia/private:binary_wrapper_maker.jl"), -+ allow_single_file = True, -+ ), - "_wrapper_template": attr.label( - default = Label("//julia/private:binary_wrapper.tpl"), - allow_single_file = True, diff --git a/families/zig/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch b/families/zig/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch deleted file mode 100644 index d5c389c999..0000000000 --- a/families/zig/third_party/rules_dx/rules_kotlin.windows_coverage_test_suite.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/kotlin/internal/jvm/impl.bzl -+++ b/kotlin/internal/jvm/impl.bzl -@@ -171,10 +171,6 @@ - jar.short_path.replace("../", "external/") - for jar in rjars.to_list() - ])) -- jvm_flags_list.extend([ -- "-ea", -- "-Dbazel.test_suite=" + main_class, -- ]) - _create_windows_exe_launcher( - ctx, - executable = executable, diff --git a/families/zig/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch b/families/zig/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch deleted file mode 100644 index 1c1a865474..0000000000 --- a/families/zig/third_party/rules_dx/rules_py.external_repo_pytest_paths.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/py/private/pytest_main.py -+++ b/py/private/pytest_main.py -@@ -40,7 +40,14 @@ - target_name = os.environ.get("BAZEL_TARGET_NAME", "") - target = os.environ.get("BAZEL_TARGET", "") - if target: -- package = target.split(":")[0].lstrip("/") -+ repo, sep, label = target.partition("//") -+ if not sep: -+ repo, label = "", target -+ package = label.split(":")[0].lstrip("/") -+ repo = repo.lstrip("@") -+ if repo: -+ # A target in an external repository lives at ..//. -+ package = os.path.join("..", repo, package) - paths_file = os.path.join(package, target_name + ".pytest_paths") - if os.path.isfile(paths_file): - with open(paths_file) as f: diff --git a/families/zig/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch b/families/zig/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch deleted file mode 100644 index e3e9e912d3..0000000000 --- a/families/zig/third_party/rules_dx/rules_py.host_interpreter_windows_arm64.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/MODULE.bazel -+++ b/MODULE.bazel -@@ -73,6 +73,7 @@ - # Individual platform repos — must be visible so the uv extension can - # reference the host interpreter for sdist configure tooling. - "python_3_13_aarch64_apple_darwin", -+ "python_3_13_aarch64_pc_windows_msvc", - "python_3_13_aarch64_unknown_linux_gnu", - "python_3_13_aarch64_unknown_linux_musl", - "python_3_13_i686_pc_windows_msvc", diff --git a/families/zig/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch b/families/zig/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch deleted file mode 100644 index 4c5d28c86e..0000000000 --- a/families/zig/third_party/rules_dx/rules_py.native_sdist_toolchain_flags.patch +++ /dev/null @@ -1,220 +0,0 @@ -diff --git a/uv/private/extension/defs.bzl b/uv/private/extension/defs.bzl ---- a/uv/private/extension/defs.bzl -+++ b/uv/private/extension/defs.bzl -@@ -1055,7 +1055,7 @@ - ), - "env": attr.string_dict( - default = {}, -- doc = "Extra environment variables merged into the build action's `env` dict. Values may reference $(VAR) make-variables sourced from extra `toolchains` listed above. Prefix an execroot-relative path with `$(EXECROOT)/` so it remains valid after the backend changes into the unpacked source tree. Omit CC/CXX/AR/LD/STRIP to use the configured C++ action tools.", -+ doc = "Extra environment variables merged into the build action's `env` dict. Values may reference $(VAR) make-variables sourced from extra `toolchains` listed above. Prefix an execroot-relative path with `$(EXECROOT)/` so it remains valid after the backend changes into the unpacked source tree. Omit CC/CXX/AR/LD/STRIP to use the configured C++ action tools; while CC and CXX are omitted, the toolchain's compile and link flags are passed too.", - ), - "config_settings": attr.string_list_dict( - default = {}, -diff --git a/uv/private/pep517_whl/cc_layer.bzl b/uv/private/pep517_whl/cc_layer.bzl ---- a/uv/private/pep517_whl/cc_layer.bzl -+++ b/uv/private/pep517_whl/cc_layer.bzl -@@ -13,6 +13,9 @@ - - _PATH_FLAG_PREFIXES = ("-I", "-L", "-isysroot", "-iwithsysroot", "-isystem", "-B") - -+# Execroot-relative roots a `-flag=` value may start with. -+_EXECROOT_ROOTS = ("external/", "bazel-out/") -+ - CC_LAYER_ATTRS = { - "_os_linux": attr.label(default = "@platforms//os:linux"), - "_os_macos": attr.label(default = "@platforms//os:macos"), -@@ -41,6 +44,13 @@ - rest = flag[len(pfx):] - if rest and not rest.startswith("/") and "/" in rest: - return pfx + _EXECROOT_MARKER + "/" + rest -+ -+ # `-resource-dir=`, `-fsanitize-ignorelist=`, `-Wl,--opt=` and similar -+ # carry an execroot-relative path after the first `=`. `--sysroot=` is -+ # left to build_helper's _absolutize_sysroot_flags. -+ name, sep, value = flag.partition("=") -+ if sep and name != "--sysroot" and value.startswith(_EXECROOT_ROOTS): -+ return name + sep + _EXECROOT_MARKER + "/" + value - return flag - - def get_target_platform(ctx): -@@ -73,8 +83,9 @@ - def extract_cc_layer(ctx, cc_toolchain): - """Extract CC toolchain tools, flags, and target platform info. - -- Called only in cross-compilation mode. The native path relies on the -- existing _cc_toolchain_inputs_and_tools + backend self-discovery. -+ Called for cross builds and for native builds whose toolchain carries a -+ feature configuration: a hermetic toolchain supplies its libc headers, -+ crt objects and runtime only through these flags. - - Args: - ctx: The rule context. Must include CC_LAYER_ATTRS and -diff --git a/uv/private/pep517_whl/pep517_native_whl.bzl b/uv/private/pep517_whl/pep517_native_whl.bzl ---- a/uv/private/pep517_whl/pep517_native_whl.bzl -+++ b/uv/private/pep517_whl/pep517_native_whl.bzl -@@ -308,10 +308,21 @@ - env[_INFER_CXX_COMPANION] = "1" - - cross_args = [] -- if cross: -- cc_toolchain = cc_toolchain_raw -- if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -- cc_toolchain = cc_toolchain.cc -+ cc_toolchain = cc_toolchain_raw -+ if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -+ cc_toolchain = cc_toolchain.cc -+ -+ # A hermetic C++ toolchain reaches its libc headers, crt objects and -+ # runtime only through its action flags, so native builds need them too. -+ # Native builds keep the backend's self-discovery when `env` replaces the -+ # toolchain's compiler (its flags may not suit another driver) or the -+ # provider has no feature configuration to derive flags from. -+ native_toolchain_flags = ( -+ hasattr(cc_toolchain, "ar_executable") and -+ "CC" not in ctx.attr.env and -+ "CXX" not in ctx.attr.env -+ ) -+ if cross or native_toolchain_flags: - cc_layer = extract_cc_layer(ctx, cc_toolchain) - - # Toolchain flags first, then any flags the package set via `env` -@@ -338,31 +349,34 @@ - if cc_layer.static_runtime_paths: - env["RULES_PY_CXX_STATIC_RUNTIME"] = ":".join(cc_layer.static_runtime_paths) - -- cross_args = [ -- "--cross", -- "--target-os", -- cc_layer.target_os or "", -- "--target-cpu", -- cc_layer.target_cpu or "", -- "--target-libc", -- ctx.attr._platform_libc[BuildSettingInfo].value, -- ] -- -- py_toolchain = ctx.toolchains[PY_TOOLCHAIN] -- if py_toolchain != None: -- runtime = getattr(py_toolchain, "py3_runtime", None) -- if runtime: -- artifacts = _target_python_artifacts(runtime) -- if artifacts.sysconfig: -- extra_inputs.append(depset([artifacts.sysconfig])) -- env["RULES_PY_TARGET_SYSCONFIGDATA"] = artifacts.sysconfig.path -- if artifacts.include_dir: -- extra_inputs.append(depset(artifacts.include_files)) -- env["RULES_PY_TARGET_INCLUDE"] = artifacts.include_dir -- -- host_platform = _derive_python_host_platform(cc_layer.target_os, cc_layer.target_cpu) -- if host_platform: -- env["_PYTHON_HOST_PLATFORM"] = host_platform -+ if not cross: -+ cross_args = ["--toolchain-flags"] -+ else: -+ cross_args = [ -+ "--cross", -+ "--target-os", -+ cc_layer.target_os or "", -+ "--target-cpu", -+ cc_layer.target_cpu or "", -+ "--target-libc", -+ ctx.attr._platform_libc[BuildSettingInfo].value, -+ ] -+ -+ py_toolchain = ctx.toolchains[PY_TOOLCHAIN] -+ if py_toolchain != None: -+ runtime = getattr(py_toolchain, "py3_runtime", None) -+ if runtime: -+ artifacts = _target_python_artifacts(runtime) -+ if artifacts.sysconfig: -+ extra_inputs.append(depset([artifacts.sysconfig])) -+ env["RULES_PY_TARGET_SYSCONFIGDATA"] = artifacts.sysconfig.path -+ if artifacts.include_dir: -+ extra_inputs.append(depset(artifacts.include_files)) -+ env["RULES_PY_TARGET_INCLUDE"] = artifacts.include_dir -+ -+ host_platform = _derive_python_host_platform(cc_layer.target_os, cc_layer.target_cpu) -+ if host_platform: -+ env["_PYTHON_HOST_PLATFORM"] = host_platform - - tool = ctx.attr.tool[DefaultInfo].files_to_run - io_args = ctx.actions.args() -@@ -418,7 +432,8 @@ - "execroot-relative path with " + - "`$(EXECROOT)/` so it remains valid after the backend changes into " + - "the unpacked source tree. Omit CC/CXX/AR/LD/STRIP to use the " + -- "configured C++ action tools.", -+ "configured C++ action tools; while CC and CXX are omitted, " + -+ "the toolchain's compile and link flags are passed too.", - ), - "_platform_libc": attr.label( - default = "//uv/private/constraints/platform:platform_libc", -diff --git a/uv/private/pep517_whl/tools/build_helper.py b/uv/private/pep517_whl/tools/build_helper.py ---- a/uv/private/pep517_whl/tools/build_helper.py -+++ b/uv/private/pep517_whl/tools/build_helper.py -@@ -582,6 +582,7 @@ - cross: bool = False, - target_os: str = "", - target_cpu: str = "", -+ toolchain_flags: bool = False, - ) -> dict[str, str]: - env = dict(os.environ) - if execroot_marker: -@@ -634,8 +635,9 @@ - cxx_path = _local_cxx_companion(env.get("CXX"), cxx_path) - - sysroot = _darwin_sysroot() -+ toolchain_flags = toolchain_flags or cross - -- if cross: -+ if toolchain_flags: - # Toolchain flag strings (from cc_layer.bzl) contain execroot-relative - # sysroots; absolutize while still in the execroot, before the backend - # chdirs into the unpacked sdist. -@@ -650,14 +652,15 @@ - # runtime's: distutils still injects the running interpreter's - # include path, but CFLAGS-supplied -I directories are searched - # first. -- target_include = env.pop("RULES_PY_TARGET_INCLUDE", "") -+ target_include = env.pop("RULES_PY_TARGET_INCLUDE", "") if cross else "" - if target_include: - include_flag = "-I" + _absolutize_path(target_include) - for key in ("CFLAGS", "CXXFLAGS"): - env[key] = (include_flag + " " + env.get(key, "")).strip() - - wrapper_flags = _get_wrapper_flags(env.get("CFLAGS", "")) -- is_darwin_target = target_os == "darwin" -+ # A native build targets the exec host's own OS. -+ is_darwin_target = target_os == "darwin" if cross else _platform.system() == "Darwin" - - # An LLVM-style toolchain (BCR `llvm` module) reaches its crt objects - # and runtime libraries only through the link action's flags; detect -@@ -691,11 +694,12 @@ - env.setdefault("CC", cc) - env.setdefault("CXX", cxx) - -- if cross: -+ if toolchain_flags: - ldshared_flags = env.get("LDSHAREDFLAGS", "") - env["LDSHARED"] = cc + ((" " + ldshared_flags) if ldshared_flags else "") - env["LDCXXSHARED"] = cxx + ((" " + ldshared_flags) if ldshared_flags else "") - -+ if cross: - deployment_target = None - target_sysconfig = env.get("RULES_PY_TARGET_SYSCONFIGDATA") - if target_sysconfig and path.exists(target_sysconfig): -@@ -1135,6 +1139,7 @@ - PARSER.add_argument("--patch", action="append", default=[], dest="patches", help="Patch file to apply (repeatable)") - PARSER.add_argument("--execroot-marker", help="Token in env values to replace with the absolute execroot") - PARSER.add_argument("--cross", action="store_true", help="Cross-compilation mode: target platform != exec platform") -+PARSER.add_argument("--toolchain-flags", action="store_true", help="CFLAGS/CXXFLAGS/LDFLAGS/LDSHAREDFLAGS carry the C++ toolchain's action flags") - PARSER.add_argument("--target-os", default="", help="Target platform OS the wheel must be tagged for (linux, darwin, windows)") - PARSER.add_argument("--target-libc", default="", help="Target platform C library the wheel must link against (glibc, musl, libsystem)") - PARSER.add_argument("--target-cpu", default="", help="Target platform CPU the wheel must be tagged for (x86_64, aarch64, ...)") -@@ -1191,6 +1196,7 @@ - cross=opts.cross, - target_os=opts.target_os, - target_cpu=opts.target_cpu, -+ toolchain_flags=opts.toolchain_flags, - ) - - if _legacy_metadata_conflicts_with_pyproject(t): diff --git a/families/zig/third_party/rules_dx/rules_py.pep517_msvc.patch b/families/zig/third_party/rules_dx/rules_py.pep517_msvc.patch deleted file mode 100644 index 98da8d6002..0000000000 --- a/families/zig/third_party/rules_dx/rules_py.pep517_msvc.patch +++ /dev/null @@ -1,334 +0,0 @@ -diff -ru a/uv/private/pep517_whl/cc_layer.bzl b/uv/private/pep517_whl/cc_layer.bzl ---- a/uv/private/pep517_whl/cc_layer.bzl -+++ b/uv/private/pep517_whl/cc_layer.bzl -@@ -226,8 +226,65 @@ - static_runtime_paths = static_runtime_paths, - ) - -+def _absolutize_msvc_entries(value): -+ """Prefix the execroot-relative entries of a `;` separated Windows path list.""" -+ entries = [] -+ for entry in value.split(";"): -+ if entry and not entry.startswith(("\\", "/")) and entry[1:2] != ":": -+ entry = _EXECROOT_MARKER + "\\" + entry -+ entries.append(entry) -+ return ";".join(entries) -+ -+def extract_msvc_layer(ctx, cc_toolchain): -+ """Extract the PATH, INCLUDE and LIB a cl.exe toolchain sets. -+ -+ cl.exe and link.exe find the Windows SDK and the MSVC headers and -+ libraries through these variables, not through command line flags. -+ -+ Args: -+ ctx: The rule context, with fragments = ["cpp"]. -+ cc_toolchain: The resolved CcToolchainInfo. -+ -+ Returns: -+ struct(path, include, lib) of `;` separated strings whose -+ execroot-relative entries start with the EXECROOT marker. -+ """ -+ feature_configuration = cc_common.configure_features( -+ ctx = ctx, -+ cc_toolchain = cc_toolchain, -+ requested_features = ctx.features, -+ unsupported_features = ctx.disabled_features + _CC_DISABLED_FEATURES, -+ ) -+ compile_env = cc_common.get_environment_variables( -+ feature_configuration = feature_configuration, -+ action_name = ACTION_NAMES.c_compile, -+ variables = cc_common.create_compile_variables( -+ feature_configuration = feature_configuration, -+ cc_toolchain = cc_toolchain, -+ ), -+ ) -+ -+ # LIB is only set on link actions. -+ link_env = cc_common.get_environment_variables( -+ feature_configuration = feature_configuration, -+ action_name = ACTION_NAMES.cpp_link_dynamic_library, -+ variables = cc_common.create_link_variables( -+ cc_toolchain = cc_toolchain, -+ feature_configuration = feature_configuration, -+ is_using_linker = True, -+ is_linking_dynamic_library = True, -+ must_keep_debug = False, -+ ), -+ ) -+ return struct( -+ path = _absolutize_msvc_entries(compile_env.get("PATH", "")), -+ include = _absolutize_msvc_entries(compile_env.get("INCLUDE", "")), -+ lib = _absolutize_msvc_entries(link_env.get("LIB", "")), -+ ) -+ - # Exposed for the unit tests in tests/pep517_whl_test.bzl only. - cc_layer_test_util = struct( - absolutize_flag = _absolutize_flag, -+ absolutize_msvc_entries = _absolutize_msvc_entries, - execroot_marker = _EXECROOT_MARKER, - ) -diff -ru a/uv/private/pep517_whl/pep517_native_whl.bzl b/uv/private/pep517_whl/pep517_native_whl.bzl ---- a/uv/private/pep517_whl/pep517_native_whl.bzl -+++ b/uv/private/pep517_whl/pep517_native_whl.bzl -@@ -10,7 +10,7 @@ - load("@rules_cc//cc/common:cc_common.bzl", "cc_common") - load("//py/private/interpreter:versions.bzl", "PLATFORMS") - load("//py/private/toolchain:types.bzl", "EXEC_TOOLS_TOOLCHAIN", "NATIVE_BUILD_TOOLCHAIN", "PY_TOOLCHAIN") --load(":cc_layer.bzl", "CC_LAYER_ATTRS", "extract_cc_layer") -+load(":cc_layer.bzl", "CC_LAYER_ATTRS", "extract_cc_layer", "extract_msvc_layer") - load( - ":common.bzl", - "PEP517_WHL_ATTRS", -@@ -42,6 +42,9 @@ - _EXECROOT_MARKER = "__RULES_PY_EXECROOT__" - _INFER_CXX_COMPANION = "RULES_PY_INFER_CXX_COMPANION" - -+# CcToolchainInfo.compiler values that cl.exe builds are driven by. -+_MSVC_COMPILERS = ["msvc-cl"] -+ - def _collect_toolchain_inputs_and_vars(ctx): - """Gather files + Make-variable substitutions from `ctx.attr.toolchains`. - -@@ -182,6 +185,29 @@ - include_dir = include_dir, - ) - -+def _windows_python_artifacts(runtime): -+ """Collect the Windows interpreter files an MSVC build compiles and links against. -+ -+ CPython for Windows keeps its headers in `include/` and its import -+ libraries in `libs/`: `Python.h` and `pyconfig.h` for cl.exe and -+ `python3*.lib` for link.exe. -+ """ -+ files = runtime.files.to_list() if runtime and hasattr(runtime, "files") else [] -+ include_dir = None -+ lib_files = [] -+ for f in files: -+ if f.basename == "pyconfig.h" and f.dirname.endswith("/include"): -+ include_dir = f.dirname -+ elif f.extension == "lib" and f.basename.startswith("python3") and f.dirname.endswith("/libs"): -+ lib_files.append(f) -+ include_files = [f for f in files if include_dir and f.path.startswith(include_dir + "/")] -+ return struct( -+ include_files = include_files, -+ include_dir = include_dir, -+ lib_files = lib_files, -+ lib_dir = lib_files[0].dirname if lib_files else None, -+ ) -+ - def _derive_python_host_platform(target_os, target_cpu): - """Derive _PYTHON_HOST_PLATFORM from target platform constraints. - -@@ -283,6 +309,11 @@ - fail("A toolchain listed in `toolchains` exports the reserved `EXECROOT` make-variable.") - known_variables["EXECROOT"] = _EXECROOT_MARKER - -+ cc_toolchain = cc_toolchain_raw -+ if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -+ cc_toolchain = cc_toolchain.cc -+ msvc = getattr(cc_toolchain, "compiler", None) in _MSVC_COMPILERS -+ - cc_files, cc_tools, infer_cxx = _cc_toolchain_inputs_and_tools(ctx) - if cc_files: - extra_inputs.append(cc_files) -@@ -299,18 +330,16 @@ - for k, v in ctx.attr.env.items(): - env[k] = ctx.expand_make_variables("env", v, known_variables) - -+ # cl.exe is found through PATH, and setuptools drives it without CC. - for key, value in cc_tools.items(): -- if key not in ctx.attr.env: -+ if key not in ctx.attr.env and not msvc: - env[key] = value - - env.pop(_INFER_CXX_COMPANION, None) -- if "CXX" not in ctx.attr.env and cc_tools.get("CXX") and infer_cxx: -+ if "CXX" not in ctx.attr.env and cc_tools.get("CXX") and infer_cxx and not msvc: - env[_INFER_CXX_COMPANION] = "1" - - cross_args = [] -- cc_toolchain = cc_toolchain_raw -- if hasattr(cc_toolchain, "cc_provider_in_toolchain") and hasattr(cc_toolchain, "cc"): -- cc_toolchain = cc_toolchain.cc - - # A hermetic C++ toolchain reaches its libc headers, crt objects and - # runtime only through its action flags, so native builds need them too. -@@ -322,7 +351,21 @@ - "CC" not in ctx.attr.env and - "CXX" not in ctx.attr.env - ) -- if cross or native_toolchain_flags: -+ if msvc: -+ if cross: -+ fail("{}: MSVC sdist builds need a Windows execution platform matching the target".format(ctx.label)) -+ msvc_layer = extract_msvc_layer(ctx, cc_toolchain) -+ py_toolchain = ctx.toolchains[PY_TOOLCHAIN] -+ runtime = getattr(py_toolchain, "py3_runtime", None) if py_toolchain != None else None -+ artifacts = _windows_python_artifacts(runtime) -+ if not artifacts.include_dir or not artifacts.lib_dir: -+ fail("{}: the target interpreter has no include/pyconfig.h and libs/python3*.lib to build against".format(ctx.label)) -+ extra_inputs.append(depset(artifacts.include_files + artifacts.lib_files)) -+ env["PATH"] = msvc_layer.path -+ env["INCLUDE"] = ";".join([msvc_layer.include, _EXECROOT_MARKER + "\\" + artifacts.include_dir.replace("/", "\\")]) -+ env["LIB"] = ";".join([msvc_layer.lib, _EXECROOT_MARKER + "\\" + artifacts.lib_dir.replace("/", "\\")]) -+ cross_args = ["--msvc"] -+ elif cross or native_toolchain_flags: - cc_layer = extract_cc_layer(ctx, cc_toolchain) - - # Toolchain flags first, then any flags the package set via `env` -diff -ru a/uv/private/pep517_whl/tools/build_helper.py b/uv/private/pep517_whl/tools/build_helper.py ---- a/uv/private/pep517_whl/tools/build_helper.py -+++ b/uv/private/pep517_whl/tools/build_helper.py -@@ -10,6 +10,7 @@ - - from argparse import ArgumentParser - from collections.abc import Mapping -+import hashlib - import importlib - import os - import platform as _platform -@@ -576,6 +577,25 @@ - return site_dir - - -+def _add_cargo_and_ant(env: dict[str, str], tmpdir: str) -> None: -+ # maturin locates cargo via shutil.which, not $CARGO — without it on -+ # PATH it auto-installs a Rust toolchain (puccinialin), which fails in -+ # the sandbox. This bites native builds too, so it is not cross-gated. -+ cargo_path = env.get("CARGO") -+ if cargo_path: -+ env["PATH"] = pathsep.join([path.dirname(cargo_path), env.get("PATH", defpath)]) -+ -+ # Cargo's default $CARGO_HOME (~/.cargo) is unwritable in the sandbox. -+ cargo_home = path.join(tmpdir, ".cargo_home") -+ makedirs(cargo_home, exist_ok=True) -+ env.setdefault("CARGO_HOME", cargo_home) -+ -+ # CMake's find_program(ANT_EXECUTABLE) (jpype1 et al.) needs ant on PATH. -+ ant_bin_dir = env.pop("RULES_PY_ANT_BIN_DIR", None) -+ if ant_bin_dir: -+ env["PATH"] = pathsep.join([ant_bin_dir, env.get("PATH", defpath)]) -+ -+ - def _compiler_env( - tmpdir: str, - execroot_marker: str | None = None, -@@ -583,6 +603,7 @@ - target_os: str = "", - target_cpu: str = "", - toolchain_flags: bool = False, -+ msvc: bool = False, - ) -> dict[str, str]: - env = dict(os.environ) - if execroot_marker: -@@ -629,6 +650,21 @@ - # helper still runs there; bare tool names deliberately remain on PATH. - _absolutize_tool_paths(env) - -+ if msvc: -+ # setuptools finds cl.exe through PATH, INCLUDE and LIB from the -+ # toolchain, and only when it is told no Visual Studio is needed. -+ for key in ("CC", "CXX", "CPP", "AR", "LDSHARED", "LDCXXSHARED"): -+ env.pop(key, None) -+ env["DISTUTILS_USE_SDK"] = "1" -+ env["MSSdk"] = "1" -+ _add_cargo_and_ant(env, tmpdir) -+ if len(sys.executable) >= 250: -+ # CreateProcess rejects a venv interpreter under the deep runfiles -+ # tree; run the short base interpreter against the venv packages. -+ env["PYTHONPATH"] = pathsep.join(entry for entry in sys.path if entry) -+ sys.executable = sys._base_executable -+ return env -+ - cc_path = _resolve_compiler_path(env, "CC", "cc") - cxx_path = _resolve_compiler_path(env, "CXX", "c++") - if env.pop("RULES_PY_INFER_CXX_COMPANION", None) == "1": -@@ -756,22 +792,7 @@ - ]: - _override_tool(env, key, wrapper) - -- # maturin locates cargo via shutil.which, not $CARGO — without it on -- # PATH it auto-installs a Rust toolchain (puccinialin), which fails in -- # the sandbox. This bites native builds too, so it is not cross-gated. -- cargo_path = env.get("CARGO") -- if cargo_path: -- env["PATH"] = pathsep.join([path.dirname(cargo_path), env.get("PATH", defpath)]) -- -- # Cargo's default $CARGO_HOME (~/.cargo) is unwritable in the sandbox. -- cargo_home = path.join(tmpdir, ".cargo_home") -- makedirs(cargo_home, exist_ok=True) -- env.setdefault("CARGO_HOME", cargo_home) -- -- # CMake's find_program(ANT_EXECUTABLE) (jpype1 et al.) needs ant on PATH. -- ant_bin_dir = env.pop("RULES_PY_ANT_BIN_DIR", None) -- if ant_bin_dir: -- env["PATH"] = pathsep.join([ant_bin_dir, env.get("PATH", defpath)]) -+ _add_cargo_and_ant(env, tmpdir) - - return env - -@@ -1140,10 +1161,32 @@ - PARSER.add_argument("--execroot-marker", help="Token in env values to replace with the absolute execroot") - PARSER.add_argument("--cross", action="store_true", help="Cross-compilation mode: target platform != exec platform") - PARSER.add_argument("--toolchain-flags", action="store_true", help="CFLAGS/CXXFLAGS/LDFLAGS/LDSHAREDFLAGS carry the C++ toolchain's action flags") -+PARSER.add_argument("--msvc", action="store_true", help="cl.exe build: the environment carries PATH, INCLUDE and LIB, and no GNU-style compiler variables are set") - PARSER.add_argument("--target-os", default="", help="Target platform OS the wheel must be tagged for (linux, darwin, windows)") - PARSER.add_argument("--target-libc", default="", help="Target platform C library the wheel must link against (glibc, musl, libsystem)") - PARSER.add_argument("--target-cpu", default="", help="Target platform CPU the wheel must be tagged for (x86_64, aarch64, ...)") - -+def _msvc_worktree_root(output: str) -> str: -+ # link.exe cannot open paths past MAX_PATH, and the default worktree under -+ # a deep output_base pushes the .exp file over it (LNK1104). Unpack into a -+ # short root that is fixed per output. It is not a declared Bazel output; -+ # that is fine because Windows actions run without a sandbox. -+ digest = hashlib.sha256(path.abspath(output).encode()).hexdigest()[:10] -+ return path.join(os.getcwd(), "_pep517", digest) -+ -+ -+def _shorten_bin_dirs(env: dict[str, str], short_root: str) -> None: -+ # CreateProcess cannot start an executable past MAX_PATH, and the -+ # whl_install bin/ dirs deep in the runfiles tree hold maturin.exe and -+ # friends (WinError 206). Copy them under the short root instead. -+ entries = env.get("PATH", "").split(pathsep) -+ for i, entry in enumerate(entries): -+ if entry.endswith("actual_install.install" + os.sep + "bin") and path.isdir(entry): -+ entries[i] = path.join(short_root, "bin", str(i)) -+ shutil.copytree(entry, entries[i]) -+ env["PATH"] = pathsep.join(entries) -+ -+ - def main() -> None: - opts, _ = PARSER.parse_known_args() - -@@ -1152,6 +1195,11 @@ - makedirs(tmp_root, exist_ok=False) - - t = path.join(tmp_root, "worktree") -+ msvc_root = None -+ if opts.msvc: -+ msvc_root = _msvc_worktree_root(opts.output) -+ shutil.rmtree(msvc_root, ignore_errors=True) -+ t = path.join(msvc_root, "w") - - shutil.unpack_archive(opts.srcarchive, t) - -@@ -1197,7 +1245,10 @@ - target_os=opts.target_os, - target_cpu=opts.target_cpu, - toolchain_flags=opts.toolchain_flags, -+ msvc=opts.msvc, - ) -+ if msvc_root: -+ _shorten_bin_dirs(build_env, msvc_root) - - if _legacy_metadata_conflicts_with_pyproject(t): - print( -@@ -1306,6 +1357,8 @@ - exit(1) - - os.replace(path.join(outdir, inventory[0]), path.abspath(opts.output)) -+ if msvc_root: -+ shutil.rmtree(msvc_root, ignore_errors=True) - - - if __name__ == "__main__": diff --git a/families/zig/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch b/families/zig/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch deleted file mode 100644 index d558c1111f..0000000000 --- a/families/zig/third_party/rules_dx/rules_py.py_cc_toolchain_platform.patch +++ /dev/null @@ -1,635 +0,0 @@ -diff --git a/py/private/interpreter/repository.bzl b/py/private/interpreter/repository.bzl ---- a/py/private/interpreter/repository.bzl -+++ b/py/private/interpreter/repository.bzl -@@ -43,8 +43,19 @@ def _python_interpreter_impl(rctx): - if "linux" in platform: - rctx.delete("share/terminfo") - -+ if is_windows: -+ sys_platform = "win32" -+ elif is_macos: -+ sys_platform = "darwin" -+ else: -+ sys_platform = "linux" -+ platform_machine = "aarch64" if platform.startswith(("aarch64", "arm64")) else "x86_64" -+ - rctx.file("BUILD.bazel", content = _build_file_content( - abi_flags = rctx.attr.abi_flags, -+ sys_platform = sys_platform, -+ platform_machine = platform_machine, -+ libc = "musl" if "musl" in platform else "", - major = major, - minor = minor, - micro = micro, -@@ -92,7 +103,7 @@ filegroup( - - return "\n".join(lines), all_excludes - --def _build_file_content(major, minor, micro, python_bin, is_macos, is_windows, abi_flags, releaselevel, serial): -+def _build_file_content(major, minor, micro, python_bin, is_macos, is_windows, abi_flags, releaselevel, serial, sys_platform, platform_machine, libc): - """Generate the full BUILD.bazel content for an interpreter repo.""" - - # A free-threaded build's standard library is lib/python3.14t, not -@@ -276,9 +287,14 @@ py_cc_toolchain( - name = "py_cc_toolchain", - headers = ":python_headers", - {headers_abi3_attr}{libs_attr} python_version = "{major}.{minor}", --) -+ sys_platform = "{sys_platform}", -+ platform_machine = "{platform_machine}", -+{libc_attr}) - """.format( - abi_flags = abi_flags, -+ libc_attr = " libc = \"{}\",\n".format(libc) if libc else "", -+ platform_machine = platform_machine, -+ sys_platform = sys_platform, - abi3_header_target = abi3_header_target, - header_interface_deps = repr(header_interface_deps), - headers_abi3_attr = headers_abi3_attr, -diff --git a/py/private/interpreter/repository.bzl.orig b/py/private/interpreter/repository.bzl.orig -new file mode 100644 ---- /dev/null -+++ b/py/private/interpreter/repository.bzl.orig -@@ -0,0 +1,582 @@ -+"""Repository rules for Python interpreter toolchains.""" -+ -+load(":exclude_feature.bzl", "INTERPRETER_FEATURES") -+ -+_PYTHON_VERSION_FLAG = "@rules_py//py/private/interpreter:python_version" -+_RPY_VERSION_FLAG = "@rules_python//python/config_settings:python_version" -+_FREETHREADING_FLAG = "@rules_py//py/private/interpreter:freethreaded" -+_EXCLUDE_FEATURE_FLAG = "@rules_py//py/private/interpreter:exclude_feature" -+ -+def _python_interpreter_impl(rctx): -+ """Downloads and extracts a Python interpreter from PBS.""" -+ url = rctx.attr.url -+ platform = rctx.attr.platform -+ -+ python_version = rctx.attr.python_version -+ sha256 = rctx.attr.sha256 -+ strip_prefix = rctx.attr.strip_prefix -+ rctx.download_and_extract( -+ url = [url], -+ sha256 = sha256, -+ stripPrefix = strip_prefix, -+ ) -+ -+ # Determine the Python binary path -+ is_macos = "apple-darwin" in platform -+ is_windows = "windows" in platform -+ python_bin = "python.exe" if is_windows else "bin/python3" -+ version_parts = python_version.split(".") -+ major = version_parts[0] -+ minor = version_parts[1] -+ micro = version_parts[2] if len(version_parts) > 2 else "0" -+ releaselevel = "final" -+ serial = "0" -+ for marker, level in [("rc", "candidate"), ("b", "beta"), ("a", "alpha")]: -+ marker_index = micro.find(marker) -+ if marker_index >= 0: -+ serial = micro[marker_index + len(marker):] or "0" -+ micro = micro[:marker_index] or "0" -+ releaselevel = level -+ break -+ -+ # Delete terminfo symlink loops on newer PBS releases (linux only) -+ if "linux" in platform: -+ rctx.delete("share/terminfo") -+ -+ rctx.file("BUILD.bazel", content = _build_file_content( -+ abi_flags = rctx.attr.abi_flags, -+ major = major, -+ minor = minor, -+ micro = micro, -+ python_bin = python_bin, -+ is_macos = is_macos, -+ is_windows = is_windows, -+ releaselevel = releaselevel, -+ serial = serial, -+ )) -+ -+ return rctx.repo_metadata(reproducible = True) -+ -+def _feature_filegroups(stdlib, is_windows): -+ """Generate per-feature filegroup targets and config_settings. -+ -+ Returns a tuple of (feature_targets_str, all_feature_exclude_patterns). -+ The exclude patterns are used to carve out feature files from the core filegroup. -+ """ -+ if is_windows: -+ return "", [] -+ -+ lines = [] -+ all_excludes = [] -+ -+ for feature_name, feature_info in INTERPRETER_FEATURES.items(): -+ patterns = [ -+ p.format(stdlib = stdlib) -+ for p in feature_info["include"] -+ ] -+ all_excludes.extend(patterns) -+ -+ lines.append("""\ -+config_setting( -+ name = "_exclude_{feature}", -+ flag_values = {{"{flag}": "{feature}"}}, -+) -+""".format(feature = feature_name, flag = _EXCLUDE_FEATURE_FLAG)) -+ -+ lines.append("""\ -+filegroup( -+ name = "_feature_{feature}", -+ srcs = glob({patterns}, exclude = ["**/__pycache__/*.pyc*"], allow_empty = True), -+) -+""".format(feature = feature_name, patterns = repr(patterns))) -+ -+ return "\n".join(lines), all_excludes -+ -+def _build_file_content(major, minor, micro, python_bin, is_macos, is_windows, abi_flags, releaselevel, serial): -+ """Generate the full BUILD.bazel content for an interpreter repo.""" -+ -+ # A free-threaded build's standard library is lib/python3.14t, not -+ # lib/python3.14. -+ stdlib = "lib/python{}.{}{}".format(major, minor, "t" if "t" in abi_flags else "") -+ feature_targets, feature_excludes = _feature_filegroups(stdlib, is_windows) -+ -+ include_dirs = ["include"] -+ if not is_windows: -+ include_dirs.append("include/python{}.{}{}".format(major, minor, abi_flags)) -+ -+ library_targets = "" -+ header_interface_deps = [] -+ abi3_header_target = "" -+ headers_abi3_attr = "" -+ libs_attr = "" -+ -+ # Unlike POSIX, Windows extensions must link a Python import library: -+ # https://docs.python.org/3/extending/windows.html#differences-between-unix-and-windows -+ # -+ # Free-threaded CPython 3.13 rejects the regular stable ABI: -+ # https://github.com/python/cpython/blob/v3.13.5/Include/Python.h#L53-L56 -+ if is_windows: -+ # Windows extensions link an import library. Regular stable-ABI -+ # extensions use python3.lib. -+ # https://docs.python.org/3.13/c-api/stable.html#stable-application-binary-interface -+ library_targets = """\ -+cc_import( -+ name = "interface", -+ interface_library = "libs/python{major}{minor}{abi_flags}.lib", -+ system_provided = True, -+ visibility = ["//visibility:private"], -+) -+""".format( -+ abi_flags = abi_flags, -+ major = major, -+ minor = minor, -+ ) -+ libs_attr = " libs = \":interface\",\n" -+ header_interface_deps = [":interface"] -+ if abi_flags == "": -+ library_targets += """ -+cc_import( -+ name = "abi3_interface", -+ interface_library = "libs/python3.lib", -+ system_provided = True, -+ visibility = ["//visibility:private"], -+) -+""" -+ abi3_header_target = """\ -+cc_library( -+ name = "python_headers_abi3", -+ hdrs = [":includes"], -+ includes = {include_dirs}, -+ visibility = ["//visibility:private"], -+ deps = [":abi3_interface"], -+) -+""".format(include_dirs = repr(include_dirs)) -+ headers_abi3_attr = " headers_abi3 = \":python_headers_abi3\",\n" -+ else: -+ # rules_python exposes this target through current_py_cc_libs for -+ # embedding consumers. Keep it separate from python_headers so Python -+ # extension modules do not acquire a libpython dependency. -+ # https://rules-python.readthedocs.io/en/latest/toolchains.html#consuming-python-c-headers-and-libraries -+ if is_macos: -+ libpython_srcs = ["lib/libpython{}.{}{}.dylib".format(major, minor, abi_flags)] -+ else: -+ libpython_srcs = [ -+ "lib/libpython{}.{}{}.so".format(major, minor, abi_flags), -+ "lib/libpython{}.{}{}.so.1.0".format(major, minor, abi_flags), -+ ] -+ library_targets = """\ -+cc_library( -+ name = "libpython", -+ srcs = {libpython_srcs}, -+ visibility = ["//visibility:private"], -+) -+""".format(libpython_srcs = repr(libpython_srcs)) -+ libs_attr = " libs = \":libpython\",\n" -+ if abi_flags == "": -+ headers_abi3_attr = " headers_abi3 = \":python_headers\",\n" -+ -+ venv_dlls_target = "" -+ venv_dlls_attr = "" -+ if is_windows: -+ # The DLLs that `python -m venv --symlinks` links beside a venv's -+ # interpreter on Windows. -+ venv_dlls_target = """\ -+filegroup( -+ name = "venv_dlls", -+ srcs = glob(["python*.dll", "vcruntime*.dll"]), -+ visibility = ["//visibility:private"], -+) -+ -+""" -+ venv_dlls_attr = " venv_dlls = [\":venv_dlls\"],\n" -+ core_include = '["**/*.py", "**/*.pyd", "**/*.dll", "**/*.exe", "include/**", "Lib/**"]' -+ core_exclude = '["Lib/**/test/**", "Lib/**/tests/**", "**/__pycache__/*.pyc*"]' -+ else: -+ core_include = '["bin/**", "lib/**"]' -+ core_exclude = repr( -+ [ -+ "lib/**/*.a", -+ stdlib + "/**/test/**", -+ stdlib + "/**/tests/**", -+ "**/__pycache__/*.pyc*", -+ ] + -+ feature_excludes, -+ ) -+ -+ # Build the select() expressions for optional features -+ feature_selects = "" -+ if not is_windows: -+ for feature_name in INTERPRETER_FEATURES.keys(): -+ feature_selects += """\ -+ + select({{ -+ ":_exclude_{feature}": [], -+ "//conditions:default": [":_feature_{feature}"], -+ }}) -+""".format(feature = feature_name) -+ -+ return """\ -+load("@rules_cc//cc:cc_import.bzl", "cc_import") -+load("@rules_cc//cc:cc_library.bzl", "cc_library") -+load("@rules_py//py/private/interpreter:runtime.bzl", "py_runtime_toolchain") -+load("@rules_python//python/cc:py_cc_toolchain.bzl", "py_cc_toolchain") -+ -+package(default_visibility = ["//visibility:public"]) -+ -+# --- Optional interpreter features --- -+ -+{feature_targets} -+ -+# --- Core + optional filegroups --- -+ -+filegroup( -+ name = "_core", -+ srcs = glob( -+ include = {core_include}, -+ exclude = {core_exclude}, -+ ), -+) -+ -+filegroup( -+ name = "files", -+ srcs = [":_core"] -+{feature_selects} , -+) -+ -+# --- Python C toolchain --- -+ -+{library_targets}filegroup( -+ name = "includes", -+ srcs = glob(["include/**/*.h"], allow_empty = False), -+ visibility = ["//visibility:private"], -+) -+ -+{abi3_header_target}cc_library( -+ name = "python_headers", -+ hdrs = [":includes"], -+ includes = {include_dirs}, -+ visibility = ["//visibility:private"], -+ deps = {header_interface_deps}, -+) -+ -+{venv_dlls_target}py_runtime_toolchain( -+ name = "runtime", -+ abi_flags = "{abi_flags}", -+ files = [":files"], -+ interpreter = "{python_bin}", -+ interpreter_version_info = {{ -+ "major": "{major}", -+ "minor": "{minor}", -+ "micro": "{micro}", -+ "releaselevel": "{releaselevel}", -+ "serial": "{serial}", -+ }}, -+{venv_dlls_attr}) -+ -+py_cc_toolchain( -+ name = "py_cc_toolchain", -+ headers = ":python_headers", -+{headers_abi3_attr}{libs_attr} python_version = "{major}.{minor}", -+) -+""".format( -+ abi_flags = abi_flags, -+ abi3_header_target = abi3_header_target, -+ header_interface_deps = repr(header_interface_deps), -+ headers_abi3_attr = headers_abi3_attr, -+ include_dirs = repr(include_dirs), -+ library_targets = library_targets, -+ libs_attr = libs_attr, -+ python_bin = python_bin, -+ major = major, -+ minor = minor, -+ micro = micro, -+ releaselevel = releaselevel, -+ serial = serial, -+ feature_targets = feature_targets, -+ feature_selects = feature_selects, -+ core_include = core_include, -+ core_exclude = core_exclude, -+ venv_dlls_target = venv_dlls_target, -+ venv_dlls_attr = venv_dlls_attr, -+ ) -+ -+python_interpreter = repository_rule( -+ implementation = _python_interpreter_impl, -+ attrs = { -+ "abi_flags": attr.string(mandatory = True), -+ "platform": attr.string(mandatory = True), -+ "python_version": attr.string(default = ""), -+ "sha256": attr.string(default = ""), -+ "strip_prefix": attr.string(default = "python"), -+ "url": attr.string(default = ""), -+ }, -+) -+ -+def _python_interpreter_unavailable_impl(rctx): -+ rctx.file("BUILD.bazel", content = "fail({})\n".format(repr(rctx.attr.message))) -+ return rctx.repo_metadata(reproducible = True) -+ -+# Stub for version/platform/mode combos with no usable PBS asset. The extension -+# must generate every repo name regardless of build_config so use_repo() -+# imports stay valid. The repo fetches cleanly (eager fetchers like -+# `bazel fetch --all` and `bazel vendor` must not break); referencing any -+# target in it fails at load time with the message. -+python_interpreter_unavailable = repository_rule( -+ implementation = _python_interpreter_unavailable_impl, -+ attrs = { -+ "message": attr.string(mandatory = True), -+ }, -+) -+ -+def _platform_setting_name(flag, value): -+ """Generate a unique config_setting name for a flag/value pair.""" -+ -+ # Extract the last path component of the flag label as a readable prefix, -+ # e.g. "@rules_py//uv/private/constraints/platform:platform_libc" -+ # -> "platform_libc_glibc" -+ name = flag.split(":")[-1] if ":" in flag else flag.split("/")[-1] -+ return "{}_is_{}".format(name, value) -+ -+_EXEC_TOOLS_TOOLCHAIN_TYPE = "@rules_py//py/private/toolchain:exec_tools_toolchain_type" -+ -+def _exec_toolchain(name, exec_compatible_with, toolchain, toolchain_type, target_settings = None): -+ """A toolchain() selected by exec platform, optionally gated on target settings.""" -+ settings = "" if target_settings == None else " target_settings = {},\n".format(target_settings) -+ return """toolchain( -+ name = "{name}", -+ exec_compatible_with = {exec_compatible_with}, -+{settings} toolchain = "{toolchain}", -+ toolchain_type = "{toolchain_type}", -+) -+""".format( -+ name = name, -+ exec_compatible_with = exec_compatible_with, -+ settings = settings, -+ toolchain = toolchain, -+ toolchain_type = toolchain_type, -+ ) -+ -+def _note_fallback(fallbacks, info, exec_compatible_with): -+ """Keep the platform's highest provisioned version for the ungated fallback entry.""" -+ version_key = tuple([int(part) for part in info["python_version"].split(".")]) -+ prior = fallbacks.get(repr(exec_compatible_with)) -+ if prior == None or version_key > prior[0]: -+ fallbacks[repr(exec_compatible_with)] = (version_key, info["name"], info["repo"], exec_compatible_with) -+ -+def _fallback_toolchains(fallbacks, suffix, target, toolchain_type): -+ """Ungated entries; the `zz_` prefix sorts them after every gated one under lexicographic registration.""" -+ return [ -+ "\n" + _exec_toolchain( -+ "zz_{}_{}_fallback".format(name, suffix), -+ constraints, -+ "@{}//:{}".format(repo, target), -+ toolchain_type, -+ ) -+ for _, name, repo, constraints in fallbacks.values() -+ ] -+ -+def _version_setting_name(major_minor): -+ """Generate config_setting name for a Python version.""" -+ return "python_version_is_" + major_minor.replace(".", "_") -+ -+def _freethreaded_setting_name(value): -+ """Generate config_setting name for the freethreaded flag.""" -+ return "freethreaded_is_" + ("true" if value else "false") -+ -+def _python_toolchains_impl(rctx): -+ """Creates toolchain() registrations pointing to interpreter repos.""" -+ content = [ -+ 'load("@bazel_skylib//lib:selects.bzl", "selects")', -+ 'load("@rules_py//py/private/interpreter:current_py_toolchain.bzl", "current_py_toolchain")', -+ 'package(default_visibility = ["//visibility:public"])', -+ ] -+ -+ # First pass: collect all unique flag/value pairs and version/freethreaded -+ # combos so we generate each config_setting exactly once. -+ seen_settings = {} # name -> (flag, value) -+ seen_versions = set() # major_minor -+ seen_freethreaded = set() -+ toolchain_infos = [] -+ -+ for entry in rctx.attr.toolchains: -+ info = json.decode(entry) -+ platform_settings = info.get("platform_target_settings", {}) -+ setting_names = [] -+ for flag, value in platform_settings.items(): -+ name = _platform_setting_name(flag, value) -+ if name not in seen_settings: -+ seen_settings[name] = (flag, value) -+ setting_names.append(name) -+ -+ # Track version/freethreaded for hub-local config_settings -+ python_version = info["python_version"] -+ seen_versions.add(python_version) -+ seen_freethreaded.add(info.get("freethreaded", False)) -+ -+ toolchain_infos.append((info, setting_names)) -+ -+ # Emit hub-local version config_settings so toolchain resolution doesn't -+ # need to fetch individual interpreter repos. -+ content.append(""" -+# Each python_version_is_* group matches on our own version flag, with -+# rules_python's flag as a fallback: the fallback selects only when our own -+# flag is unset, so setting our flag always wins and rpy's default can't -+# shadow it.""") -+ for major_minor in seen_versions: -+ group_name = _version_setting_name(major_minor) -+ content.append(""" -+config_setting( -+ name = "_{group}_our_major_minor", -+ flag_values = {{"{our_flag}": "{major_minor}"}}, -+) -+ -+config_setting( -+ name = "_{group}_rpy_fallback", -+ flag_values = {{ -+ "{our_flag}": "", -+ "{rpy_flag}": "{major_minor}", -+ }}, -+) -+ -+selects.config_setting_group( -+ name = "{group}", -+ match_any = [ -+ ":_{group}_our_major_minor", -+ ":_{group}_rpy_fallback", -+ ], -+) -+""".format( -+ group = group_name, -+ major_minor = major_minor, -+ our_flag = _PYTHON_VERSION_FLAG, -+ rpy_flag = _RPY_VERSION_FLAG, -+ )) -+ -+ # Emit hub-local freethreaded config_settings -+ for value in seen_freethreaded: -+ name = _freethreaded_setting_name(value) -+ content.append(""" -+config_setting( -+ name = "{name}", -+ flag_values = {{"{flag}": "{value}"}}, -+) -+""".format( -+ name = name, -+ flag = _FREETHREADING_FLAG, -+ value = "true" if value else "false", -+ )) -+ -+ # Emit config_settings for platform target settings -+ for name, (flag, value) in seen_settings.items(): -+ content.append(""" -+config_setting( -+ name = "{name}", -+ flag_values = {{"{flag}": "{value}"}}, -+) -+""".format(name = name, flag = flag, value = value)) -+ -+ # Bazel resolves each toolchain type independently. Give the runtime and C -+ # registrations identical compatibility predicates so each PBS entry -+ # offers a matching pair: https://github.com/aspect-build/rules_py/issues/1095 -+ # -+ # Second pass: emit toolchain() registrations. -+ content.append(""" -+# The Python interpreter toolchains have no exec_compatible_with: the -+# interpreter runs on the TARGET platform (inside the virtualenv), not on the -+# exec host. Setting exec_compatible_with = platform_constraints would prevent -+# a toolchain from being selected during cross-compilation (e.g. building an -+# arm64 image on an amd64 host), because the exec platform (amd64) would not -+# satisfy the arm64 exec constraint. The target_compatible_with constraint is -+# sufficient to pick the right interpreter for the target. -+# -+# The *_exec_tools toolchains are instead selected by exec platform (not -+# target platform) so that build actions using the interpreter (e.g. -+# compileall) get a runnable binary on the build host regardless of the target -+# platform being built for. Version-gated so the exec interpreter follows the -+# version flags.""") -+ exec_tools_fallbacks = {} # repr(exec_compatible_with) -> (version tuple, name, repo, constraints) -+ for info, platform_setting_names in toolchain_infos: -+ extra_config_settings = info.get("config_settings", []) -+ extra_target_compatible = info.get("target_compatible_with", []) -+ extra_exec_compatible = info.get("exec_compatible_with", []) -+ -+ version_setting = ":" + _version_setting_name(info["python_version"]) -+ freethreaded_setting = ":" + _freethreaded_setting_name(info.get("freethreaded", False)) -+ -+ target_settings = [ -+ version_setting, -+ freethreaded_setting, -+ ] + [":" + name for name in platform_setting_names] + extra_config_settings -+ -+ target_compatible_with = info["compatible_with"] + extra_target_compatible -+ exec_compatible_with = info["compatible_with"] + extra_exec_compatible -+ -+ content.append(""" -+toolchain( -+ name = "{name}", -+ target_compatible_with = {target_compatible_with}, -+ target_settings = {target_settings}, -+ toolchain = "@{repo}//:runtime", -+ toolchain_type = "@bazel_tools//tools/python:toolchain_type", -+) -+ -+toolchain( -+ name = "{name}_py_cc", -+ target_compatible_with = {target_compatible_with}, -+ target_settings = {target_settings}, -+ toolchain = "@{repo}//:py_cc_toolchain", -+ toolchain_type = "@rules_python//python/cc:toolchain_type", -+) -+""".format( -+ name = info["name"], -+ repo = info["repo"], -+ target_compatible_with = target_compatible_with, -+ target_settings = target_settings, -+ )) -+ -+ if info["register_exec_tools"]: -+ # Also gated on the freethreaded flag so exec-tools consumers get -+ # an interpreter ABI-matching the target runtime; consumers that -+ # only need *a* runnable interpreter are caught by the ungated -+ # zz_ fallback. -+ content.append(_exec_toolchain( -+ info["name"] + "_exec_tools", -+ exec_compatible_with, -+ "@{}//:runtime".format(info["repo"]), -+ _EXEC_TOOLS_TOOLCHAIN_TYPE, -+ target_settings = [version_setting, freethreaded_setting], -+ )) -+ _note_fallback(exec_tools_fallbacks, info, exec_compatible_with) -+ -+ # Ungated exec-tools fallbacks: build actions only need *a* runnable host -+ # interpreter, so configurations matching no version-gated entry (e.g. the -+ # version flags at defaults not provisioned by this hub) fall back to the -+ # platform's highest provisioned version. -+ content.extend(_fallback_toolchains(exec_tools_fallbacks, "exec_tools", "runtime", _EXEC_TOOLS_TOOLCHAIN_TYPE)) -+ -+ content.append(""" -+exports_files( -+ ["BUILD.bazel"], -+ visibility = ["//visibility:public"], -+) -+ -+current_py_toolchain( -+ name = "current_py_toolchain", -+) -+""") -+ -+ rctx.file("BUILD.bazel", content = "\n".join(content)) -+ -+ return rctx.repo_metadata(reproducible = True) -+ -+python_toolchains = repository_rule( -+ implementation = _python_toolchains_impl, -+ attrs = { -+ "toolchains": attr.string_list(), -+ }, -+) -+ -+# Exposed for unit tests only. -+repository_testlib = struct( -+ build_file_content = _build_file_content, -+ feature_filegroups = _feature_filegroups, -+) diff --git a/families/zig/third_party/rules_dx/rules_py.venv_bin_files.patch b/families/zig/third_party/rules_dx/rules_py.venv_bin_files.patch deleted file mode 100644 index d2a9feabf7..0000000000 --- a/families/zig/third_party/rules_dx/rules_py.venv_bin_files.patch +++ /dev/null @@ -1,106 +0,0 @@ -diff -ru a/py/private/interpreter/runtime.bzl b/py/private/interpreter/runtime.bzl ---- a/py/private/interpreter/runtime.bzl -+++ b/py/private/interpreter/runtime.bzl -@@ -32,6 +32,7 @@ - # https://github.com/python/cpython/blob/v3.15.0a5/Python/sysmodule.c#L3570-L3576 - pyc_tag = "cpython-{}{}".format(int(version_info["major"]), int(version_info["minor"])), - supports_build_time_venv = True, -+ venv_bin_files = ctx.files.venv_dlls, - python_version = "PY3", - # rules_python's own public-for-implicit-deps template files — label - # references, not .bzl loads. -diff -ru a/py/private/py_venv/toolchains_resolver.bzl b/py/private/py_venv/toolchains_resolver.bzl ---- a/py/private/py_venv/toolchains_resolver.bzl -+++ b/py/private/py_venv/toolchains_resolver.bzl -@@ -160,9 +160,9 @@ - the directory it was started from, so ``bin/`` gets both. - - Returns: -- dict of ``bin/``-relative name to symlink ``target_path``. -+ dict of ``bin/``-relative name to the file it links to. - """ -- links = {"python.exe": "python"} -+ links = {"python.exe": py_toolchain.python} - dlls = py_toolchain.venv_dlls - - # Toolchains not generated by rules_py don't provide `venv_dlls`. -@@ -175,10 +175,7 @@ - if not dlls: - dlls = _interpreter_dir_dlls(py_toolchain) - for dll in dlls: -- links[dll.basename] = "{}/{}".format( -- _relative_up(3 + package_depth), -- to_rlocation_path(ctx, dll), -- ) -+ links[dll.basename] = dll - return links - - def resolve_venv_toolchain(ctx, *, py_toolchain, is_windows, venv_name): -diff -ru a/py/private/py_venv/venv.bzl b/py/private/py_venv/venv.bzl ---- a/py/private/py_venv/venv.bzl -+++ b/py/private/py_venv/venv.bzl -@@ -371,31 +371,43 @@ - # absolute target bakes in the build-host execroot path that does not - # exist inside an OCI container, leaving a dangling symlink. The - # target path itself is computed by resolve_venv_toolchain. -- bin_python = ctx.actions.declare_symlink("{}/bin/python".format(venv_name)) -- ctx.actions.symlink( -- output = bin_python, -- target_path = tc.bin_python_target_path, -- ) -- declared.append(bin_python) -- -- # Versioned python symlinks (python3, python3.., and -- # python3..t for freethreaded) all point at the sibling -- # `python`; names resolved by resolve_venv_toolchain. -- for versioned_name in tc.versioned_python_names: -- sym = ctx.actions.declare_symlink("{}/bin/{}".format(venv_name, versioned_name)) -+ # -+ # On Windows Bazel builds the runfiles tree's symlink from where the -+ # output lives, not from the runfiles tree, so a relative target through -+ # the runfiles root dangles. There the `bin/` links are file symlinks to -+ # the interpreter and its DLLs instead. -+ if is_windows: -+ bin_python = ctx.actions.declare_file("{}/bin/python".format(venv_name)) - ctx.actions.symlink( -- output = sym, -- target_path = "python", -+ output = bin_python, -+ target_file = py_toolchain.python, - ) -- declared.append(sym) -- -- for name, target_path in tc.windows_bin_links.items(): -- sym = ctx.actions.declare_symlink("{}/bin/{}".format(venv_name, name)) -+ declared.append(bin_python) -+ windows_links = dict(tc.windows_bin_links) -+ for versioned_name in tc.versioned_python_names: -+ windows_links[versioned_name] = py_toolchain.python -+ for name, target in windows_links.items(): -+ sym = ctx.actions.declare_file("{}/bin/{}".format(venv_name, name)) -+ ctx.actions.symlink( -+ output = sym, -+ target_file = target, -+ ) -+ declared.append(sym) -+ else: -+ bin_python = ctx.actions.declare_symlink("{}/bin/python".format(venv_name)) - ctx.actions.symlink( -- output = sym, -- target_path = target_path, -+ output = bin_python, -+ target_path = tc.bin_python_target_path, - ) -- declared.append(sym) -+ declared.append(bin_python) -+ -+ for versioned_name in tc.versioned_python_names: -+ sym = ctx.actions.declare_symlink("{}/bin/{}".format(venv_name, versioned_name)) -+ ctx.actions.symlink( -+ output = sym, -+ target_path = "python", -+ ) -+ declared.append(sym) - - bin_activate = None - if venv_activate_tmpl != None: diff --git a/families/zig/third_party/rules_dx/rules_python.single_import_lib.patch b/families/zig/third_party/rules_dx/rules_python.single_import_lib.patch deleted file mode 100644 index abaef2eae8..0000000000 --- a/families/zig/third_party/rules_dx/rules_python.single_import_lib.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff --git a/python/private/cc/py_extension_macro.bzl b/python/private/cc/py_extension_macro.bzl ---- a/python/private/cc/py_extension_macro.bzl -+++ b/python/private/cc/py_extension_macro.bzl -@@ -154,6 +154,7 @@ - # from CcInfo in py_cc_toolchain because system_provided=True in cc_import leaves DefaultInfo empty. - py_extension_libs( - name = win_libs_name, -+ py_limited_api = bool(py_limited_api), - tags = ["manual"], - visibility = ["//visibility:private"], - ) -diff --git a/python/private/cc/py_extension_rule.bzl b/python/private/cc/py_extension_rule.bzl ---- a/python/private/cc/py_extension_rule.bzl -+++ b/python/private/cc/py_extension_rule.bzl -@@ -124,10 +124,19 @@ - elif lib.dynamic_library: - files.append(lib.dynamic_library) - link_files = [f for f in files if not f.path.endswith(".dll")] -+ -+ # Link.exe and lld-link get all the files as one argument, so keep one: -+ # the stable ABI library for limited API modules, else the versioned one. -+ abi3_files = [f for f in link_files if f.basename in ("python3.lib", "python3t.lib")] -+ if ctx.attr.py_limited_api: -+ link_files = abi3_files or link_files -+ else: -+ link_files = [f for f in link_files if f not in abi3_files] or link_files - return [DefaultInfo(files = depset(link_files))] - - py_extension_libs = rule( - implementation = _py_extension_libs_impl, -+ attrs = {"py_limited_api": attr.bool()}, - toolchains = [PY_CC_TOOLCHAIN_TYPE], - doc = """\ - Private internal helper rule for extracting Windows C/C++ library files from toolchain. diff --git a/families/zig/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch b/families/zig/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch deleted file mode 100644 index c0bf17dc69..0000000000 --- a/families/zig/third_party/rules_dx/rules_rust.cargo_toml_env_vars_flag.patch +++ /dev/null @@ -1,103 +0,0 @@ -diff --git a/cargo/private/BUILD.bazel b/cargo/private/BUILD.bazel ---- a/cargo/private/BUILD.bazel -+++ b/cargo/private/BUILD.bazel -@@ -16,6 +16,20 @@ - visibility = ["//visibility:public"], - ) - -+config_setting( -+ name = "cargo_toml_env_vars_disabled", -+ flag_values = {"//cargo/settings:cargo_toml_env_vars": "False"}, -+) -+ -+alias( -+ name = "cargo_toml_variable_extractor", -+ actual = select({ -+ ":cargo_toml_env_vars_disabled": ":no_binary", -+ "//conditions:default": "//cargo/private/cargo_toml_variable_extractor", -+ }), -+ visibility = ["//visibility:public"], -+) -+ - copy_file( - name = "no_ar", - src = ":no_binary", -diff --git a/cargo/private/cargo_toml_env_vars.bzl b/cargo/private/cargo_toml_env_vars.bzl ---- a/cargo/private/cargo_toml_env_vars.bzl -+++ b/cargo/private/cargo_toml_env_vars.bzl -@@ -1,8 +1,16 @@ - """The `cargo_toml_env_vars` rule is used to retrieve the env vars that Cargo would set, based on the contents of a Cargo.toml file.""" - -+load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo") -+ - def _cargo_toml_env_vars_impl(ctx): - out = ctx.actions.declare_file(ctx.label.name + ".env") - -+ if not ctx.attr._enabled[BuildSettingInfo].value: -+ ctx.actions.write(out, "") -+ return [ -+ DefaultInfo(files = depset([out]), runfiles = ctx.runfiles([out])), -+ ] -+ - inputs = [ctx.file.src] - args = ctx.actions.args() - args.add(out) -@@ -36,10 +44,13 @@ - allow_single_file = True, - doc = "Workspace Cargo.toml file from which values may be inherited", - ), -+ "_enabled": attr.label( -+ default = Label("//cargo/settings:cargo_toml_env_vars"), -+ ), - "_cargo_toml_variable_extractor": attr.label( - allow_single_file = True, - executable = True, -- default = Label("//cargo/private/cargo_toml_variable_extractor"), -+ default = Label("//cargo/private:cargo_toml_variable_extractor"), - cfg = "exec", - ), - }, -diff --git a/cargo/settings/BUILD.bazel b/cargo/settings/BUILD.bazel ---- a/cargo/settings/BUILD.bazel -+++ b/cargo/settings/BUILD.bazel -@@ -2,6 +2,7 @@ - load( - ":settings.bzl", - "cargo_manifest_dir_filename_suffixes_to_retain", -+ "cargo_toml_env_vars", - "debug_std_streams_output_group", - "emit_build_script_warnings", - "experimental_symlink_execroot", -@@ -25,6 +26,8 @@ - - cargo_manifest_dir_filename_suffixes_to_retain() - -+cargo_toml_env_vars() -+ - debug_std_streams_output_group() - - experimental_symlink_execroot() -diff --git a/cargo/settings/settings.bzl b/cargo/settings/settings.bzl ---- a/cargo/settings/settings.bzl -+++ b/cargo/settings/settings.bzl -@@ -35,6 +35,20 @@ - build_setting_default = False, - ) - -+def cargo_toml_env_vars(): -+ """A flag which controls whether `cargo_toml_env_vars` targets run the \ -+ `cargo_toml_variable_extractor`. -+ -+ When disabled, they write an empty env file, so the extractor and the crates \ -+ it is built from are never fetched. Rustc actions still get `CARGO_PKG_NAME` \ -+ and `CARGO_PKG_VERSION*`, but not the values read from `Cargo.toml`. -+ """ -+ bool_flag( -+ name = "cargo_toml_env_vars", -+ scope = "universal", -+ build_setting_default = True, -+ ) -+ - def use_default_shell_env(): - """A flag which controls the global default of `ctx.actions.run.use_default_shell_env` for `cargo_build_script` targets. - """ diff --git a/families/zig/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch b/families/zig/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch deleted file mode 100644 index e5cff2c1d4..0000000000 --- a/families/zig/third_party/rules_dx/rules_rust.clippy_metadata_inputs.patch +++ /dev/null @@ -1,146 +0,0 @@ -diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -728,32 +728,36 @@ - ambiguous_libs[old_short_path] = symlink_for_ambiguous_lib(actions, toolchain, crate_info, visited_libs[name]) - ambiguous_libs[artifact.short_path] = symlink_for_ambiguous_lib(actions, toolchain, crate_info, artifact) - - visited_libs[name] = artifact - return ambiguous_libs - --def _depend_on_metadata(crate_info, force_depend_on_objects): -+def _depend_on_metadata(crate_info, force_depend_on_objects, metadata_only = False): - """Determines if we can depend on metadata for this crate. - - By default (when pipelining is disabled or when the crate type needs to link against - objects) we depend on the set of object files (.rlib). - When pipelining is enabled and the crate type supports depending on metadata, - we depend on metadata files only (.rmeta). - In some rare cases, even if both of those conditions are true, we still want to - depend on objects. This is what force_depend_on_objects is. - - Args: - crate_info (CrateInfo): The Crate to determine this for. - force_depend_on_objects (bool): if set we will not depend on metadata. -+ metadata_only (bool): if set the action only emits metadata, so it depends on metadata for any crate type. - - Returns: - Whether we can depend on metadata for this crate. - """ - if force_depend_on_objects: - return False - -+ if metadata_only: -+ return True -+ - return crate_info.type in ("rlib", "lib") - - def collect_inputs( - ctx, - file, - files, -@@ -764,12 +768,13 @@ - crate_info, - dep_info, - build_info, - lint_files, - stamp = False, - force_depend_on_objects = False, -+ metadata_only = False, - experimental_use_cc_common_link = False, - include_linker_inputs = False, - include_link_flags = True): - """Gather's the inputs and required input information for a rustc action - - Args: -@@ -784,12 +789,13 @@ - crate_info (CrateInfo): The Crate information of the crate to process build scripts for. - dep_info (DepInfo): The target Crate's dependency information. - build_info (BuildInfo): The target Crate's build settings. - lint_files (list): List of files with rustc args for the Crate's lint settings. - stamp (bool, optional): Whether or not workspace status stamping is enabled. For more details see - https://docs.bazel.build/versions/main/user-manual.html#flag--stamp -+ metadata_only (bool, optional): Depend on dependency metadata (`.rmeta`) for any crate type, for actions that only emit metadata. - force_depend_on_objects (bool, optional): Forces dependencies of this rule to be objects rather than - metadata, even for libraries. This is used in rustdoc tests. - experimental_use_cc_common_link (bool, optional): Whether rules_rust uses cc_common.link to link - rust binaries. - include_linker_inputs (bool, optional): Whether to include linker inputs in transitive dependencies. - include_link_flags (bool, optional): Whether to include flags like `-l` that instruct the linker to search for a library. -@@ -844,13 +850,13 @@ - # Compute linkstamps. Use the inputs of the binary as inputs to the - # linkstamp action to ensure linkstamps are rebuilt whenever binary inputs - # change. - linkstamp_outs = [] - - transitive_crate_outputs = dep_info.transitive_crate_outputs -- if _depend_on_metadata(crate_info, force_depend_on_objects): -+ if _depend_on_metadata(crate_info, force_depend_on_objects, metadata_only): - transitive_crate_outputs = dep_info.transitive_metadata_outputs - - nolinkstamp_compile_direct_inputs = [] - if build_info: - if build_info.rustc_env: - nolinkstamp_compile_direct_inputs.append(build_info.rustc_env) -@@ -1065,12 +1071,13 @@ - include_link_flags = True, - stamp = False, - remap_path_prefix = ".", - use_json_output = False, - build_metadata = False, - force_depend_on_objects = False, -+ metadata_only = False, - skip_expanding_rustc_env = False, - require_explicit_unstable_features = False, - error_format = None, - allowed_unstable_rust_features = None, - link_std_dylib = False, - bin_link_flags = None): -@@ -1137,12 +1144,13 @@ - https://docs.bazel.build/versions/main/user-manual.html#flag--stamp - remap_path_prefix (str, optional): A value used to remap `${pwd}`, `${exec_root}`, and `${output_base}` to. - If set to None, no remapping will be applied. On macOS, also adds `-oso_prefix` to strip absolute paths - from N_OSO linker entries. - use_json_output (bool): Have rustc emit json and process_wrapper parse json messages to output rendered output. - build_metadata (bool): Generate CLI arguments for building *only* .rmeta files. This requires use_json_output. -+ metadata_only (bool): Depend on dependency metadata (`.rmeta`) for any crate type, for actions that only emit metadata. - force_depend_on_objects (bool): Force using `.rlib` object files instead of metadata (`.rmeta`) files even if they are available. - skip_expanding_rustc_env (bool): Whether to skip expanding CrateInfo.rustc_env_attr - require_explicit_unstable_features (bool): Whether to require all unstable features to be explicitly opted in to using `-Zallow-features=...`. - error_format (str, optional): Error format to pass to the `--error-format` command line argument. If set to None, uses the "_error_format" entry in `attr`. - allowed_unstable_rust_features (list, optional): List of unstable Rust language features allowed for this target. - link_std_dylib (bool): Whether to dynamically link the Rust standard library using `--prefer-dynamic`. -@@ -1496,13 +1504,13 @@ - - # On macOS, set the dylib install name to @rpath/ so that - # consumers find it via RPATH rather than the exec-root build path. - if crate_info.type == "dylib" and toolchain.target_os in ["macos", "darwin"]: - rustc_flags.add("--codegen=link-arg=-Wl,-install_name,@rpath/" + crate_info.output.basename) - -- use_metadata = _depend_on_metadata(crate_info, force_depend_on_objects) -+ use_metadata = _depend_on_metadata(crate_info, force_depend_on_objects, metadata_only) - - # These always need to be added, even if not linking this crate. - add_crate_link_flags(rustc_flags, dep_info, force_all_deps_direct, use_metadata) - - needs_extern_proc_macro_flag = _is_proc_macro(crate_info) and crate_info.edition != "2015" - if needs_extern_proc_macro_flag: -diff --git a/rust/private/clippy.bzl b/rust/private/clippy.bzl ---- a/rust/private/clippy.bzl -+++ b/rust/private/clippy.bzl -@@ -162,6 +162,7 @@ - dep_info, - build_info, - lint_files, -+ metadata_only = True, - ) - - if clippy_diagnostics_file: -@@ -170,6 +171,7 @@ - crate_info = rust_common.create_crate_info(**crate_info_dict) - - args, env = construct_arguments( -+ metadata_only = True, - ctx = ctx, - attr = ctx.rule.attr, - file = ctx.file, diff --git a/families/zig/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch b/families/zig/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch deleted file mode 100644 index 98ff4c4367..0000000000 --- a/families/zig/third_party/rules_dx/rules_rust.crate_universe_lazy_host_tools.patch +++ /dev/null @@ -1,128 +0,0 @@ -diff --git a/crate_universe/extensions.bzl b/crate_universe/extensions.bzl -index 29208c4..596240c 100644 ---- a/crate_universe/extensions.bzl -+++ b/crate_universe/extensions.bzl -@@ -380,6 +380,8 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - load( - "//crate_universe/private:common_utils.bzl", -+ "REPIN_ALLOWLIST_ENV_VAR", -+ "REPIN_ENV_VARS", - "new_cargo_bazel_fn", - "sanitize_label_injections", - ) -@@ -412,6 +414,8 @@ load("//crate_universe/private:urls.bzl", "CARGO_BAZEL_SHA256S", "CARGO_BAZEL_UR - load("//rust/platform:triple.bzl", "get_host_triple") - load("//rust/platform:triple_mappings.bzl", "system_to_binary_ext") - -+CARGO_BAZEL_DIGEST_CHECK = "CARGO_BAZEL_DIGEST_CHECK" -+ - _OPT_BOOL_VALUES = { - "auto": None, - "off": False, -@@ -543,7 +547,8 @@ def _generate_hub_and_spokes( - is_root, - cargo_lockfile = None, - manifests = {}, -- packages = {}): -+ packages = {}, -+ trust_lockfile = False): - """Generates repositories for the transitive closure of crates defined by manifests and packages. - - Args: -@@ -623,6 +628,8 @@ def _generate_hub_and_spokes( - "must ship a `lockfile = ...` because repinning is not " + - "supported across module boundaries.").format(cfg.name)) - repin = False -+ elif trust_lockfile: -+ repin = False - else: - repin = not lockfile or determine_repin( - repository_ctx = module_ctx, -@@ -867,6 +874,26 @@ def _get_generator(module_ctx, host_triple): - module_ctx.download(**download_kwargs) - return output - -+def _trust_lockfile(module_ctx, cfg, is_root): -+ """Whether to render from `cfg.lockfile` without its digest check, so cargo and rustc are not fetched. -+ -+ A repin or `CARGO_BAZEL_DIGEST_CHECK=1` still checks the digest. Without the check a stale -+ lockfile shows up as missing crates rather than as an "out of date" error. -+ """ -+ if not cfg.lockfile: -+ return False -+ if not is_root: -+ return True -+ if module_ctx.getenv(CARGO_BAZEL_DIGEST_CHECK): -+ return False -+ for var in REPIN_ENV_VARS: -+ value = module_ctx.getenv(var) -+ if value != None and value.lower() not in ["false", "no", "0", "off"]: -+ allowlist = module_ctx.getenv(REPIN_ALLOWLIST_ENV_VAR) -+ if allowlist == None or cfg.name in allowlist.split(","): -+ return False -+ return True -+ - def _get_host_cargo_rustc(module_ctx, host_triple, host_tools_repo): - """A helper function to get the path to the host cargo and rustc binaries. - -@@ -1160,7 +1187,10 @@ def _crate_impl(module_ctx): - if hasattr(cfg, "manifests"): - for m in cfg.manifests: - module_ctx.watch(m) -- cargo_path, rustc_path = _get_host_cargo_rustc(module_ctx, host_triple, cfg.host_tools) -+ trust_lockfile = _trust_lockfile(module_ctx, cfg, mod.is_root) -+ cargo_path, rustc_path = None, None -+ if not trust_lockfile: -+ cargo_path, rustc_path = _get_host_cargo_rustc(module_ctx, host_triple, cfg.host_tools) - cargo_bazel_fn = new_cargo_bazel_fn( - repository_ctx = module_ctx, - cargo_bazel_path = generator, -@@ -1215,6 +1245,7 @@ def _crate_impl(module_ctx): - skip_cargo_lockfile_overwrite = cfg.skip_cargo_lockfile_overwrite, - strip_internal_dependencies_from_cargo_lockfile = cfg.strip_internal_dependencies_from_cargo_lockfile, - is_root = mod.is_root, -+ trust_lockfile = trust_lockfile, - ) - - # Watch cfg.lockfile AFTER generation. The generator may modify it during -@@ -1666,6 +1697,7 @@ Environment Variables: - - | variable | usage | - | --- | --- | -+| `CARGO_BAZEL_DIGEST_CHECK` | Check a `lockfile` against its inputs even when no repin is requested. Without it, `cargo` and `rustc` are only fetched to repin or when there is no `lockfile`. | - | `CARGO_BAZEL_GENERATOR_SHA256` | The sha256 checksum of the file located at `CARGO_BAZEL_GENERATOR_URL` | - | `CARGO_BAZEL_GENERATOR_URL` | The URL of a cargo-bazel binary. This variable takes precedence over attributes and can use `file://` for local paths | - | `CARGO_BAZEL_ISOLATED` | An authoritative flag as to whether or not the `CARGO_HOME` environment variable should be isolated from the host configuration | -diff --git a/crate_universe/private/common_utils.bzl b/crate_universe/private/common_utils.bzl -index 4411ff3..a812caa 100644 ---- a/crate_universe/private/common_utils.bzl -+++ b/crate_universe/private/common_utils.bzl -@@ -91,20 +91,15 @@ def new_cargo_bazel_fn( - # start of a module extension, thus triggering any restarts as early as - # possible (since module_ctx.path triggers restarts). - def _execute(args, env = {}, allow_fail = False): -+ tool_args = [] -+ tool_env = {} -+ if cargo_path: -+ tool_args = ["--cargo", cargo_path, "--rustc", rustc_path] -+ tool_env = {"CARGO": str(cargo_path), "RUSTC": str(rustc_path)} - return execute( - repository_ctx, -- args = [ -- cargo_bazel_path, -- ] + args + [ -- "--cargo", -- cargo_path, -- "--rustc", -- rustc_path, -- ], -- env = { -- "CARGO": str(cargo_path), -- "RUSTC": str(rustc_path), -- } | cargo_environ(repository_ctx, isolated = isolated) | env, -+ args = [cargo_bazel_path] + args + tool_args, -+ env = tool_env | cargo_environ(repository_ctx, isolated = isolated) | env, - allow_fail = allow_fail, - quiet = quiet, - ) diff --git a/families/zig/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch b/families/zig/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch deleted file mode 100644 index 91e7f30271..0000000000 --- a/families/zig/third_party/rules_dx/rules_rust.crate_universe_root_lookup.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/crate_universe/extensions.bzl -+++ b/crate_universe/extensions.bzl -@@ -634,8 +634,12 @@ - ) - - # The workspace root when one is explicitly provided. -- # buildifier: disable=canonical-repository -- nonhermetic_root_bazel_workspace_dir = module_ctx.path(Label("@@//:MODULE.bazel")).dirname -+ if is_root: -+ # buildifier: disable=canonical-repository -+ nonhermetic_root_bazel_workspace_dir = module_ctx.path(Label("@@//:MODULE.bazel")).dirname -+ else: -+ # Non-root modules never repin, and the pinned generator only uses this to filter watched paths. -+ nonhermetic_root_bazel_workspace_dir = tag_path - - # If re-pinning is enabled, gather additional inputs for the generator - kwargs = dict() diff --git a/families/zig/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch b/families/zig/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch deleted file mode 100644 index bf34b294d3..0000000000 --- a/families/zig/third_party/rules_dx/rules_rust.exec_cc_toolchain_env.patch +++ /dev/null @@ -1,85 +0,0 @@ ---- a/cargo/private/cargo_build_script.bzl -+++ b/cargo/private/cargo_build_script.bzl -@@ -100,6 +100,10 @@ - ) - return cc_c_args, cc_cxx_args, cc_env - -+def _pwd_tool(path): -+ """Makes an execroot-relative tool path absolute at run time; the runner expands ${pwd}.""" -+ return "${pwd}/" + path if _should_prefix_pwd(path) else path -+ - # These get replaced with the non-hermetic values magically, and result in - # absolute paths, so they shouldn't have PWD prefixed. - # https://github.com/bazelbuild/apple_support/blob/20913e2a9ad4a00a1849a464b856d04b5cd3bdcb/lib/apple_support.bzl#L174-L198 -@@ -569,6 +573,60 @@ - # that doing so is more likely to hurt than help. If you need to change - # ARFLAGS, make changes to cc-rs. - -+ # cc-rs reads HOST_* for code built for the host and TARGET_* for the -+ # target. Without them it falls back to an ambient `cc` when the exec -+ # and target platforms differ. When HOST == TARGET cc-rs adds HOST_*FLAGS -+ # on top of CFLAGS, so there HOST_* name the target tools and the flags -+ # stay empty: two toolchains' include dirs break `#include_next` (#8681). -+ cross = toolchain.target_flag_value != toolchain.exec_triple.str -+ if cross: -+ exec_cc_toolchain = ctx.attr._exec_cc_toolchain[cc_common.CcToolchainInfo] -+ exec_feature_configuration = cc_common.configure_features( -+ ctx = ctx, -+ cc_toolchain = exec_cc_toolchain, -+ requested_features = ctx.features, -+ unsupported_features = ctx.disabled_features, -+ ) -+ toolchain_tools.append(exec_cc_toolchain.all_files) -+ exec_tools = { -+ "CC": cc_common.get_tool_for_action( -+ feature_configuration = exec_feature_configuration, -+ action_name = ACTION_NAMES.c_compile, -+ ), -+ "CXX": cc_common.get_tool_for_action( -+ feature_configuration = exec_feature_configuration, -+ action_name = ACTION_NAMES.cpp_compile, -+ ), -+ "AR": cc_common.get_tool_for_action( -+ feature_configuration = exec_feature_configuration, -+ action_name = ACTION_NAMES.cpp_link_static_library, -+ ) or exec_cc_toolchain.ar_executable, -+ } -+ exec_c_args, exec_cxx_args, _ = get_cc_compile_args_and_env(exec_cc_toolchain, exec_feature_configuration) -+ for name, tool in exec_tools.items(): -+ if tool and "libtool" not in tool: -+ env["HOST_" + name] = _pwd_tool(tool) -+ env["HOST_CFLAGS"] = " ".join(_pwd_flags(exec_c_args)) -+ env["HOST_CXXFLAGS"] = " ".join(_pwd_flags(exec_cxx_args)) -+ else: -+ env["HOST_CFLAGS"] = "" -+ env["HOST_CXXFLAGS"] = "" -+ env["TARGET_CFLAGS"] = env["CFLAGS"] -+ env["TARGET_CXXFLAGS"] = env["CXXFLAGS"] -+ if ctx.configuration.coverage_enabled: -+ # rustc's profiler runtime is not ISO wide stdio; C that is links against it fails (#8448, hermeticbuild/hermetic-llvm#871). -+ undef_iso_stdio = " /U_CRT_STDIO_ISO_WIDE_SPECIFIERS" -+ if toolchain.target_triple.str.endswith("-windows-msvc"): -+ env["CFLAGS"] += undef_iso_stdio -+ env["TARGET_CFLAGS"] += undef_iso_stdio -+ if cross and toolchain.exec_triple.str.endswith("-windows-msvc"): -+ env["HOST_CFLAGS"] += undef_iso_stdio -+ for name in ["CC", "CXX", "AR"]: -+ if env.get(name) and "libtool" not in env[name]: -+ env["TARGET_" + name] = _pwd_tool(env[name]) -+ if not cross: -+ env["HOST_" + name] = env["TARGET_" + name] -+ - # Inform build scripts of rustc flags - # https://github.com/rust-lang/cargo/issues/9600 - env["CARGO_ENCODED_RUSTFLAGS"] = "\\x1f".join([ -@@ -941,6 +999,10 @@ - allow_files = True, - default = Label("//cargo/private:no_cxx"), - ), -+ "_exec_cc_toolchain": attr.label( -+ default = Label("@rules_cc//cc:current_cc_toolchain"), -+ cfg = "exec", -+ ), - "_out_dir_volatile_file_basenames": attr.label( - default = Label("//cargo/settings:out_dir_volatile_file_basenames"), - ), diff --git a/families/zig/third_party/rules_dx/rules_rust.msvc_pdb_output.patch b/families/zig/third_party/rules_dx/rules_rust.msvc_pdb_output.patch deleted file mode 100644 index 4ee47d9d3f..0000000000 --- a/families/zig/third_party/rules_dx/rules_rust.msvc_pdb_output.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -2048,7 +2048,9 @@ - pdb_file = None - dsym_folder = None - if crate_info.type in ("cdylib", "bin") and not experimental_use_cc_common_link: -- if toolchain.target_abi == "msvc" and compilation_mode.strip_level == "none": -+ # rustc ignores -Cstrip on MSVC and always links with /DEBUG, so the PDB is written -+ # whatever the strip level (rust-lang/rust#115120). -+ if toolchain.target_abi == "msvc": - pdb_file = ctx.actions.declare_file(crate_info.output.basename[:-len(crate_info.output.extension)] + "pdb", sibling = crate_info.output) - action_outputs.append(pdb_file) - elif toolchain.target_os in ["macos", "darwin"]: diff --git a/families/zig/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch b/families/zig/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch deleted file mode 100644 index 23b810bc1b..0000000000 --- a/families/zig/third_party/rules_dx/rules_rust.pipelined_rmeta_path.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -1909,6 +1909,14 @@ - if experimental_use_cc_common_link: - emit = ["obj"] - -+ # The full action must not write the `.rmeta` that the metadata action declares, -+ # or on Windows (no sandbox) it hits the read-only file left by that action. -+ emit_full = emit -+ full_rmeta = None -+ if build_metadata and not experimental_use_cc_common_link: -+ full_rmeta = ctx.actions.declare_file("_rmeta_full/" + build_metadata.basename, sibling = build_metadata) -+ emit_full = [("metadata", full_rmeta) if kind == "metadata" else kind for kind in emit] -+ - # Declares the outputs of the rustc compile action. - # By default this is the binary output; if cc_common.link is used, this is - # the main `.o` file (`output_o` below). -@@ -1975,7 +1983,7 @@ - toolchain = toolchain, - tool_file = toolchain.rustc, - cc_toolchain = cc_toolchain, -- emit = emit, -+ emit = emit_full, - feature_configuration = feature_configuration, - crate_info = crate_info, - dep_info = dep_info, -@@ -2046,6 +2054,8 @@ - - # The action might generate extra output that we don't want to include in the `DefaultInfo` files. - action_outputs = list(outputs) -+ if full_rmeta: -+ action_outputs.append(full_rmeta) - if rustc_output: - action_outputs.append(rustc_output) - if profiling_dir: diff --git a/families/zig/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch b/families/zig/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch deleted file mode 100644 index 5bdd7b8bdf..0000000000 --- a/families/zig/third_party/rules_dx/rules_rust.rust_lld_msvc_libpath.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- a/rust/private/rustc.bzl -+++ b/rust/private/rustc.bzl -@@ -375,6 +375,28 @@ - """ - return ctx.fragments.cpp.linkopts - -+def _msvc_libpath_dir(arg): -+ """Returns the directory of a `/LIBPATH:`, `-LIBPATH:` or clang-cl `/clang:/LIBPATH:` arg, else None.""" -+ if arg[:7].lower() == "/clang:": -+ arg = arg[7:] -+ if arg[:9].lower() in ("/libpath:", "-libpath:"): -+ return arg[9:] -+ return None -+ -+# rustc picks the CRT itself from crt-static. -+_MSVC_CRT_LIBS = ["libcmt", "libcmtd", "msvcrt", "msvcrtd", "libucrt", "libucrtd", "ucrt", "ucrtd", "libvcruntime", "libvcruntimed", "vcruntime", "vcruntimed"] -+ -+def _msvc_default_lib(arg): -+ """Returns the library of a non-CRT `/DEFAULTLIB:`, `-DEFAULTLIB:` or clang-cl `/clang:/DEFAULTLIB:` arg, else None.""" -+ if arg[:7].lower() == "/clang:": -+ arg = arg[7:] -+ if arg[:12].lower() not in ("/defaultlib:", "-defaultlib:"): -+ return None -+ lib = arg[12:] -+ if lib.lower().removesuffix(".lib") in _MSVC_CRT_LIBS: -+ return None -+ return lib -+ - def get_linker_and_args(ctx, crate_type, toolchain, cc_toolchain, feature_configuration, rpaths, add_flags_for_binary = False): - """Gathers cc_common linker information - -@@ -478,6 +500,14 @@ - filtered_args.append(version) - # Keep library search path flags - -+ elif toolchain.target_abi == "msvc" and _msvc_libpath_dir(processed_arg) != None: -+ # The MSVC cc toolchain carries the CRT and SDK lib dirs as linker args. -+ filtered_args.append("-LIBPATH:" + _msvc_libpath_dir(processed_arg)) -+ -+ elif toolchain.target_abi == "msvc" and _msvc_default_lib(processed_arg) != None: -+ # The C++ standard library, e.g. libc++.lib under clang-cl, is a default lib of the cc toolchain. -+ filtered_args.append("-DEFAULTLIB:" + _msvc_default_lib(processed_arg)) -+ - elif processed_arg.startswith("-L"): - filtered_args.append(processed_arg) - # Keep sysroot flags (as single or two-part arguments) diff --git a/families/zig/third_party/rules_dx/rules_swift.non_root_toolchain.patch b/families/zig/third_party/rules_dx/rules_swift.non_root_toolchain.patch deleted file mode 100644 index f6290ebfc2..0000000000 --- a/families/zig/third_party/rules_dx/rules_swift.non_root_toolchain.patch +++ /dev/null @@ -1,79 +0,0 @@ -diff --git a/swift/extensions.bzl b/swift/extensions.bzl ---- a/swift/extensions.bzl -+++ b/swift/extensions.bzl -@@ -128,41 +128,48 @@ def _single_sdk_tag(tags, kind): - return sdk_tag - - def _standalone_toolchain_impl(module_ctx): -- root_module = None -- for mod in module_ctx.modules: -- if not mod.is_root and not module_ctx.is_dev_dependency: -- fail("Only the root module can use the 'swift' extension. Packages meant to be used as deps should use dev_dependency = True") -- root_module = mod -- -- if not root_module: -- fail("Could not find a root module. This should never happen.") -- - swift_release_metadata = json.decode( - module_ctx.read(Label("//swift/internal/extensions:swift_release_metadata.json"), watch = "yes"), - ) - swift_releases = swift_release_metadata["toolchains"] - swift_sdk_releases = swift_release_metadata["sdks"] - -- android_sdk_tag = _single_sdk_tag( -- root_module.tags.android_sdk, -- "android_sdk", -- ) -- wasm_sdk_tag = _single_sdk_tag( -- root_module.tags.wasm_sdk, -- "wasm_sdk", -- ) -- -- if len(root_module.tags.toolchain) > 1: -- fail("swift.toolchain() can currently only be called once. Please file an issue if you need multiple toolchains in a single module.") -+ toolchains = [] -+ toolchain_modules = {} -+ for mod in module_ctx.modules: -+ if not mod.is_root and (mod.tags.android_sdk or mod.tags.wasm_sdk): -+ fail("Only the root module can use the `android_sdk` and `wasm_sdk` tags.") - -- if not root_module.tags.toolchain: -- if android_sdk_tag: -- fail("The `android_sdk` tag requires a `toolchain` tag.") -- if wasm_sdk_tag: -- fail("The `wasm_sdk` tag requires a `toolchain` tag.") -+ android_sdk_tag = _single_sdk_tag( -+ mod.tags.android_sdk, -+ "android_sdk", -+ ) -+ wasm_sdk_tag = _single_sdk_tag( -+ mod.tags.wasm_sdk, -+ "wasm_sdk", -+ ) - -- toolchains_build_file_content = "" -- for toolchain in root_module.tags.toolchain: -+ if len(mod.tags.toolchain) > 1: -+ fail("swift.toolchain() can currently only be called once. Please file an issue if you need multiple toolchains in a single module.") -+ -+ if not mod.tags.toolchain: -+ if android_sdk_tag: -+ fail("The `android_sdk` tag requires a `toolchain` tag.") -+ if wasm_sdk_tag: -+ fail("The `wasm_sdk` tag requires a `toolchain` tag.") -+ -+ for toolchain in mod.tags.toolchain: -+ if toolchain.name in toolchain_modules: -+ fail("swift.toolchain() name `{}` is used by both `{}` and `{}`. Each toolchain needs a unique name.".format( -+ toolchain.name, -+ toolchain_modules[toolchain.name], -+ mod.name, -+ )) -+ toolchain_modules[toolchain.name] = mod.name -+ toolchains.append((toolchain, android_sdk_tag, wasm_sdk_tag)) -+ -+ for toolchain, android_sdk_tag, wasm_sdk_tag in toolchains: -+ toolchains_build_file_content = "" - if toolchain.swift_version and toolchain.swift_version_file: - fail("Cannot use both swift_version and swift_version_file together. Please choose one.") - diff --git a/families/zig/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch b/families/zig/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch deleted file mode 100644 index f8257c7cb3..0000000000 --- a/families/zig/third_party/rules_dx/rules_swift.toolchain_sysroot_env.patch +++ /dev/null @@ -1,240 +0,0 @@ -diff --git a/swift/extensions.bzl b/swift/extensions.bzl ---- a/swift/extensions.bzl -+++ b/swift/extensions.bzl -@@ -180,13 +180,25 @@ def _standalone_toolchain_impl(module_ctx): - )) - - toolchain_releases = toolchain.platform_sha256.items() or swift_releases[swift_version].items() -+ unknown_sysroot_platforms = [ -+ platform -+ for platform in toolchain.sysroot -+ if platform not in [p for p, _ in toolchain_releases] -+ ] -+ if unknown_sysroot_platforms: -+ fail("`sysroot` has platforms that this toolchain does not download: {}".format( -+ unknown_sysroot_platforms, -+ )) -+ - for platform, sha256 in toolchain_releases: - repository_name = toolchain.name + "_{}".format(platform) - standalone_toolchain( - name = repository_name, -+ env = toolchain.env, - sha256 = sha256, - platform = platform, - swift_version = swift_version, -+ sysroot = toolchain.sysroot.get(platform), - ) - toolchains_build_file_content += toolchains_for_platform( - platform = platform, -@@ -249,6 +261,12 @@ and defines Swift and C++ toolchains targeting `wasm32-unknown-wasip1`. - ) - - _toolchain = tag_class(attrs = { -+ "env": attr.string_dict( -+ doc = """\ -+Environment variables for the exec Swift toolchain. `{sysroot}` in a value is -+replaced with the root of that platform's `sysroot`. -+""", -+ ), - "name": attr.string( - doc = "Repository name of the generated toolchain", - mandatory = True, -@@ -262,6 +280,15 @@ their hashes. For instance: - """, - ), - "swift_version": attr.string(doc = "Version of the swift toolchain to be installed. Cannot be used concurrently with `swift_version_file`"), -+ "sysroot": attr.string_keyed_label_dict( -+ doc = """\ -+A dictionary of platforms and the sysroot files for their exec Swift toolchain. -+ -+The exec Swift toolchain passes the sysroot's root as `-sdk` and adds the files -+to the inputs of its Swift tools. Without it, `-sdk` comes from the C++ -+toolchain's sysroot. -+""", -+ ), - "swift_version_file": attr.label(doc = "A label to the .swift_version file to use. Cannot be used concurrently with `swift_version`"), - }) - -diff --git a/swift/internal/extensions/BUILD.bazel b/swift/internal/extensions/BUILD.bazel ---- a/swift/internal/extensions/BUILD.bazel -+++ b/swift/internal/extensions/BUILD.bazel -@@ -4,7 +4,10 @@ bzl_library( - name = "standalone_toolchain", - srcs = ["standalone_toolchain.bzl"], - visibility = ["//swift:__subpackages__"], -- deps = ["@bazel_skylib//lib:paths"], -+ deps = [ -+ "@bazel_skylib//lib:dicts", -+ "@bazel_skylib//lib:paths", -+ ], - ) - - bzl_library( -diff --git a/swift/internal/extensions/standalone_toolchain.bzl b/swift/internal/extensions/standalone_toolchain.bzl ---- a/swift/internal/extensions/standalone_toolchain.bzl -+++ b/swift/internal/extensions/standalone_toolchain.bzl -@@ -6,6 +6,7 @@ Supports both macOS (.pkg) and Linux (.tar.gz) toolchain formats, with automatic - platform detection and appropriate extraction methods. - """ - -+load("@bazel_skylib//lib:dicts.bzl", "dicts") - load("@bazel_skylib//lib:paths.bzl", "paths") - - # Download URLs are documented in the OpenAPI spec here: -@@ -62,6 +63,27 @@ def _run(repository_ctx, command): - - return result.stdout.strip() - -+def sysroot_substitutions(sysroot, env): -+ """Returns the BUILD template substitutions for the optional sysroot and env. -+ -+ Args: -+ sysroot: A `Label` of the sysroot files, or `None`. -+ env: A string dict of environment variables for the exec toolchain. -+ `{sysroot}` in a value is replaced with the sysroot's root. -+ -+ Returns: -+ A dict of template substitutions. -+ """ -+ sdkroot = sysroot.workspace_root if sysroot else "" -+ for key, value in env.items(): -+ if "{sysroot}" in value and not sysroot: -+ fail("env `{}` uses `{{sysroot}}` but no sysroot is set".format(key)) -+ return { -+ "{env}": repr({key: value.replace("{sysroot}", sdkroot) for key, value in env.items()}), -+ "{sdkroot}": sdkroot, -+ "{sysroot_inputs}": repr([str(sysroot)]) if sysroot else "[]", -+ } -+ - def _standalone_toolchain_impl(repository_ctx): - url = get_download_url(repository_ctx.attr.swift_version, repository_ctx.attr.platform) - filename = paths.basename(url) -@@ -109,15 +131,24 @@ def _standalone_toolchain_impl(repository_ctx): - repository_ctx.template( - "BUILD.bazel", - repository_ctx.attr._build_template, -- substitutions = { -- "{linux_sysroot_version}": linux_sysroot_version, -- "{swift_version}": repository_ctx.attr.swift_version, -- }, -+ substitutions = dicts.add( -+ { -+ "{linux_sysroot_version}": linux_sysroot_version, -+ "{swift_version}": repository_ctx.attr.swift_version, -+ }, -+ sysroot_substitutions(repository_ctx.attr.sysroot, repository_ctx.attr.env), -+ ), - ) - - standalone_toolchain = repository_rule( - implementation = _standalone_toolchain_impl, - attrs = { -+ "env": attr.string_dict( -+ doc = """\ -+Environment variables for the exec Swift toolchain. `{sysroot}` in a value is -+replaced with the sysroot's root. The embedded toolchain is unaffected. -+""", -+ ), - "platform": attr.string( - doc = "The host platform name in the swift package download URL", - mandatory = True, -@@ -129,6 +160,12 @@ standalone_toolchain = repository_rule( - doc = "Version of the swift toolchain to be installed.", - mandatory = True, - ), -+ "sysroot": attr.label( -+ doc = """\ -+Label of the files of a sysroot to build against. The exec Swift toolchain passes -+the sysroot's root as `-sdk` and adds the files to the inputs of its Swift tools. -+""", -+ ), - "_build_template": attr.label( - default = "//swift/internal/extensions:toolchain.BUILD", - ), -diff --git a/swift/internal/extensions/toolchain.BUILD b/swift/internal/extensions/toolchain.BUILD ---- a/swift/internal/extensions/toolchain.BUILD -+++ b/swift/internal/extensions/toolchain.BUILD -@@ -283,28 +283,38 @@ cc_toolchain( - tool_map = "all_tools", - ) - -+_SWIFT_TOOL_INPUTS = glob( -+ [ -+ "usr/lib/swift/**", -+ ] + [ -+ "usr/bin/swift", -+ "usr/bin/swift-frontend", -+ ], -+ exclude = [ -+ # for now we only tested embedded, linux and macos so we can exclude files needed for -+ # other platforms. -+ "usr/lib/swift/xrsimulator/**", -+ "usr/lib/swift/appletvos/**", -+ "usr/lib/swift/watchos/**", -+ "usr/lib/swift/appletvsimulator/**", -+ "usr/lib/swift/iphoneos/**", -+ "usr/lib/swift/iphonesimulator/**", -+ "usr/lib/swift/watchsimulator/**", -+ "usr/lib/swift/xros/**", -+ ], -+) -+ - swift_tools( - name = "tools", -- additional_inputs = glob( -- [ -- "usr/lib/swift/**", -- ] + [ -- "usr/bin/swift", -- "usr/bin/swift-frontend", -- ], -- exclude = [ -- # for now we only tested embedded, linux and macos so we can exclude files needed for -- # other platforms. -- "usr/lib/swift/xrsimulator/**", -- "usr/lib/swift/appletvos/**", -- "usr/lib/swift/watchos/**", -- "usr/lib/swift/appletvsimulator/**", -- "usr/lib/swift/iphoneos/**", -- "usr/lib/swift/iphonesimulator/**", -- "usr/lib/swift/watchsimulator/**", -- "usr/lib/swift/xros/**", -- ], -- ), -+ additional_inputs = _SWIFT_TOOL_INPUTS, -+ swift_autolink_extract = "usr/bin/swift-autolink-extract", -+ swift_driver = "usr/bin/swiftc", -+ swift_symbolgraph_extract = "usr/bin/swift-symbolgraph-extract", -+) -+ -+swift_tools( -+ name = "tools_exec", -+ additional_inputs = _SWIFT_TOOL_INPUTS + {sysroot_inputs}, - swift_autolink_extract = "usr/bin/swift-autolink-extract", - swift_driver = "usr/bin/swiftc", - swift_symbolgraph_extract = "usr/bin/swift-symbolgraph-extract", -@@ -348,6 +358,7 @@ swift_toolchain( - ], - allow_empty = True, - ), -+ env = {env}, - features = [ - "swift._supports_upcoming_features", - "swift.no_embed_debug_module", -@@ -364,6 +375,7 @@ swift_toolchain( - "@platforms//os:macos": "macos", - }), - parsed_version = "{swift_version}", -+ sdkroot = "{sdkroot}", - static_runtime = select({ - "@platforms//os:linux": glob( - [ -@@ -377,6 +389,6 @@ swift_toolchain( - ), - "//conditions:default": [], - }), -- swift_tools = "tools", -+ swift_tools = "tools_exec", - version_file = ".swift-version", - ) diff --git a/families/zig/third_party/rules_dx/windows_support.dx_msvc_layout.patch b/families/zig/third_party/rules_dx/windows_support.dx_msvc_layout.patch deleted file mode 100644 index ea9b7188f0..0000000000 --- a/families/zig/third_party/rules_dx/windows_support.dx_msvc_layout.patch +++ /dev/null @@ -1,174 +0,0 @@ -diff --git a/windows/private/extensions/msvc_runtime.BUILD.bazel b/windows/private/extensions/msvc_runtime.BUILD.bazel ---- a/windows/private/extensions/msvc_runtime.BUILD.bazel -+++ b/windows/private/extensions/msvc_runtime.BUILD.bazel -@@ -79,6 +79,44 @@ - }), - ) - -+directory( -+ name = "dx_subsets_files", -+ srcs = glob( -+ ["dx_subsets/**"], -+ allow_empty = True, -+ ), -+) -+ -+[ -+ subdirectory( -+ name = "msvc_{}".format(subset), -+ parent = ":dx_subsets_files", -+ path = "dx_subsets/{}".format(subset), -+ ) -+ for subset in ("com_support_include", "vcruntime_include") -+] -+ -+[ -+ subdirectory( -+ name = "msvc_{}_libraries_{}".format(subset, arch), -+ parent = ":dx_subsets_files", -+ path = "dx_subsets/lib/{}/{}".format(arch, subset), -+ ) -+ for subset in ("com", "common", "dynamic", "static") -+ for arch in ("x64", "arm64") -+] -+ -+[ -+ alias( -+ name = "msvc_{}_libraries".format(subset), -+ actual = select({ -+ ":windows_aarch64": ":msvc_{}_libraries_arm64".format(subset), -+ "//conditions:default": ":msvc_{}_libraries_x64".format(subset), -+ }), -+ ) -+ for subset in ("com", "common", "dynamic", "static") -+] -+ - filegroup( - name = "vc_redist_x64", - srcs = glob( -@@ -174,3 +212,28 @@ - allow_empty = True, - ), - ) -+ -+filegroup( -+ name = "msvc_host_tools", -+ srcs = glob( -+ [ -+ "__MSVC_RUNTIME_DIR__/Contents/VC/Tools/MSVC/__MSVC_VERSION__/bin/**", -+ "__MSVC_RUNTIME_DIR__/Contents/VC/Auxiliary/Build/*.bat", -+ ], -+ allow_empty = True, -+ ), -+) -+ -+[ -+ filegroup( -+ name = "vc_runtime_dlls_" + arch, -+ srcs = glob( -+ [ -+ "__MSVC_RUNTIME_DIR__/Contents/VC/Redist/MSVC/__VC_REDIST_VERSION__/{}/*/{}.dll".format(arch, dll) -+ for dll in ["vcruntime140", "vcruntime140_1", "msvcp140", "msvcp140_1", "msvcp140_2"] -+ ], -+ allow_empty = True, -+ ), -+ ) -+ for arch in ("x64", "arm64") -+] -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -328,6 +328,79 @@ - redist_architectures, - ) - -+# Parts of the MSVC tree that llvm's clang-cl toolchain puts on its include and -+# library search paths. Copying them here keeps them out of the action graph. -+_DX_SUBSET_HEADERS = { -+ "com_support_include": [ -+ "comdef.h", -+ "comdefsp.h", -+ "comip.h", -+ "comutil.h", -+ ], -+ "vcruntime_include": [ -+ "CodeAnalysis/sourceannotations.h", -+ "concurrencysal.h", -+ "crtdefs.h", -+ "eh.h", -+ "ehdata.h", -+ "ehdata_forceinclude.h", -+ "ehdata_values.h", -+ "excpt.h", -+ "sal.h", -+ "setjmp.h", -+ "setjmpex.h", -+ "threads.h", -+ "vadefs.h", -+ "vcruntime.h", -+ "vcruntime_exception.h", -+ "vcruntime_new.h", -+ "vcruntime_new_debug.h", -+ "vcruntime_string.h", -+ "vcruntime_startup.h", -+ "vcruntime_typeinfo.h", -+ ], -+} -+ -+_DX_SUBSET_LIBRARIES = { -+ "com": [ -+ "comsupp.lib", -+ "comsuppw.lib", -+ ], -+ "common": [ -+ "exe_initialize_mta.lib", -+ "iso_stdio_wide_specifiers.lib", -+ "legacy_stdio_definitions.lib", -+ "legacy_stdio_wide_specifiers.lib", -+ "oldnames.lib", -+ ], -+ "dynamic": [ -+ "msvcprt.lib", -+ "msvcrt.lib", -+ "vcruntime.lib", -+ ], -+ "static": [ -+ "libcmt.lib", -+ "libcpmt.lib", -+ "libvcruntime.lib", -+ ], -+} -+ -+def _write_dx_subsets(repository_ctx, sysroot_dir, msvc_version, architectures): -+ msvc_dir = "{}/Contents/VC/Tools/MSVC/{}".format(sysroot_dir, msvc_version) -+ copies = {} -+ for subset, headers in _DX_SUBSET_HEADERS.items(): -+ for header in headers: -+ copies["dx_subsets/{}/{}".format(subset, header)] = "{}/include/{}".format(msvc_dir, header) -+ for arch in architectures: -+ if arch not in ["x64", "arm64"]: -+ continue -+ for subset, libraries in _DX_SUBSET_LIBRARIES.items(): -+ for library in libraries: -+ copies["dx_subsets/lib/{}/{}/{}".format(arch, subset, library)] = "{}/lib/{}/{}".format(msvc_dir, arch, library) -+ for dst, src in copies.items(): -+ if repository_ctx.path(src).exists: -+ repository_ctx.file(dst, repository_ctx.read(src), executable = False, legacy_utf8 = False) -+ - def _msvc_runtime_repository_impl(repository_ctx): - _check_msvc_license_requirements(repository_ctx) - -@@ -389,6 +462,13 @@ - if redist_architectures and not redist_version: - fail("failed to find Contents/VC/Redist/MSVC/ in extracted MSVC payloads for architectures {}".format(redist_architectures)) - _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version, repository_ctx.attr.host_tools) -+ _write_dx_subsets(repository_ctx, sysroot_dir, msvc_version, architectures) -+ if repository_ctx.attr.host_tools: -+ for stub in ["vcvarsall.bat", "vcvars64.bat"]: -+ repository_ctx.file( -+ "{}/Contents/VC/Auxiliary/Build/{}".format(sysroot_dir, stub), -+ "@rem Placeholder for tools that probe for vcvars; the environment comes from the toolchain.\n", -+ ) - - repository_ctx.file( - "versions.bzl", diff --git a/families/zig/third_party/rules_dx/windows_support.host_tools.patch b/families/zig/third_party/rules_dx/windows_support.host_tools.patch deleted file mode 100644 index 35eeb1e8d4..0000000000 --- a/families/zig/third_party/rules_dx/windows_support.host_tools.patch +++ /dev/null @@ -1,263 +0,0 @@ -diff -ruN a/windows/private/extensions/msvc_runtime.BUILD.bazel b/windows/private/extensions/msvc_runtime.BUILD.bazel ---- a/windows/private/extensions/msvc_runtime.BUILD.bazel -+++ b/windows/private/extensions/msvc_runtime.BUILD.bazel -@@ -130,6 +130,18 @@ - }), - ) - -+[ -+ filegroup( -+ name = "msvc_tools_{}_{}".format(host, target), -+ srcs = glob( -+ ["__MSVC_RUNTIME_DIR__/Contents/VC/Tools/MSVC/__MSVC_VERSION__/bin/Host{}/{}/**".format(host, target)], -+ allow_empty = True, -+ ), -+ ) -+ for host in ("x64", "arm64") -+ for target in ("x64", "arm64") -+] -+ - filegroup( - name = "all_files", - srcs = glob( -diff -ruN a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -138,6 +138,9 @@ - def _collect_vctools_packages(installer_manifest, architectures): - packages_by_id = {} - for pkg in installer_manifest.get("packages", []): -+ # Resource packages repeat per language; without this the last one (zh-TW) wins and the tools print Chinese. -+ if pkg.get("language", "neutral").lower() not in ["neutral", "en-us"]: -+ continue - packages_by_id[pkg.get("id", "").lower()] = pkg - - pending = [] -@@ -204,6 +207,18 @@ - continue - repository_ctx.delete(entry) - -+def _keep_only_children_ignoring_case(repository_ctx, directory, child_names): -+ # Payloads spell one directory both Hostx64 and HostX64; a case-insensitive extract keeps whichever came first. -+ entries = {_basename(entry): entry for entry in directory.readdir()} -+ keep = {} -+ for name in child_names: -+ for actual in entries: -+ if actual == name or (actual.lower() == name.lower() and name not in entries): -+ keep[actual] = True -+ for actual, entry in entries.items(): -+ if not keep.get(actual, False): -+ repository_ctx.delete(entry) -+ - def _is_dotted_version(name): - parts = name.split(".") - for part in parts: -@@ -241,7 +256,7 @@ - def _redist_architectures(architectures): - return [arch for arch in architectures if _ARCH_TO_REDIST_PACKAGE.get(arch)] - --def _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version): -+def _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version, host_tools): - sysroot_path = repository_ctx.path(sysroot_dir) - contents_dir = repository_ctx.path("{}/Contents".format(sysroot_dir)) - vc_dir = repository_ctx.path("{}/Contents/VC".format(sysroot_dir)) -@@ -256,13 +271,18 @@ - _keep_only_children( - repository_ctx, - repository_ctx.path("{}/Contents/VC/Tools/MSVC/{}".format(sysroot_dir, msvc_version)), -- ["include", "lib"], -+ ["include", "lib", "bin"] if host_tools else ["include", "lib"], - ) - _keep_only_children( - repository_ctx, - repository_ctx.path("{}/Contents/VC/Tools/MSVC/{}/lib".format(sysroot_dir, msvc_version)), - architectures, - ) -+ if host_tools: -+ bin_dir = "{}/Contents/VC/Tools/MSVC/{}/bin".format(sysroot_dir, msvc_version) -+ _keep_only_children_ignoring_case(repository_ctx, repository_ctx.path(bin_dir), ["Host" + host for host in host_tools]) -+ for host in host_tools: -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/Host{}".format(bin_dir, host)), architectures) - - if redist_version: - redist_architectures = _redist_architectures(architectures) -@@ -348,7 +368,7 @@ - redist_architectures = _redist_architectures(architectures) - if redist_architectures and not redist_version: - fail("failed to find Contents/VC/Redist/MSVC/ in extracted MSVC payloads for architectures {}".format(redist_architectures)) -- _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version) -+ _keep_exposed_runtime_files(repository_ctx, sysroot_dir, msvc_version, architectures, redist_version, repository_ctx.attr.host_tools) - - repository_ctx.file( - "versions.bzl", -@@ -394,6 +414,8 @@ - ), - ) - -+_HOST_TOOL_ARCHITECTURES = ["x64", "arm64"] -+ - _MSVC_RUNTIME_ATTR = { - "architectures": attr.string_list( - default = _DEFAULT_ARCHITECTURES, -@@ -414,6 +436,9 @@ - } - - _MSVC_RUNTIME_REPOSITORY_ATTRS = _MSVC_RUNTIME_ATTR | { -+ "host_tools": attr.string_list( -+ doc = "Host architectures whose compiler tools are kept under Contents/VC/Tools/MSVC//bin/Host", -+ ), - "_build_file": attr.label( - allow_single_file = True, - default = ":msvc_runtime.BUILD.bazel", -@@ -447,8 +472,20 @@ - - fail("Missing msvc_runtime.configure(...): set msvc_runtime.configure(...) in your MODULE.bazel") - -+def _read_host_tools(module_ctx): -+ hosts = [] -+ for mod in module_ctx.modules: -+ for tag in mod.tags.host_tools: -+ for host in tag.hosts: -+ if host not in _HOST_TOOL_ARCHITECTURES: -+ fail("msvc_runtime.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) -+ if host not in hosts: -+ hosts.append(host) -+ return sorted(hosts) -+ - def _msvc_runtime_extension_impl(module_ctx): - config = _read_configure_tag(module_ctx) -+ host_tools = _read_host_tools(module_ctx) - - installer_manifest = _resolve_installer_manifest_from_module_facts( - module_ctx, -@@ -463,6 +500,7 @@ - name = repository_name, - msvc_version = config.msvc_version, - architectures = config.architectures, -+ host_tools = host_tools, - installer_manifest_url = installer_manifest["url"], - installer_manifest_integrity = installer_manifest["integrity"], - ) -@@ -496,6 +534,15 @@ - doc = "Optional SRI integrity for the downloaded Visual Studio installer manifest.", - ), - }), -+ "host_tools": tag_class( -+ attrs = { -+ "hosts": attr.string_list( -+ mandatory = True, -+ doc = "Host architectures (`x64`, `arm64`) whose compiler tools (cl.exe, link.exe) are kept in the repository. Values from all modules are combined.", -+ ), -+ }, -+ doc = "Keeps the MSVC compiler tools for the given hosts, exposed as `msvc_tools__`.", -+ ), - }, - doc = "MSVC runtime extension.", - ) -diff -ruN a/windows/private/extensions/windows_sdk.BUILD.bazel b/windows/private/extensions/windows_sdk.BUILD.bazel ---- a/windows/private/extensions/windows_sdk.BUILD.bazel -+++ b/windows/private/extensions/windows_sdk.BUILD.bazel -@@ -189,3 +189,14 @@ - allow_empty = True, - ), - ) -+ -+[ -+ filegroup( -+ name = "winsdk_bin_" + host, -+ srcs = glob( -+ ["__WINSDK_DIR__/base/c/bin/__WINSDK_INCLUDE_VERSION__/{}/**".format(host)], -+ allow_empty = True, -+ ), -+ ) -+ for host in ("x64", "arm64") -+] -diff -ruN a/windows/private/extensions/windows_sdk.bzl b/windows/private/extensions/windows_sdk.bzl ---- a/windows/private/extensions/windows_sdk.bzl -+++ b/windows/private/extensions/windows_sdk.bzl -@@ -28,10 +28,13 @@ - continue - repository_ctx.delete(entry) - --def _keep_exposed_windows_sdk_files(repository_ctx, sysroot_dir, include_version, architectures): -+def _keep_exposed_windows_sdk_files(repository_ctx, sysroot_dir, include_version, architectures, host_tools): - _keep_only_children(repository_ctx, repository_ctx.path(sysroot_dir), ["base"] + architectures) - _keep_only_children(repository_ctx, repository_ctx.path("{}/base".format(sysroot_dir)), ["c"]) -- _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c".format(sysroot_dir)), ["Include"]) -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c".format(sysroot_dir)), ["Include", "bin"] if host_tools else ["Include"]) -+ if host_tools: -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c/bin".format(sysroot_dir)), [include_version]) -+ _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c/bin/{}".format(sysroot_dir, include_version)), host_tools) - _keep_only_children(repository_ctx, repository_ctx.path("{}/base/c/Include".format(sysroot_dir)), [include_version]) - _keep_only_children( - repository_ctx, -@@ -226,7 +229,7 @@ - ) - - _apply_transformations(repository_ctx) -- _keep_exposed_windows_sdk_files(repository_ctx, _SYSROOT_DIR, include_version, requested_architectures) -+ _keep_exposed_windows_sdk_files(repository_ctx, _SYSROOT_DIR, include_version, requested_architectures, repository_ctx.attr.host_tools) - - repository_ctx.file( - "versions.bzl", -@@ -263,6 +266,8 @@ - ), - ) - -+_HOST_TOOL_ARCHITECTURES = ["x64", "arm64"] -+ - _WINDOWS_SDK_ATTR = { - "architectures": attr.string_list( - default = _DEFAULT_ARCHITECTURES, -@@ -299,6 +304,9 @@ - } - - _WINDOWS_SDK_REPOSITORY_ATTRS = _WINDOWS_SDK_ATTR | { -+ "host_tools": attr.string_list( -+ doc = "Host architectures whose SDK tools (rc.exe, mt.exe) are kept under base/c/bin//", -+ ), - "_build_file": attr.label( - allow_single_file = True, - default = ":windows_sdk.BUILD.bazel", -@@ -331,6 +339,17 @@ - - fail("Missing windows_sdk.configure(...): set windows_sdk.configure(...) in your MODULE.bazel") - -+def _read_host_tools(module_ctx): -+ hosts = [] -+ for mod in module_ctx.modules: -+ for tag in mod.tags.host_tools: -+ for host in tag.hosts: -+ if host not in _HOST_TOOL_ARCHITECTURES: -+ fail("windows_sdk.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) -+ if host not in hosts: -+ hosts.append(host) -+ return sorted(hosts) -+ - def _windows_sdk_extension_impl(module_ctx): - config = _read_configure_tag(module_ctx) - -@@ -341,6 +360,7 @@ - windows_sdk_integrity = config.windows_sdk_integrity, - transformations = config.transformations, - architectures = config.architectures, -+ host_tools = _read_host_tools(module_ctx), - ) - - if module_ctx.root_module_has_non_dev_dependency: -@@ -358,6 +378,15 @@ - implementation = _windows_sdk_extension_impl, - tag_classes = { - "configure": tag_class(attrs = _WINDOWS_SDK_ATTR), -+ "host_tools": tag_class( -+ attrs = { -+ "hosts": attr.string_list( -+ mandatory = True, -+ doc = "Host architectures (`x64`, `arm64`) whose SDK tools (rc.exe, mt.exe) are kept. Values from all modules are combined.", -+ ), -+ }, -+ doc = "Keeps the Windows SDK tools for the given hosts, exposed as `winsdk_bin_`.", -+ ), - }, - doc = "Windows SDK extension backed by public NuGet packages.", - ) diff --git a/families/zig/third_party/rules_dx/windows_support.hostarm64_packages.patch b/families/zig/third_party/rules_dx/windows_support.hostarm64_packages.patch deleted file mode 100644 index 7e2b022f0e..0000000000 --- a/families/zig/third_party/rules_dx/windows_support.hostarm64_packages.patch +++ /dev/null @@ -1,85 +0,0 @@ -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -135,7 +135,27 @@ - decoded_struct = decoded, - ) - --def _collect_vctools_packages(installer_manifest, architectures): -+def _walk_dependencies(packages_by_id, frontier, selected, seen): -+ for _ in range(len(packages_by_id)): -+ if not frontier: -+ break -+ next_frontier = [] -+ for package_id in frontier: -+ if seen.get(package_id, False): -+ continue -+ seen[package_id] = True -+ pkg = packages_by_id.get(package_id) -+ if pkg == None: -+ continue -+ selected[package_id] = pkg -+ dependencies = pkg.get("dependencies", {}) -+ if type(dependencies) == "list": -+ next_frontier.extend(sorted([dep.lower() for dep in dependencies])) -+ else: -+ next_frontier.extend(sorted([dep.lower() for dep in dependencies.keys()])) -+ frontier = next_frontier -+ -+def _collect_vctools_packages(installer_manifest, architectures, host_tools = []): - packages_by_id = {} - for pkg in installer_manifest.get("packages", []): - # Resource packages repeat per language; without this the last one (zh-TW) wins and the tools print Chinese. -@@ -162,25 +182,25 @@ - - selected = {} - seen = {} -- frontier = pending -- for _ in range(len(packages_by_id)): -- if not frontier: -- break -- next_frontier = [] -- for package_id in frontier: -- if seen.get(package_id, False): -- continue -- seen[package_id] = True -- pkg = packages_by_id.get(package_id) -- if pkg == None: -+ _walk_dependencies(packages_by_id, pending, selected, seen) -+ -+ # The tools components only pull in the HostX64 compilers, so ask for -+ # the compilers of each requested host at the versions already selected. -+ extra = [] -+ for host in host_tools: -+ if host == "x64": -+ continue -+ for package_id in sorted(selected.keys()): -+ prefix = "microsoft.vc." -+ suffix = ".tools.hostx64.targetx64.base" -+ if not (package_id.startswith(prefix) and package_id.endswith(suffix)): - continue -- selected[package_id] = pkg -- dependencies = pkg.get("dependencies", {}) -- if type(dependencies) == "list": -- next_frontier.extend(sorted([dep.lower() for dep in dependencies])) -- else: -- next_frontier.extend(sorted([dep.lower() for dep in dependencies.keys()])) -- frontier = next_frontier -+ version = package_id[len(prefix):-len(suffix)] -+ for arch in architectures: -+ candidate = "{}{}.tools.host{}.target{}.base".format(prefix, version, host, arch) -+ if arch in ("x64", "arm64") and candidate in packages_by_id: -+ extra.append(candidate) -+ _walk_dependencies(packages_by_id, extra, selected, seen) - - vctools_packages = {} - for package_id in sorted(selected.keys()): -@@ -326,7 +346,7 @@ - repository_ctx.attr.installer_manifest_url, - repository_ctx.attr.installer_manifest_integrity, - ) -- packages = _collect_vctools_packages(installer_manifest.decoded_struct, repository_ctx.attr.architectures) -+ packages = _collect_vctools_packages(installer_manifest.decoded_struct, repository_ctx.attr.architectures, repository_ctx.attr.host_tools) - - # Download/extract VSIX packages to look for the MSVC runtime pieces - diff --git a/families/zig/third_party/rules_dx/windows_support.rules_dx_hosts.patch b/families/zig/third_party/rules_dx/windows_support.rules_dx_hosts.patch deleted file mode 100644 index 371db67b65..0000000000 --- a/families/zig/third_party/rules_dx/windows_support.rules_dx_hosts.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -466,6 +466,11 @@ - fail("msvc_runtime.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) - if host not in hosts: - hosts.append(host) -+ if not hosts: -+ # Default on under rules_dx so @dx_msvc has cl.exe; see #6484. -+ for mod in module_ctx.modules: -+ if mod.name == "rules_dx": -+ return sorted(_HOST_TOOL_ARCHITECTURES) - return sorted(hosts) - - def _msvc_runtime_extension_impl(module_ctx): -diff --git a/windows/private/extensions/windows_sdk.bzl b/windows/private/extensions/windows_sdk.bzl ---- a/windows/private/extensions/windows_sdk.bzl -+++ b/windows/private/extensions/windows_sdk.bzl -@@ -348,6 +348,11 @@ - fail("windows_sdk.host_tools: unsupported host {}, expected one of {}".format(host, _HOST_TOOL_ARCHITECTURES)) - if host not in hosts: - hosts.append(host) -+ if not hosts: -+ # Default on under rules_dx so @dx_msvc has cl.exe; see #6484. -+ for mod in module_ctx.modules: -+ if mod.name == "rules_dx": -+ return sorted(_HOST_TOOL_ARCHITECTURES) - return sorted(hosts) - - def _windows_sdk_extension_impl(module_ctx): -diff --git a/windows/private/extensions/msvc_runtime.bzl b/windows/private/extensions/msvc_runtime.bzl ---- a/windows/private/extensions/msvc_runtime.bzl -+++ b/windows/private/extensions/msvc_runtime.bzl -@@ -198,9 +198,9 @@ - def _keep_only_children(repository_ctx, directory, child_names): - if not directory.exists or not directory.is_dir: - return -- allowed = {name: True for name in child_names} -+ allowed = {name.lower(): True for name in child_names} - for entry in directory.readdir(): -- if allowed.get(_basename(entry), False): -+ if allowed.get(_basename(entry).lower(), False): - continue - repository_ctx.delete(entry) - diff --git a/families/zig/third_party/rules_dx/windows_support.source_directory_headers.patch b/families/zig/third_party/rules_dx/windows_support.source_directory_headers.patch deleted file mode 100644 index 0e94604880..0000000000 --- a/families/zig/third_party/rules_dx/windows_support.source_directory_headers.patch +++ /dev/null @@ -1,146 +0,0 @@ -diff --git a/windows/BUILD.bazel b/windows/BUILD.bazel ---- a/windows/BUILD.bazel -+++ b/windows/BUILD.bazel -@@ -22,3 +22,10 @@ bzl_library( - "@bazel_tools//tools/build_defs/repo:utils.bzl", - ], - ) -+ -+bzl_library( -+ name = "source_directory_headers", -+ srcs = ["source_directory_headers.bzl"], -+ visibility = ["//visibility:public"], -+ deps = ["@bazel_skylib//rules/directory:providers"], -+) -diff --git a/windows/private/extensions/windows_sdk.BUILD.bazel b/windows/private/extensions/windows_sdk.BUILD.bazel ---- a/windows/private/extensions/windows_sdk.BUILD.bazel -+++ b/windows/private/extensions/windows_sdk.BUILD.bazel -@@ -2,6 +2,7 @@ - - load("@bazel_skylib//rules/directory:directory.bzl", "directory") - load("@bazel_skylib//rules/directory:subdirectory.bzl", "subdirectory") -+load("@windows_support//windows:source_directory_headers.bzl", "source_directory_headers") - - package(default_visibility = ["//visibility:public"]) - -@@ -38,11 +39,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_ucrt_include", -+ name = "winsdk_ucrt_include_directory", - parent = ":winsdk_ucrt_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/ucrt", - ) - -+filegroup( -+ name = "winsdk_ucrt_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/ucrt"], -+) -+ -+source_directory_headers( -+ name = "winsdk_ucrt_include", -+ directory = ":winsdk_ucrt_include_directory", -+ source_directory = ":winsdk_ucrt_include_source_directory", -+) -+ - directory( - name = "winsdk_shared_include_files", - srcs = glob( -@@ -52,11 +64,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_shared_include", -+ name = "winsdk_shared_include_directory", - parent = ":winsdk_shared_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/shared", - ) - -+filegroup( -+ name = "winsdk_shared_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/shared"], -+) -+ -+source_directory_headers( -+ name = "winsdk_shared_include", -+ directory = ":winsdk_shared_include_directory", -+ source_directory = ":winsdk_shared_include_source_directory", -+) -+ - directory( - name = "winsdk_um_include_files", - srcs = glob( -@@ -66,11 +89,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_um_include", -+ name = "winsdk_um_include_directory", - parent = ":winsdk_um_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/um", - ) - -+filegroup( -+ name = "winsdk_um_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/um"], -+) -+ -+source_directory_headers( -+ name = "winsdk_um_include", -+ directory = ":winsdk_um_include_directory", -+ source_directory = ":winsdk_um_include_source_directory", -+) -+ - directory( - name = "winsdk_winrt_include_files", - srcs = glob( -@@ -80,11 +114,22 @@ directory( - ) - - subdirectory( -- name = "winsdk_winrt_include", -+ name = "winsdk_winrt_include_directory", - parent = ":winsdk_winrt_include_files", - path = "__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/winrt", - ) - -+filegroup( -+ name = "winsdk_winrt_include_source_directory", -+ srcs = ["__WINSDK_DIR__/base/c/Include/__WINSDK_INCLUDE_VERSION__/winrt"], -+) -+ -+source_directory_headers( -+ name = "winsdk_winrt_include", -+ directory = ":winsdk_winrt_include_directory", -+ source_directory = ":winsdk_winrt_include_source_directory", -+) -+ - directory( - name = "winsdk_ucrt_lib_arm64_files", - srcs = glob( -diff --git a/windows/source_directory_headers.bzl b/windows/source_directory_headers.bzl -new file mode 100644 ---- /dev/null -+++ b/windows/source_directory_headers.bzl -@@ -0,0 +1,20 @@ -+"""Headers exposed as one source directory with their DirectoryInfo.""" -+ -+load("@bazel_skylib//rules/directory:providers.bzl", "DirectoryInfo") -+ -+def _source_directory_headers_impl(ctx): -+ return [ -+ ctx.attr.directory[DirectoryInfo], -+ DefaultInfo(files = ctx.attr.source_directory[DefaultInfo].files), -+ ] -+ -+source_directory_headers = rule( -+ implementation = _source_directory_headers_impl, -+ doc = "Returns the DirectoryInfo of `directory` and the single source directory of `source_directory`.", -+ attrs = { -+ "directory": attr.label(mandatory = True, providers = [DirectoryInfo], doc = "Directory whose DirectoryInfo is forwarded."), -+ "source_directory": attr.label(mandatory = True, doc = "Filegroup holding the same directory as a source directory."), -+ }, -+ provides = [DirectoryInfo], -+ cfg = config.none(), -+) diff --git a/families/zig/zig/lang.json b/families/zig/zig/lang.json deleted file mode 100644 index 772d76906e..0000000000 --- a/families/zig/zig/lang.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "$schema": "../../../modules/lang.schema.json", - "name": "zig", - "title": "Zig", - "family": "zig", - "ecosystems": [ - "zig packages" - ], - "manifests": [ - "build.zig.zon" - ], - "lockfiles": [], - "tools": [ - "zig_fmt" - ], - "platforms": [ - "linux_arm64", - "linux_x86_64", - "macos_arm64", - "windows_arm64", - "windows_x86_64" - ], - "pins": [], - "entry_points": [] -} diff --git a/fortran/BUILD.bazel b/fortran/BUILD.bazel new file mode 100644 index 0000000000..2c51b896e5 --- /dev/null +++ b/fortran/BUILD.bazel @@ -0,0 +1,6 @@ +exports_files([ + "README.md", + "defs.bzl", + "extensions.bzl", + "lang.json", +]) diff --git a/fortran/README.md b/fortran/README.md index fd70bdcb2f..a8ce4114ca 100644 --- a/fortran/README.md +++ b/fortran/README.md @@ -13,7 +13,7 @@ Run `dx init --apply demo-app` and add sources. The language is wired when its sources appear. ```python -load("@rules_dx//fortran/rules:defs.bzl", "fortran_binary", "fortran_library", "fortran_test") +load("@rules_dx//fortran:defs.bzl", "fortran_binary", "fortran_library", "fortran_test") fortran_library( name = "units", @@ -62,7 +62,7 @@ fortran_doc_shard( ## Rules -Load the rules from `@rules_dx//fortran/rules:defs.bzl`. `fortran_library` +Load the rules from `@rules_dx//fortran:defs.bzl`. `fortran_library` wraps the [rules_fortran](https://github.com/miinso/rules_fortran) rule and takes the same attributes. diff --git a/fortran/defs.bzl b/fortran/defs.bzl new file mode 100644 index 0000000000..0389b0f61d --- /dev/null +++ b/fortran/defs.bzl @@ -0,0 +1,16 @@ +"""Public Fortran API.""" + +load( + "//fortran/private:defs.bzl", + _FORTRAN_COMPATIBLE_WITH = "FORTRAN_COMPATIBLE_WITH", + _fortran_binary = "fortran_binary", + _fortran_library = "fortran_library", + _fortran_test = "fortran_test", + _library_name = "library_name", +) + +FORTRAN_COMPATIBLE_WITH = _FORTRAN_COMPATIBLE_WITH +library_name = _library_name +fortran_library = _fortran_library +fortran_binary = _fortran_binary +fortran_test = _fortran_test diff --git a/fortran/extensions.bzl b/fortran/extensions.bzl new file mode 100644 index 0000000000..f72178d560 --- /dev/null +++ b/fortran/extensions.bzl @@ -0,0 +1,5 @@ +"""Public Fortran module extensions.""" + +load("//fortran/private/toolchain:extensions.bzl", _fortran = "fortran") + +fortran = _fortran diff --git a/fortran/lang.json b/fortran/lang.json index 890314bfa7..c1f763750f 100644 --- a/fortran/lang.json +++ b/fortran/lang.json @@ -2,7 +2,7 @@ "$schema": "../modules/lang.schema.json", "name": "fortran", "title": "Fortran", - "family": "fortran", + "family": "core", "ecosystems": [], "manifests": [ "fpm.toml" @@ -16,7 +16,7 @@ "linux_x86_64" ], "pins": [ - "toolchain/pins.bzl" + "private/toolchain/pins.bzl" ], "entry_points": [ "library_name", diff --git a/fortran/rules/BUILD.bazel b/fortran/private/BUILD.bazel similarity index 100% rename from fortran/rules/BUILD.bazel rename to fortran/private/BUILD.bazel diff --git a/fortran/rules/defs.bzl b/fortran/private/defs.bzl similarity index 98% rename from fortran/rules/defs.bzl rename to fortran/private/defs.bzl index 59bade645b..c0c324a04b 100644 --- a/fortran/rules/defs.bzl +++ b/fortran/private/defs.bzl @@ -44,7 +44,7 @@ def _kcov_upstream_impl(settings, _attr): return { "//command_line_option:collect_code_coverage": False, "//command_line_option:strip": "never" if coverage else settings["//command_line_option:strip"], - "//fortran/rules:kcov": coverage, + "//fortran/private:kcov": coverage, } _kcov_upstream = transition( @@ -56,7 +56,7 @@ _kcov_upstream = transition( outputs = [ "//command_line_option:collect_code_coverage", "//command_line_option:strip", - "//fortran/rules:kcov", + "//fortran/private:kcov", ], ) diff --git a/fortran/rules/fpm_lock.bzl b/fortran/private/fpm_lock.bzl similarity index 100% rename from fortran/rules/fpm_lock.bzl rename to fortran/private/fpm_lock.bzl diff --git a/fortran/rules/kwargs.bzl b/fortran/private/kwargs.bzl similarity index 86% rename from fortran/rules/kwargs.bzl rename to fortran/private/kwargs.bzl index 704251ca29..69a064b6c0 100644 --- a/fortran/rules/kwargs.bzl +++ b/fortran/private/kwargs.bzl @@ -1,8 +1,8 @@ -load("//fortran/toolchain:pins.bzl", "FORTRAN_CELLS") +load("//fortran/private/toolchain:pins.bzl", "FORTRAN_CELLS") load("//libs/starlark:cells.bzl", "cells_compatible_with") load("//libs/starlark:wrapper.bzl", "dx_language_kwargs") -FORTRAN_COMPATIBLE_WITH = cells_compatible_with(FORTRAN_CELLS, "//fortran/toolchain", sorted(FORTRAN_CELLS.keys())) +FORTRAN_COMPATIBLE_WITH = cells_compatible_with(FORTRAN_CELLS, "//fortran/private/toolchain", sorted(FORTRAN_CELLS.keys())) SKIP_TAGS = [] @@ -14,7 +14,7 @@ def fortran_with_defaults(kwargs): """Returns kwargs with the qualified Fortran cell appended to target_compatible_with and the quality skip tags.""" out = dx_language_kwargs(kwargs, SKIP_TAGS, FORTRAN_COMPATIBLE_WITH) out["copts"] = (out.get("copts") or []) + select({ - Label("//fortran/rules:kcov_build"): ["-g"], + Label("//fortran/private:kcov_build"): ["-g"], "//conditions:default": [], }) return out diff --git a/fortran/toolchain/BUILD.bazel b/fortran/private/toolchain/BUILD.bazel similarity index 100% rename from fortran/toolchain/BUILD.bazel rename to fortran/private/toolchain/BUILD.bazel diff --git a/fortran/toolchain/extensions.bzl b/fortran/private/toolchain/extensions.bzl similarity index 93% rename from fortran/toolchain/extensions.bzl rename to fortran/private/toolchain/extensions.bzl index 7cadfab69d..b7567b62f8 100644 --- a/fortran/toolchain/extensions.bzl +++ b/fortran/private/toolchain/extensions.bzl @@ -1,6 +1,6 @@ -"""Module extension for fortran/toolchain.""" +"""Module extension for fortran/private/toolchain.""" -load("//fortran/rules:fpm_lock.bzl", "fpm_lock_packages") +load("//fortran/private:fpm_lock.bzl", "fpm_lock_packages") load("//libs/starlark:repo.bzl", "hub_repo", "pinned_archive") load(":pins.bzl", "FORTRAN_CELLS", "RULES_FORTRAN_COMMIT", "RULES_FORTRAN_SHA256", "RULES_FORTRAN_URL") load(":repos.bzl", "DROPPED_PATHS", "FLANG_PREFIX", "FLANG_RT_NAME", "HUB_NAME", "flang_build", "flang_rt_repo", "fpm_build", "fpm_hub_build", "hub_build") @@ -36,7 +36,7 @@ def _fortran_impl(mctx): strip_prefix = FORTRAN_CELLS[cell].strip_prefix, urls = [FORTRAN_CELLS[cell].url], ) - flang_rt_repo(name = FLANG_RT_NAME, build_file = Label("//fortran/toolchain:flang_rt.BUILD.bazel")) + flang_rt_repo(name = FLANG_RT_NAME, build_file = Label("//fortran/private/toolchain:flang_rt.BUILD.bazel")) hub_repo(name = HUB_NAME, files = hub_build()) for module in mctx.modules: for tag in module.tags.fpm: diff --git a/fortran/toolchain/flags.bzl b/fortran/private/toolchain/flags.bzl similarity index 100% rename from fortran/toolchain/flags.bzl rename to fortran/private/toolchain/flags.bzl diff --git a/fortran/toolchain/flang_rt.BUILD.bazel b/fortran/private/toolchain/flang_rt.BUILD.bazel similarity index 100% rename from fortran/toolchain/flang_rt.BUILD.bazel rename to fortran/private/toolchain/flang_rt.BUILD.bazel diff --git a/fortran/toolchain/metadata_tests.bzl b/fortran/private/toolchain/metadata_tests.bzl similarity index 98% rename from fortran/toolchain/metadata_tests.bzl rename to fortran/private/toolchain/metadata_tests.bzl index f6e1f2b094..b0d2073da1 100644 --- a/fortran/toolchain/metadata_tests.bzl +++ b/fortran/private/toolchain/metadata_tests.bzl @@ -1,7 +1,7 @@ """Fortran toolchain pin and acquisition tests.""" load("@rules_fortran//fortran/private:providers.bzl", "FortranToolchainInfo") -load("//fortran/rules:fpm_lock.bzl", "fpm_lock_packages") +load("//fortran/private:fpm_lock.bzl", "fpm_lock_packages") load("//libs/starlark:defs.bzl", "expect_contains", "expect_equal", "expect_true", "starlark_test") load(":pins.bzl", "FLANG_RT_PREFIX", "FLANG_VERSION", "FORTRAN_CELLS") load(":repos.bzl", "DROPPED_PATHS", "FLANG_RT_TREES", "flang_major", "flang_rt_build", "fpm_build", "fpm_hub_build", "hub_build") diff --git a/fortran/toolchain/pins.bzl b/fortran/private/toolchain/pins.bzl similarity index 100% rename from fortran/toolchain/pins.bzl rename to fortran/private/toolchain/pins.bzl diff --git a/fortran/toolchain/repos.bzl b/fortran/private/toolchain/repos.bzl similarity index 95% rename from fortran/toolchain/repos.bzl rename to fortran/private/toolchain/repos.bzl index fa48b78911..2842e856e2 100644 --- a/fortran/toolchain/repos.bzl +++ b/fortran/private/toolchain/repos.bzl @@ -109,7 +109,7 @@ flang_rt_repo = repository_rule( def hub_build(): """Returns the hub files: the root toolchains and exec Flang aliases, and impl with the toolchain targets.""" - impl = ['load("@rules_dx//fortran/toolchain:toolchain.bzl", "dx_fortran_toolchain")\n\npackage(default_visibility = ["//visibility:public"])\n'] + impl = ['load("@rules_dx//fortran/private/toolchain:toolchain.bzl", "dx_fortran_toolchain")\n\npackage(default_visibility = ["//visibility:public"])\n'] root = ['package(default_visibility = ["//visibility:public"])\n'] for cell in sorted(FORTRAN_CELLS.keys()): impl.append(_IMPL.format( @@ -130,7 +130,7 @@ def hub_build(): root.append(_TOOL.format(name = tool, cases = repr(cases))) return {"BUILD.bazel": "\n".join(root), "impl/BUILD.bazel": "\n".join(impl)} -_FPM_BUILD = """load("@rules_dx//fortran/rules:defs.bzl", "fortran_library") +_FPM_BUILD = """load("@rules_dx//fortran/private:defs.bzl", "fortran_library") fortran_library( name = "{name}", diff --git a/fortran/toolchain/toolchain.bzl b/fortran/private/toolchain/toolchain.bzl similarity index 96% rename from fortran/toolchain/toolchain.bzl rename to fortran/private/toolchain/toolchain.bzl index 0fcca9d7a8..8668c59c18 100644 --- a/fortran/toolchain/toolchain.bzl +++ b/fortran/private/toolchain/toolchain.bzl @@ -2,7 +2,7 @@ load("@rules_cc//cc/common:cc_info.bzl", "CcInfo") load("@rules_fortran//fortran/private:providers.bzl", "FortranToolchainInfo") -load("//fortran/toolchain:flags.bzl", "MODULE_FLAG_FORMAT") +load("//fortran/private/toolchain:flags.bzl", "MODULE_FLAG_FORMAT") PREPROCESSOR_FLAG = "-cpp" diff --git a/families/fortran/fortran/tests/fixtures/calc/BUILD.bazel b/fortran/tests/fixtures/calc/BUILD.bazel similarity index 83% rename from families/fortran/fortran/tests/fixtures/calc/BUILD.bazel rename to fortran/tests/fixtures/calc/BUILD.bazel index bb8eeec223..e5fd25e33f 100644 --- a/families/fortran/fortran/tests/fixtures/calc/BUILD.bazel +++ b/fortran/tests/fixtures/calc/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//fortran/rules:defs.bzl", "fortran_library", "fortran_test") +load("@rules_dx//fortran:defs.bzl", "fortran_library", "fortran_test") load("@rules_dx//tools/coverage/kcov:kcov_tests.bzl", "dx_kcov_env_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") @@ -18,7 +18,7 @@ fortran_test( dx_kcov_env_test( name = "calc_test_kcov_test", instrumented = ["fortran/tests/fixtures/calc/calc.f90"], - linux_platform = "//fortran/rules:linux_x86_64", + linux_platform = "//fortran/private:linux_x86_64", target = ":calc_test", upstream = "calc_test_upstream", ) diff --git a/families/fortran/fortran/tests/fixtures/calc/calc.f90 b/fortran/tests/fixtures/calc/calc.f90 similarity index 100% rename from families/fortran/fortran/tests/fixtures/calc/calc.f90 rename to fortran/tests/fixtures/calc/calc.f90 diff --git a/families/fortran/fortran/tests/fixtures/calc/calc_test.f90 b/fortran/tests/fixtures/calc/calc_test.f90 similarity index 100% rename from families/fortran/fortran/tests/fixtures/calc/calc_test.f90 rename to fortran/tests/fixtures/calc/calc_test.f90 diff --git a/families/fortran/fortran/tests/negative/BUILD.bazel b/fortran/tests/negative/BUILD.bazel similarity index 96% rename from families/fortran/fortran/tests/negative/BUILD.bazel rename to fortran/tests/negative/BUILD.bazel index 4910ae301c..c65e78d584 100644 --- a/families/fortran/fortran/tests/negative/BUILD.bazel +++ b/fortran/tests/negative/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//fortran/rules:defs.bzl", "fortran_library") +load("@rules_dx//fortran:defs.bzl", "fortran_library") load("//fortran/tests/negative:negative_tests.bzl", "fortran_module_input_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") diff --git a/families/fortran/fortran/tests/negative/base_dep.f90 b/fortran/tests/negative/base_dep.f90 similarity index 100% rename from families/fortran/fortran/tests/negative/base_dep.f90 rename to fortran/tests/negative/base_dep.f90 diff --git a/families/fortran/fortran/tests/negative/consumer.f90 b/fortran/tests/negative/consumer.f90 similarity index 100% rename from families/fortran/fortran/tests/negative/consumer.f90 rename to fortran/tests/negative/consumer.f90 diff --git a/families/fortran/fortran/tests/negative/needs_dep.f90 b/fortran/tests/negative/needs_dep.f90 similarity index 100% rename from families/fortran/fortran/tests/negative/needs_dep.f90 rename to fortran/tests/negative/needs_dep.f90 diff --git a/families/fortran/fortran/tests/negative/negative_tests.bzl b/fortran/tests/negative/negative_tests.bzl similarity index 100% rename from families/fortran/fortran/tests/negative/negative_tests.bzl rename to fortran/tests/negative/negative_tests.bzl diff --git a/families/fortran/fortran/tests/negative/provider.f90 b/fortran/tests/negative/provider.f90 similarity index 100% rename from families/fortran/fortran/tests/negative/provider.f90 rename to fortran/tests/negative/provider.f90 diff --git a/families/fortran/fortran/tests/runtime/BUILD.bazel b/fortran/tests/runtime/BUILD.bazel similarity index 93% rename from families/fortran/fortran/tests/runtime/BUILD.bazel rename to fortran/tests/runtime/BUILD.bazel index ec26565b9a..eca9ece0d0 100644 --- a/families/fortran/fortran/tests/runtime/BUILD.bazel +++ b/fortran/tests/runtime/BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_dx//cc/rules:defs.bzl", "cc_library", "cc_test") -load("@rules_dx//fortran/rules:defs.bzl", "FORTRAN_COMPATIBLE_WITH", "fortran_binary", "fortran_library", "fortran_test") +load("@rules_dx//fortran:defs.bzl", "FORTRAN_COMPATIBLE_WITH", "fortran_binary", "fortran_library", "fortran_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") load("@rules_dx//tools/testing:hello_output.bzl", "dx_hello_output_test") diff --git a/families/fortran/fortran/tests/runtime/c_add.c b/fortran/tests/runtime/c_add.c similarity index 100% rename from families/fortran/fortran/tests/runtime/c_add.c rename to fortran/tests/runtime/c_add.c diff --git a/families/fortran/fortran/tests/runtime/c_add.h b/fortran/tests/runtime/c_add.h similarity index 100% rename from families/fortran/fortran/tests/runtime/c_add.h rename to fortran/tests/runtime/c_add.h diff --git a/families/fortran/fortran/tests/runtime/calls_c_test.f90 b/fortran/tests/runtime/calls_c_test.f90 similarity index 100% rename from families/fortran/fortran/tests/runtime/calls_c_test.f90 rename to fortran/tests/runtime/calls_c_test.f90 diff --git a/families/fortran/fortran/tests/runtime/dot.f90 b/fortran/tests/runtime/dot.f90 similarity index 100% rename from families/fortran/fortran/tests/runtime/dot.f90 rename to fortran/tests/runtime/dot.f90 diff --git a/families/fortran/fortran/tests/runtime/dot_test.c b/fortran/tests/runtime/dot_test.c similarity index 100% rename from families/fortran/fortran/tests/runtime/dot_test.c rename to fortran/tests/runtime/dot_test.c diff --git a/families/fortran/fortran/tests/runtime/greet.f90 b/fortran/tests/runtime/greet.f90 similarity index 100% rename from families/fortran/fortran/tests/runtime/greet.f90 rename to fortran/tests/runtime/greet.f90 diff --git a/families/fortran/fortran/tests/runtime/io_test.F90 b/fortran/tests/runtime/io_test.F90 similarity index 100% rename from families/fortran/fortran/tests/runtime/io_test.F90 rename to fortran/tests/runtime/io_test.F90 diff --git a/families/fortran/fortran/tests/runtime/kinds_a/BUILD.bazel b/fortran/tests/runtime/kinds_a/BUILD.bazel similarity index 85% rename from families/fortran/fortran/tests/runtime/kinds_a/BUILD.bazel rename to fortran/tests/runtime/kinds_a/BUILD.bazel index 7abe5b7fd2..3eba6982da 100644 --- a/families/fortran/fortran/tests/runtime/kinds_a/BUILD.bazel +++ b/fortran/tests/runtime/kinds_a/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//fortran/rules:defs.bzl", "fortran_library") +load("@rules_dx//fortran:defs.bzl", "fortran_library") load("@rules_dx//quality:fixtures.bzl", "real_source_target") fortran_library( diff --git a/families/fortran/fortran/tests/runtime/kinds_a/kinds.f90 b/fortran/tests/runtime/kinds_a/kinds.f90 similarity index 100% rename from families/fortran/fortran/tests/runtime/kinds_a/kinds.f90 rename to fortran/tests/runtime/kinds_a/kinds.f90 diff --git a/families/fortran/fortran/tests/runtime/kinds_b/BUILD.bazel b/fortran/tests/runtime/kinds_b/BUILD.bazel similarity index 86% rename from families/fortran/fortran/tests/runtime/kinds_b/BUILD.bazel rename to fortran/tests/runtime/kinds_b/BUILD.bazel index 19d4e41b38..0ffb68005a 100644 --- a/families/fortran/fortran/tests/runtime/kinds_b/BUILD.bazel +++ b/fortran/tests/runtime/kinds_b/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//fortran/rules:defs.bzl", "fortran_library") +load("@rules_dx//fortran:defs.bzl", "fortran_library") load("@rules_dx//quality:fixtures.bzl", "real_source_target") fortran_library( diff --git a/families/fortran/fortran/tests/runtime/kinds_b/kinds.f90 b/fortran/tests/runtime/kinds_b/kinds.f90 similarity index 100% rename from families/fortran/fortran/tests/runtime/kinds_b/kinds.f90 rename to fortran/tests/runtime/kinds_b/kinds.f90 diff --git a/families/fortran/fortran/tests/runtime/main.f90 b/fortran/tests/runtime/main.f90 similarity index 100% rename from families/fortran/fortran/tests/runtime/main.f90 rename to fortran/tests/runtime/main.f90 diff --git a/families/fortran/fortran/tests/runtime/same_basename_test.f90 b/fortran/tests/runtime/same_basename_test.f90 similarity index 100% rename from families/fortran/fortran/tests/runtime/same_basename_test.f90 rename to fortran/tests/runtime/same_basename_test.f90 diff --git a/families/fortran/fortran/tests/runtime/stats.f90 b/fortran/tests/runtime/stats.f90 similarity index 100% rename from families/fortran/fortran/tests/runtime/stats.f90 rename to fortran/tests/runtime/stats.f90 diff --git a/families/fortran/fortran/tests/runtime/stats_test.f90 b/fortran/tests/runtime/stats_test.f90 similarity index 100% rename from families/fortran/fortran/tests/runtime/stats_test.f90 rename to fortran/tests/runtime/stats_test.f90 diff --git a/gazelle/d/lang.go b/gazelle/d/lang.go index 9ae29284d9..70e294bd14 100644 --- a/gazelle/d/lang.go +++ b/gazelle/d/lang.go @@ -101,7 +101,7 @@ func NewLanguage() language.Language { ExtraKinds: []string{BinaryKind, TestKind}, External: "dub", ConfigureExt: configureDub, - DefsPackage: "d/rules:defs.bzl", + DefsPackage: "d:defs.bzl", ImportAttr: "srcs", IsImportSource: isSupported, IsStdLib: IsStdLib, diff --git a/gazelle/d/testdata/d_app/source/BUILD.out b/gazelle/d/testdata/d_app/source/BUILD.out index 34eead7f80..1e4060dc2d 100644 --- a/gazelle/d/testdata/d_app/source/BUILD.out +++ b/gazelle/d/testdata/d_app/source/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_binary") +load("@rules_dx//d:defs.bzl", "d_binary") d_binary( name = "source", diff --git a/gazelle/d/testdata/d_app/source/base/BUILD.out b/gazelle/d/testdata/d_app/source/base/BUILD.out index 31288fb33f..6384032586 100644 --- a/gazelle/d/testdata/d_app/source/base/BUILD.out +++ b/gazelle/d/testdata/d_app/source/base/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library", "d_test") +load("@rules_dx//d:defs.bzl", "d_library", "d_test") d_library( name = "base", diff --git a/gazelle/d/testdata/d_app/source/cli/BUILD.out b/gazelle/d/testdata/d_app/source/cli/BUILD.out index 673871cd5f..e2158e517b 100644 --- a/gazelle/d/testdata/d_app/source/cli/BUILD.out +++ b/gazelle/d/testdata/d_app/source/cli/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library", "d_test") +load("@rules_dx//d:defs.bzl", "d_library", "d_test") d_library( name = "cli", diff --git a/gazelle/d/testdata/dub_project/source/BUILD.out b/gazelle/d/testdata/dub_project/source/BUILD.out index edea6df378..111a26b3cd 100644 --- a/gazelle/d/testdata/dub_project/source/BUILD.out +++ b/gazelle/d/testdata/dub_project/source/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_binary") +load("@rules_dx//d:defs.bzl", "d_binary") d_binary( name = "source", diff --git a/gazelle/d/testdata/dub_project/source/mylib/BUILD.out b/gazelle/d/testdata/dub_project/source/mylib/BUILD.out index a3c4c8cbc6..d59085c61b 100644 --- a/gazelle/d/testdata/dub_project/source/mylib/BUILD.out +++ b/gazelle/d/testdata/dub_project/source/mylib/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library") +load("@rules_dx//d:defs.bzl", "d_library") d_library( name = "mylib", diff --git a/gazelle/d/testdata/modules/app/BUILD.out b/gazelle/d/testdata/modules/app/BUILD.out index cae9b07af0..1f920861aa 100644 --- a/gazelle/d/testdata/modules/app/BUILD.out +++ b/gazelle/d/testdata/modules/app/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_binary", "d_library") +load("@rules_dx//d:defs.bzl", "d_binary", "d_library") d_library( name = "app", diff --git a/gazelle/d/testdata/modules/flat/BUILD.out b/gazelle/d/testdata/modules/flat/BUILD.out index 6064b913ef..792fab7182 100644 --- a/gazelle/d/testdata/modules/flat/BUILD.out +++ b/gazelle/d/testdata/modules/flat/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library") +load("@rules_dx//d:defs.bzl", "d_library") d_library( name = "flat", diff --git a/gazelle/d/testdata/modules/lib/shapes/BUILD.out b/gazelle/d/testdata/modules/lib/shapes/BUILD.out index 9770cb90eb..7c692c0218 100644 --- a/gazelle/d/testdata/modules/lib/shapes/BUILD.out +++ b/gazelle/d/testdata/modules/lib/shapes/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library") +load("@rules_dx//d:defs.bzl", "d_library") d_library( name = "shapes", diff --git a/gazelle/d/testdata/modules/src/app/cli/BUILD.out b/gazelle/d/testdata/modules/src/app/cli/BUILD.out index e28d5571d0..315d5c9194 100644 --- a/gazelle/d/testdata/modules/src/app/cli/BUILD.out +++ b/gazelle/d/testdata/modules/src/app/cli/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library") +load("@rules_dx//d:defs.bzl", "d_library") d_library( name = "cli", diff --git a/gazelle/d/testdata/modules/src/app/core/BUILD.out b/gazelle/d/testdata/modules/src/app/core/BUILD.out index d12993fced..c1f573002e 100644 --- a/gazelle/d/testdata/modules/src/app/core/BUILD.out +++ b/gazelle/d/testdata/modules/src/app/core/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library") +load("@rules_dx//d:defs.bzl", "d_library") d_library( name = "core", diff --git a/gazelle/d/testdata/modules/src/keep/BUILD.in b/gazelle/d/testdata/modules/src/keep/BUILD.in index 77601c8b88..caa825165c 100644 --- a/gazelle/d/testdata/modules/src/keep/BUILD.in +++ b/gazelle/d/testdata/modules/src/keep/BUILD.in @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library") +load("@rules_dx//d:defs.bzl", "d_library") d_library( name = "keep", diff --git a/gazelle/d/testdata/modules/src/keep/BUILD.out b/gazelle/d/testdata/modules/src/keep/BUILD.out index 1e6255f607..f72a8f47ef 100644 --- a/gazelle/d/testdata/modules/src/keep/BUILD.out +++ b/gazelle/d/testdata/modules/src/keep/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library") +load("@rules_dx//d:defs.bzl", "d_library") d_library( name = "keep", diff --git a/gazelle/d/testdata/modules/strings/BUILD.out b/gazelle/d/testdata/modules/strings/BUILD.out index 13d2fb13f6..a3a319ebbd 100644 --- a/gazelle/d/testdata/modules/strings/BUILD.out +++ b/gazelle/d/testdata/modules/strings/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library") +load("@rules_dx//d:defs.bzl", "d_library") d_library( name = "strings", diff --git a/gazelle/d/testdata/modules/tested/BUILD.out b/gazelle/d/testdata/modules/tested/BUILD.out index f544284d8d..336ba557b6 100644 --- a/gazelle/d/testdata/modules/tested/BUILD.out +++ b/gazelle/d/testdata/modules/tested/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_library", "d_test") +load("@rules_dx//d:defs.bzl", "d_library", "d_test") d_library( name = "tested", diff --git a/gazelle/dispatch/conformance_test.go b/gazelle/dispatch/conformance_test.go index 356fcc9747..9d9e4c8ba3 100644 --- a/gazelle/dispatch/conformance_test.go +++ b/gazelle/dispatch/conformance_test.go @@ -53,7 +53,7 @@ var conformanceRows = map[string]conformanceRow{ "d": { files: map[string]string{"demo.d": "module demo;\n"}, inert: []string{"notes.txt"}, - kind: "d_library", target: "demo", defs: "d/rules:defs.bzl", + kind: "d_library", target: "demo", defs: "d:defs.bzl", symbols: []string{"d_library", "d_binary", "d_test"}, }, "dart": { @@ -122,7 +122,7 @@ var conformanceRows = map[string]conformanceRow{ "Project.toml": "name = \"Demo\"\nuuid = \"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa\"\n", "src/Demo.jl": "module Demo\nend\n", }, - kind: "julia_library", target: "Demo", defs: "julia/rules:defs.bzl", + kind: "julia_library", target: "Demo", defs: "julia:defs.bzl", symbols: []string{"julia_library", "julia_test"}, oldSrcs: []string{"src/Old.jl"}, }, @@ -271,7 +271,7 @@ var conformanceRows = map[string]conformanceRow{ }, "zig": { files: map[string]string{"demo.zig": "const std = @import(\"std\");\n"}, - kind: "zig_library", target: "demo", defs: "zig/rules:defs.bzl", + kind: "zig_library", target: "demo", defs: "zig:defs.bzl", symbols: []string{"zig_library", "zig_test"}, }, } diff --git a/gazelle/julia/BUILD.bazel b/gazelle/julia/BUILD.bazel index 491f2d4d98..aec67e25a9 100644 --- a/gazelle/julia/BUILD.bazel +++ b/gazelle/julia/BUILD.bazel @@ -1,6 +1,6 @@ load("@gazelle//:def.bzl", "gazelle_generation_test") load("@rules_go//go:def.bzl", "go_library", "go_test") -load("//julia/rules:defs.bzl", "julia_binary", "julia_test") +load("//julia:defs.bzl", "julia_binary", "julia_test") load("//quality:fixtures.bzl", "real_source_target") package(default_visibility = ["//visibility:private"]) diff --git a/gazelle/julia/lang.go b/gazelle/julia/lang.go index 0b2009c866..d04976d75d 100644 --- a/gazelle/julia/lang.go +++ b/gazelle/julia/lang.go @@ -50,7 +50,7 @@ func NewLanguage() language.Language { LibraryKind: LibraryKind, ExtraKinds: []string{TestKind}, Kinds: juliaKinds, - DefsPackage: "julia/rules:defs.bzl", + DefsPackage: "julia:defs.bzl", ImportAttr: "srcs", IsStdLib: IsStdLib, UnresolvedHint: UnresolvedHint, diff --git a/gazelle/julia/testdata/packages/nested/BUILD.out b/gazelle/julia/testdata/packages/nested/BUILD.out index 5b1a9b887c..bfebaba1b1 100644 --- a/gazelle/julia/testdata/packages/nested/BUILD.out +++ b/gazelle/julia/testdata/packages/nested/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_library") +load("@rules_dx//julia:defs.bzl", "julia_library") julia_library( name = "Outer", diff --git a/gazelle/julia/testdata/packages/nested/src/sub/BUILD.out b/gazelle/julia/testdata/packages/nested/src/sub/BUILD.out index 8d79ab63eb..8a7b699dd8 100644 --- a/gazelle/julia/testdata/packages/nested/src/sub/BUILD.out +++ b/gazelle/julia/testdata/packages/nested/src/sub/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_library") +load("@rules_dx//julia:defs.bzl", "julia_library") julia_library( name = "Inner", diff --git a/gazelle/julia/testdata/packages/pkg/App/BUILD.out b/gazelle/julia/testdata/packages/pkg/App/BUILD.out index 730be16a90..f27537ab85 100644 --- a/gazelle/julia/testdata/packages/pkg/App/BUILD.out +++ b/gazelle/julia/testdata/packages/pkg/App/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_library", "julia_test") +load("@rules_dx//julia:defs.bzl", "julia_library", "julia_test") julia_library( name = "App", diff --git a/gazelle/julia/testdata/packages/pkg/Stats/BUILD.out b/gazelle/julia/testdata/packages/pkg/Stats/BUILD.out index a9f26333b4..1d175b20c5 100644 --- a/gazelle/julia/testdata/packages/pkg/Stats/BUILD.out +++ b/gazelle/julia/testdata/packages/pkg/Stats/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_library") +load("@rules_dx//julia:defs.bzl", "julia_library") julia_library( name = "Stats", diff --git a/gazelle/julia/testdata/packages/stale/BUILD.in b/gazelle/julia/testdata/packages/stale/BUILD.in index 9093138b48..e522daac4a 100644 --- a/gazelle/julia/testdata/packages/stale/BUILD.in +++ b/gazelle/julia/testdata/packages/stale/BUILD.in @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_binary", "julia_library") +load("@rules_dx//julia:defs.bzl", "julia_binary", "julia_library") julia_library( name = "Stale", diff --git a/gazelle/julia/testdata/packages/stale/BUILD.out b/gazelle/julia/testdata/packages/stale/BUILD.out index 4d73411c18..a7c91ee429 100644 --- a/gazelle/julia/testdata/packages/stale/BUILD.out +++ b/gazelle/julia/testdata/packages/stale/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_binary", "julia_library") +load("@rules_dx//julia:defs.bzl", "julia_binary", "julia_library") julia_library( name = "Stale", diff --git a/gazelle/julia/testdata/packages/starter/BUILD.in b/gazelle/julia/testdata/packages/starter/BUILD.in index d7f3a396ef..9c4deac7bb 100644 --- a/gazelle/julia/testdata/packages/starter/BUILD.in +++ b/gazelle/julia/testdata/packages/starter/BUILD.in @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_binary", "julia_library", "julia_test") +load("@rules_dx//julia:defs.bzl", "julia_binary", "julia_library", "julia_test") julia_library( name = "Starter", diff --git a/gazelle/julia/testdata/packages/starter/BUILD.out b/gazelle/julia/testdata/packages/starter/BUILD.out index 45b8ec934a..32b33fa227 100644 --- a/gazelle/julia/testdata/packages/starter/BUILD.out +++ b/gazelle/julia/testdata/packages/starter/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_binary", "julia_library", "julia_test") +load("@rules_dx//julia:defs.bzl", "julia_binary", "julia_library", "julia_test") julia_library( name = "Starter", diff --git a/gazelle/julia/testdata/root/BUILD.out b/gazelle/julia/testdata/root/BUILD.out index f3add82ded..5ffd514cd7 100644 --- a/gazelle/julia/testdata/root/BUILD.out +++ b/gazelle/julia/testdata/root/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_library", "julia_test") +load("@rules_dx//julia:defs.bzl", "julia_library", "julia_test") julia_library( name = "Demo", diff --git a/gazelle/zig/lang.go b/gazelle/zig/lang.go index 00d8e64bfb..538538939d 100644 --- a/gazelle/zig/lang.go +++ b/gazelle/zig/lang.go @@ -41,7 +41,7 @@ func NewLanguage() language.Language { LibraryKind: LibraryKind, Kinds: zigKinds, ExtraKinds: []string{TestKind}, - DefsPackage: "zig/rules:defs.bzl", + DefsPackage: "zig:defs.bzl", ImportAttr: "main", Identity: func(name string) string { return name }, IsImportSource: isSupported, diff --git a/gazelle/zig/testdata/modules/pkg/app/BUILD.out b/gazelle/zig/testdata/modules/pkg/app/BUILD.out index 76099c984f..ad4645fa84 100644 --- a/gazelle/zig/testdata/modules/pkg/app/BUILD.out +++ b/gazelle/zig/testdata/modules/pkg/app/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//zig/rules:defs.bzl", "zig_library") +load("@rules_dx//zig:defs.bzl", "zig_library") # A user-owned rule must survive generation unchanged. filegroup( diff --git a/gazelle/zig/testdata/modules/pkg/greet/BUILD.out b/gazelle/zig/testdata/modules/pkg/greet/BUILD.out index 79174f6258..b98092268d 100644 --- a/gazelle/zig/testdata/modules/pkg/greet/BUILD.out +++ b/gazelle/zig/testdata/modules/pkg/greet/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//zig/rules:defs.bzl", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_library", "zig_test") zig_library( name = "greet", diff --git a/gazelle/zig/testdata/root/BUILD.out b/gazelle/zig/testdata/root/BUILD.out index 8efab7510e..74311c93a6 100644 --- a/gazelle/zig/testdata/root/BUILD.out +++ b/gazelle/zig/testdata/root/BUILD.out @@ -1,4 +1,4 @@ -load("@rules_dx//zig/rules:defs.bzl", "zig_library") +load("@rules_dx//zig:defs.bzl", "zig_library") zig_library( name = "demo", diff --git a/julia/BUILD.bazel b/julia/BUILD.bazel new file mode 100644 index 0000000000..f1649bf838 --- /dev/null +++ b/julia/BUILD.bazel @@ -0,0 +1,5 @@ +exports_files([ + "README.md", + "defs.bzl", + "lang.json", +]) diff --git a/julia/README.md b/julia/README.md index 892e759b43..52d8aee0c7 100644 --- a/julia/README.md +++ b/julia/README.md @@ -11,7 +11,7 @@ to precompile. Libraries precompile at build time, so a syntax error fails `bazel build`. ```python -load("@rules_dx//julia/rules:defs.bzl", "julia_binary", "julia_library", "julia_test") +load("@rules_dx//julia:defs.bzl", "julia_binary", "julia_library", "julia_test") julia_library( name = "Greet", diff --git a/julia/defs.bzl b/julia/defs.bzl new file mode 100644 index 0000000000..7a13e07f26 --- /dev/null +++ b/julia/defs.bzl @@ -0,0 +1,16 @@ +"""Public Julia API.""" + +load( + "//julia/private:defs.bzl", + _JULIA_COMPATIBLE_WITH = "JULIA_COMPATIBLE_WITH", + _julia_binary = "julia_binary", + _julia_library = "julia_library", + _julia_standalone_binary = "julia_standalone_binary", + _julia_test = "julia_test", +) + +JULIA_COMPATIBLE_WITH = _JULIA_COMPATIBLE_WITH +julia_library = _julia_library +julia_binary = _julia_binary +julia_test = _julia_test +julia_standalone_binary = _julia_standalone_binary diff --git a/julia/lang.json b/julia/lang.json index cec5210fe3..60add5b537 100644 --- a/julia/lang.json +++ b/julia/lang.json @@ -2,7 +2,7 @@ "$schema": "../modules/lang.schema.json", "name": "julia", "title": "Julia", - "family": "julia", + "family": "core", "ecosystems": [ "julia general registry" ], diff --git a/julia/rules/BUILD.bazel b/julia/private/BUILD.bazel similarity index 100% rename from julia/rules/BUILD.bazel rename to julia/private/BUILD.bazel diff --git a/julia/coverage/BUILD.bazel b/julia/private/coverage/BUILD.bazel similarity index 92% rename from julia/coverage/BUILD.bazel rename to julia/private/coverage/BUILD.bazel index 2411b5af15..3510b10b63 100644 --- a/julia/coverage/BUILD.bazel +++ b/julia/private/coverage/BUILD.bazel @@ -1,8 +1,8 @@ load("@rules_julia//julia:defs.bzl", "julia_binary") load("@rules_julia//julia/pkg:julia_pkg_resolve.bzl", "julia_pkg_resolve") load("@rules_julia//julia/pkg:julia_pkg_resolve_test.bzl", "julia_pkg_resolve_test") -load("//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH") -load("//julia/tools:julia_tool.bzl", "dx_julia_tool") +load("//julia/private:defs.bzl", "JULIA_COMPATIBLE_WITH") +load("//julia/private/tools:julia_tool.bzl", "dx_julia_tool") load("//quality:fixtures.bzl", "real_source_target") package(default_visibility = ["//visibility:public"]) diff --git a/julia/coverage/Manifest.bazel.json b/julia/private/coverage/Manifest.bazel.json similarity index 100% rename from julia/coverage/Manifest.bazel.json rename to julia/private/coverage/Manifest.bazel.json diff --git a/julia/coverage/Manifest.toml b/julia/private/coverage/Manifest.toml similarity index 100% rename from julia/coverage/Manifest.toml rename to julia/private/coverage/Manifest.toml diff --git a/julia/coverage/Project.toml b/julia/private/coverage/Project.toml similarity index 100% rename from julia/coverage/Project.toml rename to julia/private/coverage/Project.toml diff --git a/julia/coverage/coverage.bzl b/julia/private/coverage/coverage.bzl similarity index 97% rename from julia/coverage/coverage.bzl rename to julia/private/coverage/coverage.bzl index 6ee9bb479a..641d8d5b82 100644 --- a/julia/coverage/coverage.bzl +++ b/julia/private/coverage/coverage.bzl @@ -31,7 +31,7 @@ def dx_julia_coverage_attrs(): """Returns the attributes the Julia coverage runner needs.""" return { "_dx_julia_coverage_runner": attr.label( - default = Label("//julia/coverage:runner"), + default = Label("//julia/private/coverage:runner"), executable = True, cfg = "target", ), diff --git a/julia/coverage/runner.jl b/julia/private/coverage/runner.jl similarity index 100% rename from julia/coverage/runner.jl rename to julia/private/coverage/runner.jl diff --git a/julia/rules/defs.bzl b/julia/private/defs.bzl similarity index 91% rename from julia/rules/defs.bzl rename to julia/private/defs.bzl index 90d58a8387..c12f46279a 100644 --- a/julia/rules/defs.bzl +++ b/julia/private/defs.bzl @@ -2,7 +2,7 @@ load("@rules_julia//julia:defs.bzl", _julia_binary = "julia_binary", _julia_library = "julia_library", _julia_standalone_binary = "julia_standalone_binary", _julia_test = "julia_test") load("@rules_julia//julia:julia_info.bzl", _JuliaInfo = "JuliaInfo") -load("//julia/coverage:coverage.bzl", "dx_julia_coverage_aspect", "dx_julia_coverage_attrs", "dx_julia_test_coverage") +load("//julia/private/coverage:coverage.bzl", "dx_julia_coverage_aspect", "dx_julia_coverage_attrs", "dx_julia_test_coverage") load("//libs/starlark:cells.bzl", "unsupported_constraint") load("//libs/starlark:entry.bzl", "dx_entry_quality_srcs", "dx_infer_main", "dx_main_candidates") load("//libs/starlark:wrapper.bzl", "DX_EXEC_PROVIDES", "dx_executable_forward_rule", "dx_language_kwargs", "dx_lcov_merger_attr", "dx_library_forward_rule", "dx_wrap", "dx_wrap_binary", "dx_wrap_test") @@ -10,15 +10,15 @@ load("//quality:sources.bzl", "QualitySourcesInfo", "QualityToolsInfo") JuliaInfo = _JuliaInfo -JULIA_QUALITY_TOOLS = {"julia_format": Label("//julia/tools:julia_format")} +JULIA_QUALITY_TOOLS = {"julia_format": Label("//julia/private/tools:julia_format")} JULIA_SOURCE_SPECS = [("julia", "jl")] JULIA_SOURCE_EXTS = [".jl"] JULIA_COMPATIBLE_WITH = select({ - Label("//julia/rules:rules_julia_platform"): [], - "//conditions:default": [Label("@platforms//:incompatible"), unsupported_constraint("//julia/rules")], + Label("//julia/private:rules_julia_platform"): [], + "//conditions:default": [Label("@platforms//:incompatible"), unsupported_constraint("//julia/private")], }) _DX_JULIA_EXEC_PROVIDES = DX_EXEC_PROVIDES + [QualityToolsInfo, _JuliaInfo] @@ -80,7 +80,7 @@ def julia_test(name, *, srcs = None, main = None, visibility = None, **kwargs): kwargs = dx_language_kwargs(kwargs, compatible_with = JULIA_COMPATIBLE_WITH) upstream = dict(kwargs, package_name = name) upstream["julia_flags"] = (kwargs.get("julia_flags") or []) + select({ - Label("//julia/coverage:coverage_on"): ["--code-coverage=user"], + Label("//julia/private/coverage:coverage_on"): ["--code-coverage=user"], "//conditions:default": [], }) upstream["main"] = main diff --git a/julia/rules/platforms.bzl b/julia/private/platforms.bzl similarity index 100% rename from julia/rules/platforms.bzl rename to julia/private/platforms.bzl diff --git a/julia/rules/precompile_tests.bzl b/julia/private/precompile_tests.bzl similarity index 100% rename from julia/rules/precompile_tests.bzl rename to julia/private/precompile_tests.bzl diff --git a/julia/tools/BUILD.bazel b/julia/private/tools/BUILD.bazel similarity index 97% rename from julia/tools/BUILD.bazel rename to julia/private/tools/BUILD.bazel index d61749683a..f07b204247 100644 --- a/julia/tools/BUILD.bazel +++ b/julia/private/tools/BUILD.bazel @@ -1,7 +1,7 @@ load("@rules_julia//julia:defs.bzl", "julia_binary") load("@rules_julia//julia/pkg:julia_pkg_resolve.bzl", "julia_pkg_resolve") load("@rules_julia//julia/pkg:julia_pkg_resolve_test.bzl", "julia_pkg_resolve_test") -load("//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH") +load("//julia/private:defs.bzl", "JULIA_COMPATIBLE_WITH") load("//quality:fixtures.bzl", "real_source_target") load("//rust/rules:defs.bzl", "rust_test") load(":julia_tool.bzl", "dx_julia_tool") diff --git a/julia/tools/Manifest.bazel.json b/julia/private/tools/Manifest.bazel.json similarity index 100% rename from julia/tools/Manifest.bazel.json rename to julia/private/tools/Manifest.bazel.json diff --git a/julia/tools/Manifest.toml b/julia/private/tools/Manifest.toml similarity index 100% rename from julia/tools/Manifest.toml rename to julia/private/tools/Manifest.toml diff --git a/julia/tools/Project.toml b/julia/private/tools/Project.toml similarity index 100% rename from julia/tools/Project.toml rename to julia/private/tools/Project.toml diff --git a/julia/tools/docs/BUILD.bazel b/julia/private/tools/docs/BUILD.bazel similarity index 91% rename from julia/tools/docs/BUILD.bazel rename to julia/private/tools/docs/BUILD.bazel index 77f1ba562f..ef9015b418 100644 --- a/julia/tools/docs/BUILD.bazel +++ b/julia/private/tools/docs/BUILD.bazel @@ -1,6 +1,6 @@ load("@rules_julia//julia/pkg:julia_pkg_resolve.bzl", "julia_pkg_resolve") load("@rules_julia//julia/pkg:julia_pkg_resolve_test.bzl", "julia_pkg_resolve_test") -load("//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH") +load("//julia/private:defs.bzl", "JULIA_COMPATIBLE_WITH") package(default_visibility = ["//visibility:public"]) diff --git a/julia/tools/docs/Manifest.bazel.json b/julia/private/tools/docs/Manifest.bazel.json similarity index 100% rename from julia/tools/docs/Manifest.bazel.json rename to julia/private/tools/docs/Manifest.bazel.json diff --git a/julia/tools/docs/Manifest.toml b/julia/private/tools/docs/Manifest.toml similarity index 100% rename from julia/tools/docs/Manifest.toml rename to julia/private/tools/docs/Manifest.toml diff --git a/julia/tools/docs/Project.toml b/julia/private/tools/docs/Project.toml similarity index 100% rename from julia/tools/docs/Project.toml rename to julia/private/tools/docs/Project.toml diff --git a/julia/tools/docs/patches/BUILD.bazel b/julia/private/tools/docs/patches/BUILD.bazel similarity index 100% rename from julia/tools/docs/patches/BUILD.bazel rename to julia/private/tools/docs/patches/BUILD.bazel diff --git a/julia/tools/docs/patches/Documenter.patch b/julia/private/tools/docs/patches/Documenter.patch similarity index 100% rename from julia/tools/docs/patches/Documenter.patch rename to julia/private/tools/docs/patches/Documenter.patch diff --git a/julia/tools/docs/patches/StructUtils.patch b/julia/private/tools/docs/patches/StructUtils.patch similarity index 100% rename from julia/tools/docs/patches/StructUtils.patch rename to julia/private/tools/docs/patches/StructUtils.patch diff --git a/julia/tools/format.jl b/julia/private/tools/format.jl similarity index 100% rename from julia/tools/format.jl rename to julia/private/tools/format.jl diff --git a/julia/tools/format_cli_test.rs b/julia/private/tools/format_cli_test.rs similarity index 100% rename from julia/tools/format_cli_test.rs rename to julia/private/tools/format_cli_test.rs diff --git a/julia/tools/jet/BUILD.bazel b/julia/private/tools/jet/BUILD.bazel similarity index 93% rename from julia/tools/jet/BUILD.bazel rename to julia/private/tools/jet/BUILD.bazel index d10e628d05..0e2df7838b 100644 --- a/julia/tools/jet/BUILD.bazel +++ b/julia/private/tools/jet/BUILD.bazel @@ -2,8 +2,8 @@ load("@rules_dx//quality:fixtures.bzl", "real_source_target") load("@rules_julia//julia:defs.bzl", "julia_binary") load("@rules_julia//julia/pkg:julia_pkg_resolve.bzl", "julia_pkg_resolve") load("@rules_julia//julia/pkg:julia_pkg_resolve_test.bzl", "julia_pkg_resolve_test") -load("//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH") -load("//julia/tools:julia_tool.bzl", "dx_julia_tool") +load("//julia/private:defs.bzl", "JULIA_COMPATIBLE_WITH") +load("//julia/private/tools:julia_tool.bzl", "dx_julia_tool") load("//rust/rules:defs.bzl", "rust_test") package(default_visibility = ["//visibility:public"]) diff --git a/julia/tools/jet/Manifest.bazel.json b/julia/private/tools/jet/Manifest.bazel.json similarity index 100% rename from julia/tools/jet/Manifest.bazel.json rename to julia/private/tools/jet/Manifest.bazel.json diff --git a/julia/tools/jet/Manifest.toml b/julia/private/tools/jet/Manifest.toml similarity index 100% rename from julia/tools/jet/Manifest.toml rename to julia/private/tools/jet/Manifest.toml diff --git a/julia/tools/jet/Project.toml b/julia/private/tools/jet/Project.toml similarity index 100% rename from julia/tools/jet/Project.toml rename to julia/private/tools/jet/Project.toml diff --git a/julia/tools/jet/jet.jl b/julia/private/tools/jet/jet.jl similarity index 100% rename from julia/tools/jet/jet.jl rename to julia/private/tools/jet/jet.jl diff --git a/julia/tools/jet/jet_cli_test.rs b/julia/private/tools/jet/jet_cli_test.rs similarity index 95% rename from julia/tools/jet/jet_cli_test.rs rename to julia/private/tools/jet/jet_cli_test.rs index 09fc07bd7b..0db87cf167 100644 --- a/julia/tools/jet/jet_cli_test.rs +++ b/julia/private/tools/jet/jet_cli_test.rs @@ -10,7 +10,7 @@ fn scratch(name: &str) -> PathBuf { } fn run(dir: &Path, fixture: &str) -> (Output, PathBuf) { - let source = resolve_runfiles(&format!("_main/julia/tools/jet/testdata/{fixture}")); + let source = resolve_runfiles(&format!("_main/julia/private/tools/jet/testdata/{fixture}")); std::fs::copy(&source, dir.join(fixture)).unwrap_or_else(|error| panic!("copy: {error}")); let config = dir.join("config.toml"); std::fs::write(&config, format!("includes = []\nroots = [\"{fixture}\"]\n")) diff --git a/julia/tools/jet/patches/BUILD.bazel b/julia/private/tools/jet/patches/BUILD.bazel similarity index 100% rename from julia/tools/jet/patches/BUILD.bazel rename to julia/private/tools/jet/patches/BUILD.bazel diff --git a/julia/tools/jet/patches/JET.patch b/julia/private/tools/jet/patches/JET.patch similarity index 100% rename from julia/tools/jet/patches/JET.patch rename to julia/private/tools/jet/patches/JET.patch diff --git a/julia/tools/jet/patches/JET_docs.patch b/julia/private/tools/jet/patches/JET_docs.patch similarity index 100% rename from julia/tools/jet/patches/JET_docs.patch rename to julia/private/tools/jet/patches/JET_docs.patch diff --git a/julia/tools/jet/patches/MacroTools.patch b/julia/private/tools/jet/patches/MacroTools.patch similarity index 100% rename from julia/tools/jet/patches/MacroTools.patch rename to julia/private/tools/jet/patches/MacroTools.patch diff --git a/julia/tools/jet/testdata/buggy.jl b/julia/private/tools/jet/testdata/buggy.jl similarity index 100% rename from julia/tools/jet/testdata/buggy.jl rename to julia/private/tools/jet/testdata/buggy.jl diff --git a/julia/tools/jet/testdata/clean.jl b/julia/private/tools/jet/testdata/clean.jl similarity index 100% rename from julia/tools/jet/testdata/clean.jl rename to julia/private/tools/jet/testdata/clean.jl diff --git a/julia/tools/julia_tool.bzl b/julia/private/tools/julia_tool.bzl similarity index 100% rename from julia/tools/julia_tool.bzl rename to julia/private/tools/julia_tool.bzl diff --git a/julia/tools/lint/BUILD.bazel b/julia/private/tools/lint/BUILD.bazel similarity index 93% rename from julia/tools/lint/BUILD.bazel rename to julia/private/tools/lint/BUILD.bazel index f01b96e4b9..c5d887eaa7 100644 --- a/julia/tools/lint/BUILD.bazel +++ b/julia/private/tools/lint/BUILD.bazel @@ -2,8 +2,8 @@ load("@rules_dx//quality:fixtures.bzl", "real_source_target") load("@rules_julia//julia:defs.bzl", "julia_binary") load("@rules_julia//julia/pkg:julia_pkg_resolve.bzl", "julia_pkg_resolve") load("@rules_julia//julia/pkg:julia_pkg_resolve_test.bzl", "julia_pkg_resolve_test") -load("//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH") -load("//julia/tools:julia_tool.bzl", "dx_julia_tool") +load("//julia/private:defs.bzl", "JULIA_COMPATIBLE_WITH") +load("//julia/private/tools:julia_tool.bzl", "dx_julia_tool") load("//rust/rules:defs.bzl", "rust_test") package(default_visibility = ["//visibility:public"]) diff --git a/julia/tools/lint/Manifest.bazel.json b/julia/private/tools/lint/Manifest.bazel.json similarity index 100% rename from julia/tools/lint/Manifest.bazel.json rename to julia/private/tools/lint/Manifest.bazel.json diff --git a/julia/tools/lint/Manifest.toml b/julia/private/tools/lint/Manifest.toml similarity index 100% rename from julia/tools/lint/Manifest.toml rename to julia/private/tools/lint/Manifest.toml diff --git a/julia/tools/lint/Project.toml b/julia/private/tools/lint/Project.toml similarity index 100% rename from julia/tools/lint/Project.toml rename to julia/private/tools/lint/Project.toml diff --git a/julia/tools/lint/lint.jl b/julia/private/tools/lint/lint.jl similarity index 100% rename from julia/tools/lint/lint.jl rename to julia/private/tools/lint/lint.jl diff --git a/julia/tools/lint/lint_cli_test.rs b/julia/private/tools/lint/lint_cli_test.rs similarity index 95% rename from julia/tools/lint/lint_cli_test.rs rename to julia/private/tools/lint/lint_cli_test.rs index 8d9f0ba25b..35d6784e20 100644 --- a/julia/tools/lint/lint_cli_test.rs +++ b/julia/private/tools/lint/lint_cli_test.rs @@ -10,7 +10,7 @@ fn scratch(name: &str) -> PathBuf { } fn run(dir: &Path, fixture: &str) -> (Output, PathBuf) { - let source = resolve_runfiles(&format!("_main/julia/tools/lint/testdata/{fixture}")); + let source = resolve_runfiles(&format!("_main/julia/private/tools/lint/testdata/{fixture}")); let file = dir.join(fixture); std::fs::copy(&source, &file).unwrap_or_else(|error| panic!("copy: {error}")); let report = dir.join("report.json"); diff --git a/julia/tools/lint/patches/BUILD.bazel b/julia/private/tools/lint/patches/BUILD.bazel similarity index 100% rename from julia/tools/lint/patches/BUILD.bazel rename to julia/private/tools/lint/patches/BUILD.bazel diff --git a/julia/tools/lint/patches/CommonMark.patch b/julia/private/tools/lint/patches/CommonMark.patch similarity index 100% rename from julia/tools/lint/patches/CommonMark.patch rename to julia/private/tools/lint/patches/CommonMark.patch diff --git a/julia/tools/lint/patches/ExceptionUnwrapping.patch b/julia/private/tools/lint/patches/ExceptionUnwrapping.patch similarity index 100% rename from julia/tools/lint/patches/ExceptionUnwrapping.patch rename to julia/private/tools/lint/patches/ExceptionUnwrapping.patch diff --git a/julia/tools/lint/patches/JSON.patch b/julia/private/tools/lint/patches/JSON.patch similarity index 100% rename from julia/tools/lint/patches/JSON.patch rename to julia/private/tools/lint/patches/JSON.patch diff --git a/julia/tools/lint/patches/JuliaWorkspaces.patch b/julia/private/tools/lint/patches/JuliaWorkspaces.patch similarity index 100% rename from julia/tools/lint/patches/JuliaWorkspaces.patch rename to julia/private/tools/lint/patches/JuliaWorkspaces.patch diff --git a/julia/tools/lint/testdata/buggy.jl b/julia/private/tools/lint/testdata/buggy.jl similarity index 100% rename from julia/tools/lint/testdata/buggy.jl rename to julia/private/tools/lint/testdata/buggy.jl diff --git a/julia/tools/lint/testdata/clean.jl b/julia/private/tools/lint/testdata/clean.jl similarity index 100% rename from julia/tools/lint/testdata/clean.jl rename to julia/private/tools/lint/testdata/clean.jl diff --git a/julia/tools/lint/testdata/unicode.jl b/julia/private/tools/lint/testdata/unicode.jl similarity index 100% rename from julia/tools/lint/testdata/unicode.jl rename to julia/private/tools/lint/testdata/unicode.jl diff --git a/julia/tools/patches/BUILD.bazel b/julia/private/tools/patches/BUILD.bazel similarity index 100% rename from julia/tools/patches/BUILD.bazel rename to julia/private/tools/patches/BUILD.bazel diff --git a/julia/tools/patches/Preferences.patch b/julia/private/tools/patches/Preferences.patch similarity index 100% rename from julia/tools/patches/Preferences.patch rename to julia/private/tools/patches/Preferences.patch diff --git a/julia/tools/pkg_update.jl b/julia/private/tools/pkg_update.jl similarity index 100% rename from julia/tools/pkg_update.jl rename to julia/private/tools/pkg_update.jl diff --git a/julia/rules/wrapper_tests.bzl b/julia/private/wrapper_tests.bzl similarity index 100% rename from julia/rules/wrapper_tests.bzl rename to julia/private/wrapper_tests.bzl diff --git a/families/julia/julia/tests/fixtures/hello/BUILD.bazel b/julia/tests/fixtures/hello/BUILD.bazel similarity index 85% rename from families/julia/julia/tests/fixtures/hello/BUILD.bazel rename to julia/tests/fixtures/hello/BUILD.bazel index 0f8d1e5a42..6517c331ad 100644 --- a/families/julia/julia/tests/fixtures/hello/BUILD.bazel +++ b/julia/tests/fixtures/hello/BUILD.bazel @@ -1,6 +1,6 @@ -load("@rules_dx//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH", "julia_binary", "julia_library", "julia_test") -load("@rules_dx//julia/rules:precompile_tests.bzl", "julia_forwarded_info_test", "julia_precompile_test") -load("@rules_dx//julia/rules:wrapper_tests.bzl", "julia_coverage_test", "julia_wrapper_action_test") +load("@rules_dx//julia:defs.bzl", "JULIA_COMPATIBLE_WITH", "julia_binary", "julia_library", "julia_test") +load("@rules_dx//julia/private:precompile_tests.bzl", "julia_forwarded_info_test", "julia_precompile_test") +load("@rules_dx//julia/private:wrapper_tests.bzl", "julia_coverage_test", "julia_wrapper_action_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") load("@rules_dx//rust/rules:defs.bzl", "rust_test") load("@rules_dx//tools/testing:hello_output.bzl", "dx_hello_output_test") diff --git a/families/julia/julia/tests/fixtures/hello/Project.toml b/julia/tests/fixtures/hello/Project.toml similarity index 100% rename from families/julia/julia/tests/fixtures/hello/Project.toml rename to julia/tests/fixtures/hello/Project.toml diff --git a/families/julia/julia/tests/fixtures/hello/app/BUILD.bazel b/julia/tests/fixtures/hello/app/BUILD.bazel similarity index 80% rename from families/julia/julia/tests/fixtures/hello/app/BUILD.bazel rename to julia/tests/fixtures/hello/app/BUILD.bazel index 1770b532b9..48d8c9dd7f 100644 --- a/families/julia/julia/tests/fixtures/hello/app/BUILD.bazel +++ b/julia/tests/fixtures/hello/app/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_library", "julia_standalone_binary") +load("@rules_dx//julia:defs.bzl", "julia_library", "julia_standalone_binary") package( default_testonly = True, diff --git a/families/julia/julia/tests/fixtures/hello/app/Project.toml b/julia/tests/fixtures/hello/app/Project.toml similarity index 100% rename from families/julia/julia/tests/fixtures/hello/app/Project.toml rename to julia/tests/fixtures/hello/app/Project.toml diff --git a/families/julia/julia/tests/fixtures/hello/app/src/HelloApp.jl b/julia/tests/fixtures/hello/app/src/HelloApp.jl similarity index 100% rename from families/julia/julia/tests/fixtures/hello/app/src/HelloApp.jl rename to julia/tests/fixtures/hello/app/src/HelloApp.jl diff --git a/families/julia/julia/tests/fixtures/hello/greet_test.jl b/julia/tests/fixtures/hello/greet_test.jl similarity index 100% rename from families/julia/julia/tests/fixtures/hello/greet_test.jl rename to julia/tests/fixtures/hello/greet_test.jl diff --git a/families/julia/julia/tests/fixtures/hello/main.jl b/julia/tests/fixtures/hello/main.jl similarity index 100% rename from families/julia/julia/tests/fixtures/hello/main.jl rename to julia/tests/fixtures/hello/main.jl diff --git a/families/julia/julia/tests/fixtures/hello/negative/BUILD.bazel b/julia/tests/fixtures/hello/negative/BUILD.bazel similarity index 85% rename from families/julia/julia/tests/fixtures/hello/negative/BUILD.bazel rename to julia/tests/fixtures/hello/negative/BUILD.bazel index dce0e7cf85..e51735c0dd 100644 --- a/families/julia/julia/tests/fixtures/hello/negative/BUILD.bazel +++ b/julia/tests/fixtures/hello/negative/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_library") +load("@rules_dx//julia:defs.bzl", "julia_library") package(default_visibility = ["//visibility:public"]) diff --git a/families/julia/julia/tests/fixtures/hello/negative/src/Broken.jl b/julia/tests/fixtures/hello/negative/src/Broken.jl similarity index 100% rename from families/julia/julia/tests/fixtures/hello/negative/src/Broken.jl rename to julia/tests/fixtures/hello/negative/src/Broken.jl diff --git a/families/julia/julia/tests/fixtures/hello/negative/src/Missing.jl b/julia/tests/fixtures/hello/negative/src/Missing.jl similarity index 100% rename from families/julia/julia/tests/fixtures/hello/negative/src/Missing.jl rename to julia/tests/fixtures/hello/negative/src/Missing.jl diff --git a/families/julia/julia/tests/fixtures/hello/relocate_test.rs b/julia/tests/fixtures/hello/relocate_test.rs similarity index 100% rename from families/julia/julia/tests/fixtures/hello/relocate_test.rs rename to julia/tests/fixtures/hello/relocate_test.rs diff --git a/families/julia/julia/tests/fixtures/hello/src/Greet.jl b/julia/tests/fixtures/hello/src/Greet.jl similarity index 100% rename from families/julia/julia/tests/fixtures/hello/src/Greet.jl rename to julia/tests/fixtures/hello/src/Greet.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/BUILD.bazel b/julia/tests/fixtures/julia-app/BUILD.bazel similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/BUILD.bazel rename to julia/tests/fixtures/julia-app/BUILD.bazel diff --git a/families/julia/julia/tests/fixtures/julia-app/README.md b/julia/tests/fixtures/julia-app/README.md similarity index 98% rename from families/julia/julia/tests/fixtures/julia-app/README.md rename to julia/tests/fixtures/julia-app/README.md index b6bbd40f86..19fdba30b3 100644 --- a/families/julia/julia/tests/fixtures/julia-app/README.md +++ b/julia/tests/fixtures/julia-app/README.md @@ -1,7 +1,7 @@ # Julia App A multi-package Julia report CLI built on the dx wrappers from -`@rules_dx//julia/rules:defs.bzl`. +`@rules_dx//julia:defs.bzl`. | Package | What it shows | | --- | --- | diff --git a/families/julia/julia/tests/fixtures/julia-app/archive/BUILD.bazel b/julia/tests/fixtures/julia-app/archive/BUILD.bazel similarity index 88% rename from families/julia/julia/tests/fixtures/julia-app/archive/BUILD.bazel rename to julia/tests/fixtures/julia-app/archive/BUILD.bazel index 80f1ca6464..6f70f3a840 100644 --- a/families/julia/julia/tests/fixtures/julia-app/archive/BUILD.bazel +++ b/julia/tests/fixtures/julia-app/archive/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_library", "julia_test") +load("@rules_dx//julia:defs.bzl", "julia_library", "julia_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") package(default_visibility = ["//visibility:public"]) diff --git a/families/julia/julia/tests/fixtures/julia-app/archive/Project.toml b/julia/tests/fixtures/julia-app/archive/Project.toml similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/archive/Project.toml rename to julia/tests/fixtures/julia-app/archive/Project.toml diff --git a/families/julia/julia/tests/fixtures/julia-app/archive/archive_test.jl b/julia/tests/fixtures/julia-app/archive/archive_test.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/archive/archive_test.jl rename to julia/tests/fixtures/julia-app/archive/archive_test.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/archive/src/Archive.jl b/julia/tests/fixtures/julia-app/archive/src/Archive.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/archive/src/Archive.jl rename to julia/tests/fixtures/julia-app/archive/src/Archive.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/cli/BUILD.bazel b/julia/tests/fixtures/julia-app/cli/BUILD.bazel similarity index 95% rename from families/julia/julia/tests/fixtures/julia-app/cli/BUILD.bazel rename to julia/tests/fixtures/julia-app/cli/BUILD.bazel index 352e523a48..8048f9b905 100644 --- a/families/julia/julia/tests/fixtures/julia-app/cli/BUILD.bazel +++ b/julia/tests/fixtures/julia-app/cli/BUILD.bazel @@ -1,5 +1,5 @@ load("@bazel_skylib//rules:common_settings.bzl", "string_flag") -load("@rules_dx//julia/rules:defs.bzl", "julia_binary", "julia_library", "julia_test") +load("@rules_dx//julia:defs.bzl", "julia_binary", "julia_library", "julia_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") package(default_visibility = ["//visibility:public"]) diff --git a/families/julia/julia/tests/fixtures/julia-app/cli/Project.toml b/julia/tests/fixtures/julia-app/cli/Project.toml similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/cli/Project.toml rename to julia/tests/fixtures/julia-app/cli/Project.toml diff --git a/families/julia/julia/tests/fixtures/julia-app/cli/cli_test.jl b/julia/tests/fixtures/julia-app/cli/cli_test.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/cli/cli_test.jl rename to julia/tests/fixtures/julia-app/cli/cli_test.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/cli/main.jl b/julia/tests/fixtures/julia-app/cli/main.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/cli/main.jl rename to julia/tests/fixtures/julia-app/cli/main.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/cli/report_test.jl b/julia/tests/fixtures/julia-app/cli/report_test.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/cli/report_test.jl rename to julia/tests/fixtures/julia-app/cli/report_test.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/cli/src/Report.jl b/julia/tests/fixtures/julia-app/cli/src/Report.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/cli/src/Report.jl rename to julia/tests/fixtures/julia-app/cli/src/Report.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/data/BUILD.bazel b/julia/tests/fixtures/julia-app/data/BUILD.bazel similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/data/BUILD.bazel rename to julia/tests/fixtures/julia-app/data/BUILD.bazel diff --git a/families/julia/julia/tests/fixtures/julia-app/data/readings.tsv b/julia/tests/fixtures/julia-app/data/readings.tsv similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/data/readings.tsv rename to julia/tests/fixtures/julia-app/data/readings.tsv diff --git a/families/julia/julia/tests/fixtures/julia-app/diagnostics/BUILD.bazel b/julia/tests/fixtures/julia-app/diagnostics/BUILD.bazel similarity index 91% rename from families/julia/julia/tests/fixtures/julia-app/diagnostics/BUILD.bazel rename to julia/tests/fixtures/julia-app/diagnostics/BUILD.bazel index e9f227b2bb..35a12c8cf4 100644 --- a/families/julia/julia/tests/fixtures/julia-app/diagnostics/BUILD.bazel +++ b/julia/tests/fixtures/julia-app/diagnostics/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH") +load("@rules_dx//julia:defs.bzl", "JULIA_COMPATIBLE_WITH") load("@rules_dx//quality:fixtures.bzl", "real_source_target") load("@rules_dx//rust/rules:defs.bzl", "rust_test") @@ -35,12 +35,12 @@ rust_test( "runtime_error.jl", "syntax_error.jl", "unformatted.jl", - "@rules_dx//julia/tools:julia_format", + "@rules_dx//julia/private/tools:julia_format", "@rules_julia//julia:current_julia_toolchain", ] + _FORMATTED[1:], env = { "DX_CLEAN": "$(rootpath clean.jl)", - "DX_FORMAT": "$(rootpath @rules_dx//julia/tools:julia_format)", + "DX_FORMAT": "$(rootpath @rules_dx//julia/private/tools:julia_format)", "DX_FORMAT_SRCS": " ".join(["$(rootpath %s)" % src for src in _FORMATTED]), "DX_JULIA_PATH_FILE": "$(rootpath julia_rlocationpath.txt)", "DX_MISSING_DEP": "$(rootpath missing_dep.jl)", diff --git a/families/julia/julia/tests/fixtures/julia-app/diagnostics/clean.jl b/julia/tests/fixtures/julia-app/diagnostics/clean.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/diagnostics/clean.jl rename to julia/tests/fixtures/julia-app/diagnostics/clean.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/diagnostics/diagnostics_test.rs b/julia/tests/fixtures/julia-app/diagnostics/diagnostics_test.rs similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/diagnostics/diagnostics_test.rs rename to julia/tests/fixtures/julia-app/diagnostics/diagnostics_test.rs diff --git a/families/julia/julia/tests/fixtures/julia-app/diagnostics/missing_dep.jl b/julia/tests/fixtures/julia-app/diagnostics/missing_dep.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/diagnostics/missing_dep.jl rename to julia/tests/fixtures/julia-app/diagnostics/missing_dep.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/diagnostics/runtime_error.jl b/julia/tests/fixtures/julia-app/diagnostics/runtime_error.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/diagnostics/runtime_error.jl rename to julia/tests/fixtures/julia-app/diagnostics/runtime_error.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/diagnostics/syntax_error.jl b/julia/tests/fixtures/julia-app/diagnostics/syntax_error.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/diagnostics/syntax_error.jl rename to julia/tests/fixtures/julia-app/diagnostics/syntax_error.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/diagnostics/unformatted.jl b/julia/tests/fixtures/julia-app/diagnostics/unformatted.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/diagnostics/unformatted.jl rename to julia/tests/fixtures/julia-app/diagnostics/unformatted.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/stats/BUILD.bazel b/julia/tests/fixtures/julia-app/stats/BUILD.bazel similarity index 88% rename from families/julia/julia/tests/fixtures/julia-app/stats/BUILD.bazel rename to julia/tests/fixtures/julia-app/stats/BUILD.bazel index dad98ffeec..3000c2a78e 100644 --- a/families/julia/julia/tests/fixtures/julia-app/stats/BUILD.bazel +++ b/julia/tests/fixtures/julia-app/stats/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_library", "julia_test") +load("@rules_dx//julia:defs.bzl", "julia_library", "julia_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") package(default_visibility = ["//visibility:public"]) diff --git a/families/julia/julia/tests/fixtures/julia-app/stats/Project.toml b/julia/tests/fixtures/julia-app/stats/Project.toml similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/stats/Project.toml rename to julia/tests/fixtures/julia-app/stats/Project.toml diff --git a/families/julia/julia/tests/fixtures/julia-app/stats/src/Stats.jl b/julia/tests/fixtures/julia-app/stats/src/Stats.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/stats/src/Stats.jl rename to julia/tests/fixtures/julia-app/stats/src/Stats.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/stats/stats_test.jl b/julia/tests/fixtures/julia-app/stats/stats_test.jl similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/stats/stats_test.jl rename to julia/tests/fixtures/julia-app/stats/stats_test.jl diff --git a/families/julia/julia/tests/fixtures/julia-app/third_party/BUILD.bazel b/julia/tests/fixtures/julia-app/third_party/BUILD.bazel similarity index 92% rename from families/julia/julia/tests/fixtures/julia-app/third_party/BUILD.bazel rename to julia/tests/fixtures/julia-app/third_party/BUILD.bazel index 2a19a7217c..8a85eb5b76 100644 --- a/families/julia/julia/tests/fixtures/julia-app/third_party/BUILD.bazel +++ b/julia/tests/fixtures/julia-app/third_party/BUILD.bazel @@ -1,6 +1,6 @@ load("@rules_julia//julia/pkg:julia_pkg_resolve.bzl", "julia_pkg_resolve") load("@rules_julia//julia/pkg:julia_pkg_resolve_test.bzl", "julia_pkg_resolve_test") -load("@rules_dx//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH") +load("@rules_dx//julia:defs.bzl", "JULIA_COMPATIBLE_WITH") load("@rules_dx//quality:fixtures.bzl", "real_source_target") package(default_visibility = ["//visibility:public"]) diff --git a/families/julia/julia/tests/fixtures/julia-app/third_party/Manifest.bazel.json b/julia/tests/fixtures/julia-app/third_party/Manifest.bazel.json similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/third_party/Manifest.bazel.json rename to julia/tests/fixtures/julia-app/third_party/Manifest.bazel.json diff --git a/families/julia/julia/tests/fixtures/julia-app/third_party/Manifest.toml b/julia/tests/fixtures/julia-app/third_party/Manifest.toml similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/third_party/Manifest.toml rename to julia/tests/fixtures/julia-app/third_party/Manifest.toml diff --git a/families/julia/julia/tests/fixtures/julia-app/third_party/Project.toml b/julia/tests/fixtures/julia-app/third_party/Project.toml similarity index 100% rename from families/julia/julia/tests/fixtures/julia-app/third_party/Project.toml rename to julia/tests/fixtures/julia-app/third_party/Project.toml diff --git a/libs/families/BUILD.bazel b/libs/families/BUILD.bazel index 236e92207a..0f9147d86a 100644 --- a/libs/families/BUILD.bazel +++ b/libs/families/BUILD.bazel @@ -31,18 +31,18 @@ rust_library( "//avro:lang.json", "//capnproto:lang.json", "//:cc/lang.json", - "//:d/lang.json", + "//d:lang.json", "//dart:lang.json", "//dotnet:lang.json", "//elixir:lang.json", "//erlang:lang.json", "//flatbuffers:lang.json", - "//:fortran/lang.json", + "//fortran:lang.json", "//:go/lang.json", "//haskell:lang.json", "//java:lang.json", "//javascript:lang.json", - "//:julia/lang.json", + "//julia:lang.json", "//kotlin:lang.json", "//:lua/lang.json", "//mdx:lang.json", @@ -61,7 +61,7 @@ rust_library( "//thrift:lang.json", "//typescript:lang.json", "//vue:lang.json", - "//:zig/lang.json", + "//zig:lang.json", ], crate_name = "dx_families", crate_root = "src/lib.rs", @@ -90,18 +90,18 @@ rust_test( "//avro:lang.json", "//capnproto:lang.json", "//:cc/lang.json", - "//:d/lang.json", + "//d:lang.json", "//dart:lang.json", "//dotnet:lang.json", "//elixir:lang.json", "//erlang:lang.json", "//flatbuffers:lang.json", - "//:fortran/lang.json", + "//fortran:lang.json", "//:go/lang.json", "//haskell:lang.json", "//java:lang.json", "//javascript:lang.json", - "//:julia/lang.json", + "//julia:lang.json", "//kotlin:lang.json", "//:lua/lang.json", "//mdx:lang.json", @@ -120,7 +120,7 @@ rust_test( "//thrift:lang.json", "//typescript:lang.json", "//vue:lang.json", - "//:zig/lang.json", + "//zig:lang.json", ], coverage_lib = ":dx_families", crate_name = "dx_families", diff --git a/libs/module_bazel/src/lib.rs b/libs/module_bazel/src/lib.rs index 21d570d7fa..c6ebafad87 100644 --- a/libs/module_bazel/src/lib.rs +++ b/libs/module_bazel/src/lib.rs @@ -1065,8 +1065,8 @@ impl ModuleFile { /// Every `fortran.fpm` tag of the rules_dx Fortran extension in source order. pub fn fpm_locks(&self) -> Result>, ModuleError> { const TAG: &str = "fortran.fpm"; - let own = self.tags_of("//fortran/toolchain:extensions.bzl".to_owned(), "fortran", "fpm"); - self.tags(RUBY_MODULE, "fortran/toolchain:extensions.bzl", "fortran", "fpm") + let own = self.tags_of("//fortran:extensions.bzl".to_owned(), "fortran", "fpm"); + self.tags(RUBY_MODULE, "fortran:extensions.bzl", "fortran", "fpm") .chain(own) .map(|call| { Ok(FpmLock { @@ -1081,8 +1081,8 @@ impl ModuleFile { /// Every `dub.lock` tag of the rules_dx dub extension in source order. pub fn dub_locks(&self) -> Result>, ModuleError> { const TAG: &str = "dub.lock"; - let own = self.tags_of("//d/dub:extensions.bzl".to_owned(), "dub", "lock"); - self.tags(RUBY_MODULE, "d/dub:extensions.bzl", "dub", "lock") + let own = self.tags_of("//d:extensions.bzl".to_owned(), "dub", "lock"); + self.tags(RUBY_MODULE, "d:extensions.bzl", "dub", "lock") .chain(own) .map(|call| { Ok(DubLock { @@ -1098,8 +1098,8 @@ impl ModuleFile { /// Every `zig.lock` tag of the rules_dx zig deps extension in source order. pub fn zig_locks(&self) -> Result>, ModuleError> { const TAG: &str = "zig.lock"; - let own = self.tags_of("//zig/deps:extensions.bzl".to_owned(), "zig_deps", "lock"); - self.tags(RUBY_MODULE, "zig/deps:extensions.bzl", "zig_deps", "lock") + let own = self.tags_of("//zig:extensions.bzl".to_owned(), "zig_deps", "lock"); + self.tags(RUBY_MODULE, "zig:extensions.bzl", "zig_deps", "lock") .chain(own) .map(|call| { Ok(ZigLock { diff --git a/libs/module_bazel/src/tests.rs b/libs/module_bazel/src/tests.rs index 06fba96658..ad8235405c 100644 --- a/libs/module_bazel/src/tests.rs +++ b/libs/module_bazel/src/tests.rs @@ -1217,7 +1217,7 @@ fn composer_locks_follow_the_rules_dx_extension() { #[test] fn fpm_locks_follow_the_rules_dx_extension() { let file = parse( - "fortran = use_extension(\"@rules_dx//fortran/toolchain:extensions.bzl\", \"fortran\")\nfortran.fpm(name = \"fpm_deps\", lock = \"//f:fpm.lock\")\nother = use_extension(\"//f:repos.bzl\", \"fortran\")\nother.fpm(name = \"x\", lock = \"//x:fpm.lock\")\n", + "fortran = use_extension(\"@rules_dx//fortran:extensions.bzl\", \"fortran\")\nfortran.fpm(name = \"fpm_deps\", lock = \"//f:fpm.lock\")\nother = use_extension(\"//f:repos.bzl\", \"fortran\")\nother.fpm(name = \"x\", lock = \"//x:fpm.lock\")\n", ); let found: Vec<_> = file .fpm_locks() diff --git a/libs/starlark/tests/cells_tests.bzl b/libs/starlark/tests/cells_tests.bzl index 21c4cc0427..ea8d7960ab 100644 --- a/libs/starlark/tests/cells_tests.bzl +++ b/libs/starlark/tests/cells_tests.bzl @@ -1,9 +1,9 @@ """Shared cell setting tests.""" load("@dx_pins_data//:pins.bzl", "PINS") -load("//d/toolchain:pins.bzl", "LDC_CELLS") +load("//d/private/toolchain:pins.bzl", "LDC_CELLS") load("//erlang/private/toolchain:pins.bzl", erlang_cells = "CELLS") -load("//fortran/toolchain:pins.bzl", "FORTRAN_CELLS") +load("//fortran/private/toolchain:pins.bzl", "FORTRAN_CELLS") load("//haskell/toolchain:pins.bzl", haskell_cells = "CELLS") load("//libs/starlark:cells.bzl", "cell_cases", "cell_setting", "unknown_cells", "unsupported_constraint") load("//libs/starlark:defs.bzl", "expect_equal", "starlark_test") diff --git a/modules/families.json b/modules/families.json index ce75b59266..9bf5cb9f66 100644 --- a/modules/families.json +++ b/modules/families.json @@ -125,6 +125,12 @@ "real_core_typecheck_probe_aspect", "real_cue_format_aspect", "real_cue_typecheck_aspect", + "real_d_format_aspect", + "real_d_format_probe_aspect", + "real_d_lint_aspect", + "real_d_lint_probe_aspect", + "real_d_typecheck_aspect", + "real_d_typecheck_probe_aspect", "real_dockerfile_lint_aspect", "real_docs_aspect", "real_elixir_format_aspect", @@ -134,6 +140,12 @@ "real_erlang_typecheck_aspect", "real_format_aspect", "real_format_probe_aspect", + "real_fortran_format_aspect", + "real_fortran_format_probe_aspect", + "real_fortran_lint_aspect", + "real_fortran_lint_probe_aspect", + "real_fortran_typecheck_aspect", + "real_fortran_typecheck_probe_aspect", "real_go_format_aspect", "real_go_format_probe_aspect", "real_go_lint_aspect", @@ -144,6 +156,12 @@ "real_html_template_lint_aspect", "real_jsonnet_format_aspect", "real_jsonnet_lint_aspect", + "real_julia_format_aspect", + "real_julia_format_probe_aspect", + "real_julia_lint_aspect", + "real_julia_lint_probe_aspect", + "real_julia_typecheck_aspect", + "real_julia_typecheck_probe_aspect", "real_jvm_format_aspect", "real_jvm_format_probe_aspect", "real_jvm_lint_aspect", @@ -185,7 +203,13 @@ "real_typst_lint_aspect", "real_xml_lint_aspect", "real_yaml_format_aspect", - "real_yaml_lint_aspect" + "real_yaml_lint_aspect", + "real_zig_format_aspect", + "real_zig_format_probe_aspect", + "real_zig_lint_aspect", + "real_zig_lint_probe_aspect", + "real_zig_typecheck_aspect", + "real_zig_typecheck_probe_aspect" ], "bazel_deps": [ "apple_support", @@ -249,6 +273,7 @@ "cloudformation", "cmake", "config", + "d", "dart", "deploy", "dockerfile", @@ -317,7 +342,7 @@ "//dotnet:extensions.bzl%dotnet_tools", "//elixir:extensions.bzl%elixir", "//erlang:extensions.bzl%erlang", - "//fortran/toolchain:extensions.bzl%fortran", + "//fortran:extensions.bzl%fortran", "//gazelle/dispatch:extension.bzl%dx_gazelle", "//haskell/toolchain:extensions.bzl%haskell", "//javascript/private:dev_hub.bzl%dx_dev_hub", @@ -362,7 +387,10 @@ "@rules_swift//swift:extensions.bzl%swift", "@tar.bzl//tar:extensions.bzl%toolchains", "@windows_support//windows:extensions.bzl%msvc_runtime", - "@windows_support//windows:extensions.bzl%windows_sdk" + "@windows_support//windows:extensions.bzl%windows_sdk", + "//d:extensions.bzl%d", + "@rules_julia//julia:extensions.bzl%julia", + "@rules_zig//zig:extensions.bzl%zig" ], "file_extensions": [ ".adoc", @@ -374,14 +402,17 @@ ".cc", ".cmake", ".cpp", + ".d", ".erl", ".ex", ".exs", + ".f90", ".go", ".h", ".hpp", ".java", ".hrl", + ".jl", ".json", ".kt", ".kts", @@ -399,7 +430,8 @@ ".tpl", ".xml", ".yaml", - ".yml" + ".yml", + ".zig" ], "gazelle": [ "//gazelle/astro", @@ -407,6 +439,7 @@ "//gazelle/capnproto", "//gazelle/cc", "//gazelle/csharp", + "//gazelle/d", "//gazelle/dart", "//gazelle/elixir", "//gazelle/erlang", @@ -455,6 +488,8 @@ "//cc/toolchains:msvc_windows_x86_64", "//cc/toolchains:msvc_windows_x86_64_to_arm64", "//tools/platforms:protoc_windows_arm64", + "@dx_d_toolchains//:all", + "@dx_fortran_toolchains//:all", "@dx_haskell_toolchains//cc:all", "@dx_powershell_toolchains//:all", "@llvm//toolchain:all", @@ -496,33 +531,6 @@ "repo_rules": [], "toolchains": [] }, - "d": { - "aspects": [ - "real_d_format_aspect", - "real_d_format_probe_aspect", - "real_d_lint_aspect", - "real_d_lint_probe_aspect", - "real_d_typecheck_aspect", - "real_d_typecheck_probe_aspect" - ], - "bazel_deps": [], - "dirs": [ - "d" - ], - "extensions": [ - "//d/toolchain:extensions.bzl%d" - ], - "file_extensions": [ - ".d" - ], - "gazelle": [ - "//gazelle/d" - ], - "repo_rules": [], - "toolchains": [ - "@dx_d_toolchains//:all" - ] - }, "dart": { "aspects": [ "real_dart_format_aspect", @@ -604,40 +612,6 @@ "@dotnet_toolchains//:all" ] }, - "fortran": { - "aspects": [ - "real_fortran_format_aspect", - "real_fortran_format_probe_aspect", - "real_fortran_lint_aspect", - "real_fortran_lint_probe_aspect", - "real_fortran_typecheck_aspect", - "real_fortran_typecheck_probe_aspect" - ], - "bazel_deps": [ - "bazel_skylib", - "platforms", - "rules_dx", - "rules_shell" - ], - "dirs": [ - "bcr_test_module", - "fortran", - "third_party" - ], - "extensions": [ - "@rules_dx//fortran/toolchain:extensions.bzl%fortran" - ], - "file_extensions": [ - ".f90" - ], - "gazelle": [], - "module": "rules_dx_fortran", - "path": "families/fortran", - "repo_rules": [], - "toolchains": [ - "@dx_fortran_toolchains//:all" - ] - }, "generation": { "aspects": [ "real_avro_lint_aspect", @@ -770,40 +744,6 @@ "module": "rules_dx_js", "path": "families/js" }, - "julia": { - "aspects": [ - "real_julia_format_aspect", - "real_julia_format_probe_aspect", - "real_julia_lint_aspect", - "real_julia_lint_probe_aspect", - "real_julia_typecheck_aspect", - "real_julia_typecheck_probe_aspect" - ], - "bazel_deps": [ - "bazel_skylib", - "platforms", - "rules_dx", - "rules_julia", - "rules_shell" - ], - "dirs": [ - "bcr_test_module", - "julia", - "third_party" - ], - "extensions": [ - "@rules_julia//julia/pkg:extensions.bzl%pkg", - "@rules_julia//julia:extensions.bzl%julia" - ], - "file_extensions": [ - ".jl" - ], - "gazelle": [], - "repo_rules": [], - "toolchains": [], - "module": "rules_dx_julia", - "path": "families/julia" - }, "lua": { "aspects": [ "real_lua_format_aspect", @@ -1132,42 +1072,6 @@ "toolchains": [ "@rules_dx//swift/toolchain:all" ] - }, - "zig": { - "aspects": [ - "real_zig_format_aspect", - "real_zig_format_probe_aspect", - "real_zig_lint_aspect", - "real_zig_lint_probe_aspect", - "real_zig_typecheck_aspect", - "real_zig_typecheck_probe_aspect" - ], - "bazel_deps": [ - "bazel_skylib", - "platforms", - "rules_cc", - "rules_dx", - "rules_shell", - "rules_zig" - ], - "dirs": [ - "bcr_test_module", - "third_party", - "zig" - ], - "extensions": [ - "@rules_zig//zig:extensions.bzl%zig" - ], - "file_extensions": [ - ".zig" - ], - "gazelle": [], - "repo_rules": [ - "@bazel_tools//tools/build_defs/repo:http.bzl%http_archive" - ], - "toolchains": [], - "module": "rules_dx_zig", - "path": "families/zig" } } } diff --git a/modules/versions_tests.bzl b/modules/versions_tests.bzl index 4e68a7fc68..25db45e883 100644 --- a/modules/versions_tests.bzl +++ b/modules/versions_tests.bzl @@ -116,8 +116,6 @@ def versions_contract_tests(name): file_checks = { "//:.bazelrc": "common --check_direct_dependencies=error", "@rules_dx_cuda//:README.md": cuda_stanza, - "@rules_dx_julia//:MODULE.bazel": "julia.toolchain(version = \"" + _JULIA_VERSION + "\")", - "@rules_dx_zig//:MODULE.bazel": "zig.toolchain(zig_version = \"" + _ZIG_VERSION + "\")", "//tools/testing/hermetic:consumers/cuda/module_fragment.bazel": cuda_stanza, "//:package.json": "\"packageManager\": \"pnpm@" + _PNPM_VERSION + "\"", "//quality/tools/javascript:package.json": "\"typedoc\": \"" + _TYPEDOC_VERSION + "\",\n \"typescript\": \"" + _TYPESCRIPT_VERSION + "\",", @@ -156,6 +154,8 @@ def versions_contract_tests(name): "name = \"rules_dart\", version = \"" + _RULES_DART_VERSION + "\"\n" + "dart.toolchain(dart_version = \"" + _DART_SDK_VERSION + "\")\n" + "name = \"rules_julia\", version = \"" + _RULES_JULIA_VERSION + "\"\n" + + "julia.toolchain(version = \"" + _JULIA_VERSION + "\")\n" + + "zig.toolchain(zig_version = \"" + _ZIG_VERSION + "\")\n" + "name = \"rules_perl\", version = \"" + _RULES_PERL_VERSION + "\"\n" + "name = \"lua\", version = \"" + _LUA_VERSION + "\"\n" + "name = \"rules_py\", version = \"" + _RULES_PY_VERSION + "\"\n" + diff --git a/quality/BUILD.bazel b/quality/BUILD.bazel index c73731e8f1..92c00395fb 100644 --- a/quality/BUILD.bazel +++ b/quality/BUILD.bazel @@ -245,7 +245,7 @@ consumer_policy_tests( "calc-real-lint-text.pb", ], "policy": "//config:default_workspace_policy", - "subject": "@rules_dx_fortran//fortran/tests/fixtures/calc:calc", + "subject": "//fortran/tests/fixtures/calc:calc", }, { "case": "default_dart", @@ -318,7 +318,7 @@ consumer_policy_tests( "greet-real-lint-zig.pb", ], "policy": "//config:default_workspace_policy", - "subject": "@rules_dx_zig//zig/tests/fixtures/hello:greet", + "subject": "//zig/tests/fixtures/hello:greet", }, { "case": "toml_formatted", diff --git a/quality/compile_check.bzl b/quality/compile_check.bzl index de1a7d5293..7c83013279 100644 --- a/quality/compile_check.bzl +++ b/quality/compile_check.bzl @@ -5,7 +5,7 @@ directories, compiler), rewrites its command line so nothing is produced, and ru a sandboxed action that records stderr and the exit code. The runner only parses them. """ -load("//fortran/toolchain:flags.bzl", "MODULE_FLAG_FORMAT") +load("//fortran/private/toolchain:flags.bzl", "MODULE_FLAG_FORMAT") load("//libs/starlark:resources.bzl", "dx_heavy_resources") load("//quality:family_hooks.bzl", "stage", "without") load("//quality:real_core.bzl", "real_context") diff --git a/quality/families/julia.bzl b/quality/families/julia.bzl index 4596e47448..55dd1b3c1e 100644 --- a/quality/families/julia.bzl +++ b/quality/families/julia.bzl @@ -8,14 +8,14 @@ load("//quality:real_core.bzl", "real_config", "real_context", "real_make_aspect TOOLS = { "jet": { "attr": attr.label(default = "//config:tool_jet", allow_files = True, cfg = "exec"), - "fallback": "=@rules_dx//julia/tools/jet:jet", + "fallback": "=@rules_dx//julia/private/tools/jet:jet", "kind": "setting", "resources": "heavy", "shard": "julia", }, "julialint": { "attr": attr.label(default = "//config:tool_julialint", allow_files = True, cfg = "exec"), - "fallback": "=@rules_dx//julia/tools/lint:julialint", + "fallback": "=@rules_dx//julia/private/tools/lint:julialint", "kind": "setting", "resources": "medium", "shard": "julia", diff --git a/quality/real_core.bzl b/quality/real_core.bzl index 1c55f31d88..522eac5645 100644 --- a/quality/real_core.bzl +++ b/quality/real_core.bzl @@ -21,11 +21,11 @@ _TARGET_TOOL_OWNERS = { "dart": ("dart_library, dart_binary or dart_test", "@rules_dx//dart/rules:defs.bzl", "@rules_dx//dart/tools:dart"), "swift_format": ("swift_library, swift_binary or swift_test", "@rules_dx//swift/rules:defs.bzl", "@rules_dx//swift/tools:swift_format"), "swift_lint": ("swift_library, swift_binary or swift_test", "@rules_dx//swift/rules:defs.bzl", "@rules_dx//swift/tools:swift_format"), - "zig_ast_check": ("zig_library, zig_binary or zig_test", "@rules_dx//zig/rules:defs.bzl", "@rules_dx//zig/tools:zig"), - "zig_fmt": ("zig_library, zig_binary or zig_test", "@rules_dx//zig/rules:defs.bzl", "@rules_dx//zig/tools:zig"), + "zig_ast_check": ("zig_library, zig_binary or zig_test", "@rules_dx//zig:defs.bzl", "@rules_dx//zig/private/tools:zig"), + "zig_fmt": ("zig_library, zig_binary or zig_test", "@rules_dx//zig:defs.bzl", "@rules_dx//zig/private/tools:zig"), "perlcritic": ("perl_library, perl_binary or perl_test", "@rules_dx//perl/rules:defs.bzl", "@rules_dx//perl/tools:perlcritic"), "perltidy": ("perl_library, perl_binary or perl_test", "@rules_dx//perl/rules:defs.bzl", "@rules_dx//perl/tools:perltidy"), - "julia_format": ("julia_library, julia_binary or julia_test", "@rules_dx//julia/rules:defs.bzl", "@rules_dx//julia/tools:julia_format"), + "julia_format": ("julia_library, julia_binary or julia_test", "@rules_dx//julia:defs.bzl", "@rules_dx//julia/private/tools:julia_format"), } def _tool_files_to_run(target, flag, tool, what): diff --git a/quality/support_tests.bzl b/quality/support_tests.bzl index c334c0db9f..2394e76270 100644 --- a/quality/support_tests.bzl +++ b/quality/support_tests.bzl @@ -3,7 +3,7 @@ load("//dart/rules:platforms.bzl", "DART_PLATFORMS") load("//elixir/private/toolchain:pins.bzl", "ELIXIR_CELLS") load("//erlang/private/toolchain:pins.bzl", ERLANG_CELLS = "CELLS", "OTP_DIALYZER_UNPORTED_CELLS") -load("//julia/rules:platforms.bzl", "JULIA_PLATFORMS") +load("//julia/private:platforms.bzl", "JULIA_PLATFORMS") load("//libs/starlark:defs.bzl", "expect_equal", "starlark_test") load("//qt/sdk:pins.bzl", QT_CELLS = "CELLS") load("//quality/artifacts:extension.bzl", "TOOL_ARTIFACTS") diff --git a/quality/taxonomy.bzl b/quality/taxonomy.bzl index 2284915e9a..86923b28f7 100644 --- a/quality/taxonomy.bzl +++ b/quality/taxonomy.bzl @@ -62,7 +62,7 @@ TAXONOMY = { classes = ["cue"], ), "d": struct( - owner = "//d/rules:defs.bzl", + owner = "//d:defs.bzl", classes = ["d"], ), "dart": struct( @@ -86,7 +86,7 @@ TAXONOMY = { classes = ["flatbuffers"], ), "fortran": struct( - owner = "//fortran/rules:defs.bzl", + owner = "//fortran:defs.bzl", classes = ["fortran"], ), "fsharp": struct( @@ -142,7 +142,7 @@ TAXONOMY = { classes = ["jsonnet"], ), "julia": struct( - owner = "//julia/rules:defs.bzl", + owner = "//julia:defs.bzl", classes = ["julia"], ), "jupyter": struct( @@ -294,7 +294,7 @@ TAXONOMY = { classes = ["yaml"], ), "zig": struct( - owner = "//zig/rules:defs.bzl", + owner = "//zig:defs.bzl", classes = ["zig"], ), } diff --git a/quality/testdata/BUILD.bazel b/quality/testdata/BUILD.bazel index fee12ab4cc..7d92db98b9 100644 --- a/quality/testdata/BUILD.bazel +++ b/quality/testdata/BUILD.bazel @@ -1601,7 +1601,7 @@ workspace_policy( zig_subject( name = "zig_subject", testonly = True, - target = "@rules_dx_zig//zig/tests/fixtures/hello:greet", + target = "//zig/tests/fixtures/hello:greet", ) zig_fmt_flag_tests( @@ -1628,7 +1628,7 @@ workspace_policy( zig_lint_subject( name = "zig_lint_subject", testonly = True, - target = "@rules_dx_zig//zig/tests/fixtures/hello:greet", + target = "//zig/tests/fixtures/hello:greet", ) zig_ast_check_flag_tests( @@ -1694,7 +1694,7 @@ workspace_policy( julia_subject( name = "julia_subject", testonly = True, - target = "@rules_dx_julia//julia/tests/fixtures/hello:Greet", + target = "//julia/tests/fixtures/hello:Greet", ) julia_format_flag_tests( @@ -1721,7 +1721,7 @@ workspace_policy( julia_typecheck_subject( name = "julia_typecheck_subject", testonly = True, - target = "@rules_dx_julia//julia/tests/fixtures/hello:Greet", + target = "//julia/tests/fixtures/hello:Greet", ) jet_flag_tests( diff --git a/quality/testdata/coverage_sources/BUILD.bazel b/quality/testdata/coverage_sources/BUILD.bazel index fa6a12a9db..0f35b0009e 100644 --- a/quality/testdata/coverage_sources/BUILD.bazel +++ b/quality/testdata/coverage_sources/BUILD.bazel @@ -1,14 +1,14 @@ load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test") -load("//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_test") +load("//d:defs.bzl", "D_COMPATIBLE_WITH", "d_test") load("//haskell/rules:defs.bzl", "HASKELL_COMPATIBLE_WITH", "haskell_test") -load("//fortran/rules:defs.bzl", "fortran_library", "fortran_test") +load("//fortran:defs.bzl", "fortran_library", "fortran_test") load("//ocaml/rules:defs.bzl", "ocaml_module", "ocaml_test") load("//perl/rules:defs.bzl", "perl_test") load("//powershell/rules:defs.bzl", "powershell_test") load("//rust/rules:defs.bzl", dx_rust_library = "rust_library", dx_rust_test = "rust_test") load("//quality:coverage_sources_tests.bzl", "coverage_fixture") -load("//zig/rules:defs.bzl", "zig_library", "zig_test") +load("//zig:defs.bzl", "zig_library", "zig_test") package(default_visibility = ["//quality:__subpackages__"]) diff --git a/quality/testdata/runner_matrix_structured.bzl b/quality/testdata/runner_matrix_structured.bzl index a2da327dda..c416141123 100644 --- a/quality/testdata/runner_matrix_structured.bzl +++ b/quality/testdata/runner_matrix_structured.bzl @@ -861,7 +861,7 @@ STRUCTURED_CASES = [ "capability": "format", "stages": ["zig_fmt;zig;matrix/zig_clean.zig"], "tool_names": ["zig_fmt"], - "tool_binaries": ["//zig/tools:zig"], + "tool_binaries": ["//zig/private/tools:zig"], "expected_file": ":matrix/matrix_zig_format_pass.expected.txt", "linux_arm64": True, "macos_arm64": True, @@ -876,7 +876,7 @@ STRUCTURED_CASES = [ "capability": "format", "stages": ["zig_fmt;zig;matrix/zig_dirty.zig"], "tool_names": ["zig_fmt"], - "tool_binaries": ["//zig/tools:zig"], + "tool_binaries": ["//zig/private/tools:zig"], "expected_file": ":matrix/matrix_zig_format_fail.expected.txt", "linux_arm64": True, "macos_arm64": True, @@ -891,7 +891,7 @@ STRUCTURED_CASES = [ "capability": "format", "stages": ["julia_format;julia;matrix/julia_clean.jl"], "tool_names": ["julia_format"], - "tool_binaries": ["//julia/tools:julia_format"], + "tool_binaries": ["//julia/private/tools:julia_format"], "expected_file": ":matrix/matrix_julia_format_pass.expected.txt", "linux_arm64": True, "macos_arm64": True, @@ -905,7 +905,7 @@ STRUCTURED_CASES = [ "capability": "format", "stages": ["julia_format;julia;matrix/julia_dirty.jl"], "tool_names": ["julia_format"], - "tool_binaries": ["//julia/tools:julia_format"], + "tool_binaries": ["//julia/private/tools:julia_format"], "expected_file": ":matrix/matrix_julia_format_fail.expected.txt", "linux_arm64": True, "macos_arm64": True, diff --git a/quality/testdata/tool_override_tests.bzl b/quality/testdata/tool_override_tests.bzl index 7409e700fe..d8dbcbe1df 100644 --- a/quality/testdata/tool_override_tests.bzl +++ b/quality/testdata/tool_override_tests.bzl @@ -47,7 +47,7 @@ _ZIG_POLICY = _CANONICAL + "//quality/testdata:zig_policy" _ZIG_LINT_POLICY = _CANONICAL + "//quality/testdata:zig_lint_policy" _ZIG_AST_CHECK_SETTING = _CANONICAL + "//config:tool_zig_ast_check" _ZIG_FMT_SETTING = _CANONICAL + "//config:tool_zig_fmt" -_ZIG_FMT_TOOL = _CANONICAL + "//zig/tools:zig" +_ZIG_FMT_TOOL = _CANONICAL + "//zig/private/tools:zig" _PERLCRITIC_SETTING = _CANONICAL + "//config:tool_perlcritic" _PERLCRITIC_TOOL = _CANONICAL + "//perl/tools:perlcritic" _PERL_LINT_POLICY = _CANONICAL + "//quality/testdata:perl_lint_policy" @@ -56,10 +56,10 @@ _DART_SETTING = _CANONICAL + "//config:tool_dart" _DART_TOOL = _CANONICAL + "//dart/tools:dart" _JULIA_POLICY = _CANONICAL + "//quality/testdata:julia_policy" _JULIA_FORMAT_SETTING = _CANONICAL + "//config:tool_julia_format" -_JULIA_FORMAT_TOOL = _CANONICAL + "//julia/tools:julia_format" +_JULIA_FORMAT_TOOL = _CANONICAL + "//julia/private/tools:julia_format" _JULIA_TYPECHECK_POLICY = _CANONICAL + "//quality/testdata:julia_typecheck_policy" _JET_SETTING = _CANONICAL + "//config:tool_jet" -_JET_TOOL = _CANONICAL + "//julia/tools/jet:jet" +_JET_TOOL = _CANONICAL + "//julia/private/tools/jet:jet" _PERL_POLICY = _CANONICAL + "//quality/testdata:perl_policy" _PERLTIDY_SETTING = _CANONICAL + "//config:tool_perltidy" _PERLTIDY_TOOL = _CANONICAL + "//perl/tools:perltidy" diff --git a/tools/ci/BUILD.bazel b/tools/ci/BUILD.bazel index 780f2c7ab7..c6519616a4 100644 --- a/tools/ci/BUILD.bazel +++ b/tools/ci/BUILD.bazel @@ -730,7 +730,7 @@ rust_test( "//cloudformation/rules:corpus_starlark", "//cmake/rules:corpus_starlark", "//config:corpus_starlark", - "//d/rules:corpus_starlark", + "//d/private:corpus_starlark", "//dart/rules:corpus_starlark", "//dart/tools:corpus_starlark", "//deploy/offline:corpus_starlark", @@ -748,15 +748,15 @@ rust_test( "//erlang/private/toolchain:corpus_starlark", "//examples/shared-rust:corpus_starlark", "//flutter/rules:corpus_starlark", - "//fortran/rules:corpus_starlark", + "//fortran/private:corpus_starlark", "//generation:corpus_starlark", "//go/rules:corpus_starlark", "//haskell/rules:corpus_starlark", "//helm/rules:corpus_starlark", "//java/private:corpus_starlark", "//javascript/private:corpus_starlark", - "//julia/rules:corpus_starlark", - "//julia/tools:corpus_starlark", + "//julia/private:corpus_starlark", + "//julia/private/tools:corpus_starlark", "//kotlin/private:corpus_starlark", "//kubernetes/rules:corpus_starlark", "//libs/exec_os:corpus_starlark", @@ -816,8 +816,8 @@ rust_test( "//typescript/private:corpus_starlark", "//vue/private:corpus_starlark", "//wasi/runtime:corpus_starlark", - "//zig/rules:corpus_starlark", - "//zig/tools:corpus_starlark", + "//zig/private:corpus_starlark", + "//zig/private/tools:corpus_starlark", ], deps = all_crate_deps( package_name = "tools/ci_tests", @@ -1075,15 +1075,15 @@ rust_test( "//cc/tests/fixtures/consumer_cc:corpus_starlark", "//cc/toolchains:corpus_starlark", "//cli/entrypoint:corpus_starlark", - "//d/dub:corpus_starlark", - "//d/toolchain:corpus_starlark", + "//d/private/dub:corpus_starlark", + "//d/private/toolchain:corpus_starlark", "//dart:corpus_starlark", "//deploy/release:corpus_starlark", "//deploy/tests/fixtures/consumer_archive:corpus_starlark", "//deploy/tests/fixtures/consumer_resources:corpus_starlark", "//elixir/private/toolchain:corpus_starlark", "//erlang/private/toolchain:corpus_starlark", - "//fortran/toolchain:corpus_starlark", + "//fortran/private/toolchain:corpus_starlark", "//haskell/toolchain:corpus_starlark", "//javascript/tests/fixtures/web_app:corpus_starlark", "//lua/toolchain:corpus_starlark", diff --git a/tools/ci/pr_check.sh b/tools/ci/pr_check.sh index f26ae9b267..db624ebf43 100755 --- a/tools/ci/pr_check.sh +++ b/tools/ci/pr_check.sh @@ -12,9 +12,9 @@ workflow() { PREFLIGHT_TARGETS='//cli/cli:dx //cc/tests/fixtures/hello:hello //cc/tests/fixtures/c-app/store:store_build_h //tools/testing:preflight_smoke_test //cli/env:bootstrap_test //cc/tests/fixtures/hello:hello_test - @rules_dx_powershell//tests/fixtures/hello:hello_test @rules_dx_zig//zig/tests/fixtures/zig-app/... @rules_dx_dart//dart/tests/fixtures/dart-app/... - @rules_dx_dart//dart/tests/runtime:all //dart/tools:all @rules_dx_zig//zig/tests/fixtures/hello:all @rules_dx_julia//julia/tests/fixtures/hello:all - @rules_dx_julia//julia/tests/fixtures/julia-app/... //julia/tools/... //deploy/rules:pypi_probe_verify //haskell/tools/weeder:weeder_build_test + @rules_dx_powershell//tests/fixtures/hello:hello_test //zig/tests/fixtures/zig-app/... @rules_dx_dart//dart/tests/fixtures/dart-app/... + @rules_dx_dart//dart/tests/runtime:all //dart/tools:all //zig/tests/fixtures/hello:all //julia/tests/fixtures/hello:all + //julia/tests/fixtures/julia-app/... //julia/private/tools/... //deploy/rules:pypi_probe_verify //haskell/tools/weeder:weeder_build_test //quality/testdata:matrix_python_format_pass //quality/testdata:matrix_jupyter_format_pass //quality/testdata:matrix_jupyter_lint_fail //quality/testdata:matrix_jupyter_outputs_fail //quality/testdata:matrix_javascript_format_pass //quality/testdata:matrix_api_spec_openapi_pass //quality/testdata:matrix_yaml_format_pass //quality/testdata:matrix_yaml_format_fail //quality/testdata:matrix_yaml_format_syntax_error //quality/testdata:matrix_yaml_lint_pass //quality/testdata:matrix_yaml_lint_fail //quality/testdata:matrix_yaml_lint_syntax_error //quality/testdata:matrix_flatbuffers_lint_pass //quality/testdata:matrix_capnp_lint_pass //quality/testdata:matrix_thrift_lint_pass //quality/testdata:matrix_thrift_lint_warning_fail //quality/testdata:matrix_thrift_lint_syntax_error //quality/testdata:matrix_thrift_lint_semantic_fail //quality/testdata:matrix_thrift_lint_include_undeclared //quality/testdata:matrix_thrift_typecheck_pass //quality/testdata:matrix_thrift_typecheck_semantic_fail //quality/testdata:matrix_thrift_typecheck_warning_ignored //quality/testdata:matrix_avro_lint_avsc_pass //quality/testdata:matrix_avro_lint_avsc_undefined_name //quality/testdata:matrix_avro_lint_avsc_syntax_error //quality/testdata:matrix_avro_lint_avdl_import_pass //quality/testdata:matrix_avro_lint_avdl_syntax_error //quality/testdata:matrix_avro_typecheck_avsc_pass //quality/testdata:matrix_avro_typecheck_avsc_undefined_name' preflight() { @@ -34,8 +34,8 @@ preflight-windows-arm64() { //cc/tests/fixtures/c-app/store:store_build_h \ @rules_dx_dart//dart/tests/fixtures/dart-app/... @rules_dx_dart//dart/tests/runtime:all //dart/tools:all \ //cli/cli:dx //tools/testing:preflight_smoke_test //cli/env:bootstrap_test //deploy/rules:pypi_probe_verify \ - @rules_dx_zig//zig/tests/fixtures/hello:all @rules_dx_zig//zig/tests/fixtures/zig-app/... @rules_dx_julia//julia/tests/fixtures/hello:all \ - @rules_dx_julia//julia/tests/fixtures/julia-app/... //julia/tools/... //haskell/tools/weeder:weeder_build_test + //zig/tests/fixtures/hello:all //zig/tests/fixtures/zig-app/... //julia/tests/fixtures/hello:all \ + //julia/tests/fixtures/julia-app/... //julia/private/tools/... //haskell/tools/weeder:weeder_build_test } starter() { diff --git a/tools/ci/starlark_docs_test.rs b/tools/ci/starlark_docs_test.rs index c7bc788bb3..fa12366f00 100644 --- a/tools/ci/starlark_docs_test.rs +++ b/tools/ci/starlark_docs_test.rs @@ -85,21 +85,21 @@ const PACKAGES: [&str; 92] = [ "tools/testing", "tools/testing/hermetic", "tools/visibility", - "julia/rules", - "julia/tools", + "julia/private", + "julia/private/tools", "typescript/private", "vue/private", - "zig/rules", - "zig/tools", + "zig/private", + "zig/private/tools", "api_spec/rules", "asciidoc/rules", "avro/rules", "cloudformation/rules", "cmake/rules", - "d/rules", + "d/private", "dotnet", "flutter/rules", - "fortran/rules", + "fortran/private", "haskell/rules", "helm/rules", "kubernetes/rules", diff --git a/tools/coverage/kcov/kcov_tests.bzl b/tools/coverage/kcov/kcov_tests.bzl index 519b398126..a46696e8e1 100644 --- a/tools/coverage/kcov/kcov_tests.bzl +++ b/tools/coverage/kcov/kcov_tests.bzl @@ -35,14 +35,14 @@ def _platform_test(platform): ) # An analysis rule fixes its platform when it is defined, so every platform a caller can name is defined here. -_fortran_linux_test = _platform_test("//fortran/rules:linux_x86_64") -_zig_linux_test = _platform_test("//zig/rules:kcov_linux_x86_64") -_zig_macos_test = _platform_test("//zig/rules:kcov_macos_arm64") +_fortran_linux_test = _platform_test("//fortran/private:linux_x86_64") +_zig_linux_test = _platform_test("//zig/private:kcov_linux_x86_64") +_zig_macos_test = _platform_test("//zig/private:kcov_macos_arm64") _PLATFORM_TESTS = { - "//fortran/rules:linux_x86_64": _fortran_linux_test, - "//zig/rules:kcov_linux_x86_64": _zig_linux_test, - "//zig/rules:kcov_macos_arm64": _zig_macos_test, + "//fortran/private:linux_x86_64": _fortran_linux_test, + "//zig/private:kcov_linux_x86_64": _zig_linux_test, + "//zig/private:kcov_macos_arm64": _zig_macos_test, } _off_test = analysistest.make( diff --git a/tools/docs/d/fixture/BUILD.bazel b/tools/docs/d/fixture/BUILD.bazel index 3138c6d775..95269d59c8 100644 --- a/tools/docs/d/fixture/BUILD.bazel +++ b/tools/docs/d/fixture/BUILD.bazel @@ -1,4 +1,4 @@ -load("//d/rules:defs.bzl", "D_COMPATIBLE_WITH", "d_library") +load("//d:defs.bzl", "D_COMPATIBLE_WITH", "d_library") load("//quality:fixtures.bzl", "real_source_target") load("//tools/docs/d:defs.bzl", "d_doc_shard") load("//tools/visibility:visibility.bzl", "VIS_TOOLS") diff --git a/tools/docs/fortran/fixture/BUILD.bazel b/tools/docs/fortran/fixture/BUILD.bazel index 9daf11c47c..551444272d 100644 --- a/tools/docs/fortran/fixture/BUILD.bazel +++ b/tools/docs/fortran/fixture/BUILD.bazel @@ -1,4 +1,4 @@ -load("//fortran/rules:defs.bzl", "fortran_library") +load("//fortran:defs.bzl", "fortran_library") load("//tools/docs/fortran:defs.bzl", "fortran_doc_shard") load("//tools/visibility:visibility.bzl", "VIS_TOOLS") diff --git a/tools/docs/julia/BUILD.bazel b/tools/docs/julia/BUILD.bazel index a2bf21c53e..e9d6d86406 100644 --- a/tools/docs/julia/BUILD.bazel +++ b/tools/docs/julia/BUILD.bazel @@ -1,7 +1,7 @@ load("@rules_dx//quality:fixtures.bzl", "real_source_target") load("@rules_julia//julia:defs.bzl", "julia_binary") -load("//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH") -load("//julia/tools:julia_tool.bzl", "dx_julia_tool") +load("//julia:defs.bzl", "JULIA_COMPATIBLE_WITH") +load("//julia/private/tools:julia_tool.bzl", "dx_julia_tool") load("//tools/visibility:visibility.bzl", "VIS_TOOLS", "VIS_TOOLS_PUBLIC") package(default_visibility = VIS_TOOLS_PUBLIC) diff --git a/tools/docs/julia/fixture/BUILD.bazel b/tools/docs/julia/fixture/BUILD.bazel index c1d4a7e6e9..216167a532 100644 --- a/tools/docs/julia/fixture/BUILD.bazel +++ b/tools/docs/julia/fixture/BUILD.bazel @@ -1,5 +1,5 @@ load("@bazel_skylib//rules:build_test.bzl", "build_test") -load("//julia/rules:defs.bzl", "julia_library") +load("//julia:defs.bzl", "julia_library") load("//quality:fixtures.bzl", "real_source_target") load("//tools/docs/julia:defs.bzl", "julia_doc_shard") load("//tools/visibility:visibility.bzl", "VIS_TOOLS") diff --git a/tools/docs/support_matrix/languages.bzl b/tools/docs/support_matrix/languages.bzl index e845a29ca2..491f427b26 100644 --- a/tools/docs/support_matrix/languages.bzl +++ b/tools/docs/support_matrix/languages.bzl @@ -1,17 +1,17 @@ """The language list behind docs/support-matrix.md.""" load("//cc/toolchains:pins.bzl", "GCC_VERSION", "LLVM_CLANG_VERSION") -load("//d/rules:defs.bzl", "D_CELLS") -load("//d/toolchain:pins.bzl", "LDC_CELLS") +load("//d:defs.bzl", "D_CELLS") +load("//d/private/toolchain:pins.bzl", "LDC_CELLS") load("//dart/rules:platforms.bzl", "DART_PLATFORMS") load("//elixir:defs.bzl", "ELIXIR_CELLS") load("//erlang:defs.bzl", "ERLANG_CELLS") load("//erlang/private/toolchain:pins.bzl", OTP_CELLS = "CELLS") load("//flutter/rules:platforms.bzl", "FLUTTER_PLATFORMS") -load("//fortran/toolchain:pins.bzl", "FORTRAN_CELLS") +load("//fortran/private/toolchain:pins.bzl", "FORTRAN_CELLS") load("//haskell/rules:defs.bzl", "HASKELL_CELLS") load("//haskell/toolchain:pins.bzl", GHC_CELLS = "CELLS") -load("//julia/rules:platforms.bzl", "JULIA_PLATFORMS") +load("//julia/private:platforms.bzl", "JULIA_PLATFORMS") load("//modules:cuda.bzl", "CUDA_CELLS", "cuda_qualified_cells") load("//ocaml/toolchain:pins.bzl", "OCAML_CELLS") load("//perl/rules:platforms.bzl", "PERL_PLATFORMS") @@ -39,16 +39,16 @@ def _cells(pinned, cells): COMPUTED_CONSTRAINTS = { "@rules_dx_apple//ios:cell.bzl%APPLE_HOSTS": [["@platforms//os:ios"], ["@platforms//os:macos"]], "@rules_dx_cuda//rules:defs.bzl%CUDA_TARGET": _cells(CUDA_CELLS, cuda_qualified_cells()), - "//d/rules:defs.bzl%D_COMPATIBLE_WITH": _cells(LDC_CELLS, D_CELLS), + "//d:defs.bzl%D_COMPATIBLE_WITH": _cells(LDC_CELLS, D_CELLS), "//dart/rules:defs.bzl%DART_COMPATIBLE_WITH": _os_cpu_pairs(DART_PLATFORMS), "//elixir:defs.bzl%ELIXIR_COMPATIBLE_WITH": _cells(OTP_CELLS, ELIXIR_CELLS), "//erlang:defs.bzl%ERLANG_COMPATIBLE_WITH": _cells(OTP_CELLS, ERLANG_CELLS), "//flutter/rules:defs.bzl%FLUTTER_COMPATIBLE_WITH": _os_cpu_pairs(FLUTTER_PLATFORMS), - "//fortran/rules:defs.bzl%FORTRAN_COMPATIBLE_WITH": [FORTRAN_CELLS[cell].constraints for cell in sorted(FORTRAN_CELLS.keys())], + "//fortran:defs.bzl%FORTRAN_COMPATIBLE_WITH": [FORTRAN_CELLS[cell].constraints for cell in sorted(FORTRAN_CELLS.keys())], "//haskell/rules:defs.bzl%HASKELL_COMPATIBLE_WITH": _cells(GHC_CELLS, HASKELL_CELLS), # Mirrors HERMETIC_COMPATIBLE_WITH in //tools/testing/hermetic:defs.bzl. "//tools/testing/hermetic:defs.bzl%HERMETIC_COMPATIBLE_WITH": [["@platforms//os:linux"], ["@platforms//os:macos"], ["@platforms//os:windows"]], - "//julia/rules:defs.bzl%JULIA_COMPATIBLE_WITH": _os_cpu_pairs(JULIA_PLATFORMS), + "//julia:defs.bzl%JULIA_COMPATIBLE_WITH": _os_cpu_pairs(JULIA_PLATFORMS), "//ocaml/rules:defs.bzl%OCAML_COMPATIBLE_WITH": _cells(OCAML_CELLS, sorted(OCAML_CELLS.keys())), # PERL_COMPATIBLE_WITH is a select() on rules_perl_platform, which matches any of these. "//perl/rules:defs.bzl%PERL_COMPATIBLE_WITH": _os_cpu_pairs(PERL_PLATFORMS), @@ -182,13 +182,13 @@ ROWS = [ "section": "languages", "title": "Flutter", }, - {"ci_tests": ["@rules_dx_fortran//fortran/tests/runtime:stats_test"], "consumer_tests": _starter_consumers("fortran"), "name": "fortran", "section": "languages", "title": "Fortran"}, + {"ci_tests": ["//fortran/tests/runtime:stats_test"], "consumer_tests": _starter_consumers("fortran"), "name": "fortran", "section": "languages", "title": "Fortran"}, {"ci_tests": _hello("fsharp", "@rules_dx_dotnet"), "consumer_tests": _starter_consumers("fsharp"), "name": "fsharp", "section": "languages", "title": "F#"}, {"ci_tests": _hello("go"), "consumer_tests": _starter_consumers("go"), "name": "go", "section": "languages", "title": "Go"}, {"ci_tests": ["//haskell/tests/runtime:probe_test"], "consumer_tests": _starter_consumers("haskell"), "name": "haskell", "section": "languages", "title": "Haskell"}, {"ci_tests": _hello("java"), "consumer_tests": _starter_consumers("java"), "name": "java", "section": "languages", "title": "Java"}, {"ci_tests": _hello("javascript", "@rules_dx_js"), "consumer_tests": _starter_consumers("javascript"), "name": "javascript", "section": "languages", "title": "JavaScript"}, - {"ci_tests": ["@rules_dx_julia//julia/tests/fixtures/hello:greet_test"], "consumer_tests": _starter_consumers("julia"), "name": "julia", "section": "languages", "title": "Julia"}, + {"ci_tests": ["//julia/tests/fixtures/hello:greet_test"], "consumer_tests": _starter_consumers("julia"), "name": "julia", "section": "languages", "title": "Julia"}, {"ci_tests": _hello("kotlin"), "name": "kotlin", "section": "languages", "title": "Kotlin"}, {"ci_tests": ["@rules_dx_lua//lua/tests/runtime:probe_test"], "consumer_tests": ["//tools/testing/hermetic:lua"] + _starter_consumers("lua"), "name": "lua", "section": "languages", "title": "Lua"}, {"ci_tests": _hello("mdx", "@rules_dx_js") + ["@rules_dx_js//mdx/tests/app:site_static_test"], "consumer_tests": _starter_consumers("mdx"), "name": "mdx", "section": "languages", "title": "MDX"}, @@ -219,7 +219,7 @@ ROWS = [ {"ci_tests": ["//swift/tests/fixtures/hello:hello_output_test"], "name": "swift", "section": "languages", "title": "Swift"}, {"ci_tests": _hello("typescript", "@rules_dx_js"), "consumer_tests": _starter_consumers("typescript"), "name": "typescript", "section": "languages", "title": "TypeScript"}, {"ci_tests": _hello("vue", "@rules_dx_js"), "consumer_tests": _starter_consumers("vue"), "name": "vue", "section": "languages", "title": "Vue"}, - {"ci_tests": ["@rules_dx_zig//zig/tests/fixtures/hello:greet_test"], "consumer_tests": ["//tools/testing/hermetic:zig"] + _starter_consumers("zig"), "name": "zig", "section": "languages", "title": "Zig"}, + {"ci_tests": ["//zig/tests/fixtures/hello:greet_test"], "consumer_tests": ["//tools/testing/hermetic:zig"] + _starter_consumers("zig"), "name": "zig", "section": "languages", "title": "Zig"}, { "ci_tests": [ "@rules_dx_android//tests/fixtures/rust_apk:check_unsigned_test", @@ -530,7 +530,7 @@ LANGUAGES = [ doc = struct(tool = "documenter", shard = "julia_doc_shard"), dead_code = ["none"], coverage = ["CoverageTools"], - unsupported = "//julia/rules:unsupported", + unsupported = "//julia/private:unsupported", not_applicable = { "windows_arm64": "julialang.org and rules_julia 0.8.0 ship no Windows arm64 Julia build" }, diff --git a/tools/docs/support_matrix/src/lib.rs b/tools/docs/support_matrix/src/lib.rs index 2c850632a0..3a3d92d888 100644 --- a/tools/docs/support_matrix/src/lib.rs +++ b/tools/docs/support_matrix/src/lib.rs @@ -213,10 +213,8 @@ fn split_label(label: &str) -> Result<(String, &str), String> { "@rules_dx_cuda", "@rules_dx_dart", "@rules_dx_dotnet", - "@rules_dx_fortran", "@rules_dx_generation", "@rules_dx_js", - "@rules_dx_julia", "@rules_dx_lua", "@rules_dx_msix", "@rules_dx_perl", @@ -225,7 +223,6 @@ fn split_label(label: &str) -> Result<(String, &str), String> { "@rules_dx_powershell", "@rules_dx_ruby", "@rules_dx_rust", - "@rules_dx_zig", ] .into_iter() .find_map(|repo| Some((repo, label.strip_prefix(repo)?.strip_prefix("//")?))); diff --git a/tools/docs/support_matrix/src/starlark.rs b/tools/docs/support_matrix/src/starlark.rs index b9a74b92e7..60abe981e6 100644 --- a/tools/docs/support_matrix/src/starlark.rs +++ b/tools/docs/support_matrix/src/starlark.rs @@ -595,7 +595,7 @@ const KNOWN_KINDS: &[(&str, Constraint)] = &[ ), ( "d_test", - Constraint::Appended("//d/rules:defs.bzl", "D_COMPATIBLE_WITH"), + Constraint::Appended("//d:defs.bzl", "D_COMPATIBLE_WITH"), ), ("dx_hello_output_test", Constraint::AsWritten), ("dx_wasi_test_tests", Constraint::AsWritten), @@ -613,7 +613,7 @@ const KNOWN_KINDS: &[(&str, Constraint)] = &[ ), ( "fortran_test", - Constraint::DefaultIfUnset("//fortran/rules:defs.bzl", "FORTRAN_COMPATIBLE_WITH"), + Constraint::DefaultIfUnset("//fortran:defs.bzl", "FORTRAN_COMPATIBLE_WITH"), ), ("failure_test", Constraint::AsWritten), ( @@ -637,7 +637,7 @@ const KNOWN_KINDS: &[(&str, Constraint)] = &[ ("javascript_test", Constraint::AsWritten), ( "julia_test", - Constraint::Appended("//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH"), + Constraint::Appended("//julia:defs.bzl", "JULIA_COMPATIBLE_WITH"), ), ("kotlin_test", Constraint::AsWritten), ("lua_test", Constraint::AsWritten), @@ -904,7 +904,7 @@ mod tests { ], ]); } - if label == "//d/rules:defs.bzl" && symbol == "D_COMPATIBLE_WITH" { + if label == "//d:defs.bzl" && symbol == "D_COMPATIBLE_WITH" { let cell = |os: &str, cpu: &str, extra: &[&str]| { let mut cell = vec![ format!("@platforms//os:{os}"), @@ -937,7 +937,7 @@ mod tests { let linux_x86_64 = "[\"@platforms//os:linux\", \"@platforms//cpu:x86_64\"]\n".to_owned(); Files(BTreeMap::from([ ( - "//fortran/rules:defs.bzl".to_owned(), + "//fortran:defs.bzl".to_owned(), format!("FORTRAN_COMPATIBLE_WITH = {linux_x86_64}"), ), ( diff --git a/tools/docs/zig/dump/BUILD.bazel b/tools/docs/zig/dump/BUILD.bazel index 8334c4ceb4..f7449ea23a 100644 --- a/tools/docs/zig/dump/BUILD.bazel +++ b/tools/docs/zig/dump/BUILD.bazel @@ -2,7 +2,7 @@ load("//quality:fixtures.bzl", "real_source_target") load("//tools/visibility:visibility.bzl", "VIS_TOOLS", "VIS_TOOLS_PUBLIC") -load("//zig/rules:defs.bzl", "zig_binary", "zig_test") +load("//zig:defs.bzl", "zig_binary", "zig_test") package(default_visibility = VIS_TOOLS_PUBLIC) diff --git a/tools/docs/zig/fixture/BUILD.bazel b/tools/docs/zig/fixture/BUILD.bazel index 1aef3eac03..003062d700 100644 --- a/tools/docs/zig/fixture/BUILD.bazel +++ b/tools/docs/zig/fixture/BUILD.bazel @@ -1,7 +1,7 @@ load("//quality:fixtures.bzl", "real_source_target") load("//tools/docs/zig:defs.bzl", "zig_doc_shard") load("//tools/visibility:visibility.bzl", "VIS_TOOLS") -load("//zig/rules:defs.bzl", "zig_library") +load("//zig:defs.bzl", "zig_library") package(default_visibility = VIS_TOOLS) diff --git a/tools/testing/hermetic/BUILD.bazel b/tools/testing/hermetic/BUILD.bazel index d982893be6..5bcfbe3b6b 100644 --- a/tools/testing/hermetic/BUILD.bazel +++ b/tools/testing/hermetic/BUILD.bazel @@ -712,20 +712,20 @@ hermetic_qualification( files = { "consumers/zig/apps/catalog.BUILD.bazel": "zig/tests/fixtures/zig-app/catalog/BUILD.bazel", "consumers/zig/apps/digest.BUILD.bazel": "zig/tests/fixtures/zig-app/digest/BUILD.bazel", - "@rules_dx_zig//zig/tests/fixtures/zig-app:xxhash.BUILD.bazel": "zig/tests/fixtures/zig-app/digest/xxhash.build", - "@rules_dx_zig//zig/tests/fixtures/zig-app/catalog:VERSION": "zig/tests/fixtures/zig-app/catalog/VERSION", - "@rules_dx_zig//zig/tests/fixtures/zig-app/catalog:catalog.zig": "zig/tests/fixtures/zig-app/catalog/catalog.zig", - "@rules_dx_zig//zig/tests/fixtures/zig-app/catalog:catalog_test.zig": "zig/tests/fixtures/zig-app/catalog/catalog_test.zig", - "@rules_dx_zig//zig/tests/fixtures/zig-app/catalog:items.tsv": "zig/tests/fixtures/zig-app/catalog/items.tsv", - "@rules_dx_zig//zig/tests/fixtures/zig-app/digest:digest.c": "zig/tests/fixtures/zig-app/digest/digest.c", - "@rules_dx_zig//zig/tests/fixtures/zig-app/digest:digest.h": "zig/tests/fixtures/zig-app/digest/digest.h", - "@rules_dx_zig//zig/tests/fixtures/zig-app/digest:digest.zig": "zig/tests/fixtures/zig-app/digest/digest.zig", - "@rules_dx_zig//zig/tests/fixtures/zig-app/digest:digest_test.zig": "zig/tests/fixtures/zig-app/digest/digest_test.zig", - "@rules_dx_zig//zig/tests/fixtures/zig-app/cli:BUILD.bazel": "zig/tests/fixtures/zig-app/cli/BUILD.bazel", - "@rules_dx_zig//zig/tests/fixtures/zig-app/cli:exit_codes.sh": "zig/tests/fixtures/zig-app/cli/exit_codes.sh", - "@rules_dx_zig//zig/tests/fixtures/zig-app/cli:main.zig": "zig/tests/fixtures/zig-app/cli/main.zig", - "@rules_dx_zig//zig/tests/fixtures/zig-app/cli:report.zig": "zig/tests/fixtures/zig-app/cli/report.zig", - "@rules_dx_zig//zig/tests/fixtures/zig-app/cli:report_test.zig": "zig/tests/fixtures/zig-app/cli/report_test.zig", + "//zig/tests/fixtures/zig-app:xxhash.BUILD.bazel": "zig/tests/fixtures/zig-app/digest/xxhash.build", + "//zig/tests/fixtures/zig-app/catalog:VERSION": "zig/tests/fixtures/zig-app/catalog/VERSION", + "//zig/tests/fixtures/zig-app/catalog:catalog.zig": "zig/tests/fixtures/zig-app/catalog/catalog.zig", + "//zig/tests/fixtures/zig-app/catalog:catalog_test.zig": "zig/tests/fixtures/zig-app/catalog/catalog_test.zig", + "//zig/tests/fixtures/zig-app/catalog:items.tsv": "zig/tests/fixtures/zig-app/catalog/items.tsv", + "//zig/tests/fixtures/zig-app/digest:digest.c": "zig/tests/fixtures/zig-app/digest/digest.c", + "//zig/tests/fixtures/zig-app/digest:digest.h": "zig/tests/fixtures/zig-app/digest/digest.h", + "//zig/tests/fixtures/zig-app/digest:digest.zig": "zig/tests/fixtures/zig-app/digest/digest.zig", + "//zig/tests/fixtures/zig-app/digest:digest_test.zig": "zig/tests/fixtures/zig-app/digest/digest_test.zig", + "//zig/tests/fixtures/zig-app/cli:BUILD.bazel": "zig/tests/fixtures/zig-app/cli/BUILD.bazel", + "//zig/tests/fixtures/zig-app/cli:exit_codes.sh": "zig/tests/fixtures/zig-app/cli/exit_codes.sh", + "//zig/tests/fixtures/zig-app/cli:main.zig": "zig/tests/fixtures/zig-app/cli/main.zig", + "//zig/tests/fixtures/zig-app/cli:report.zig": "zig/tests/fixtures/zig-app/cli/report.zig", + "//zig/tests/fixtures/zig-app/cli:report_test.zig": "zig/tests/fixtures/zig-app/cli/report_test.zig", }, languages = ["zig"], module_fragment = "consumers/zig/module_fragment.bazel", diff --git a/tools/testing/hermetic/consumers/zig/apps/catalog.BUILD.bazel b/tools/testing/hermetic/consumers/zig/apps/catalog.BUILD.bazel index d79520cf98..bd539e49f4 100644 --- a/tools/testing/hermetic/consumers/zig/apps/catalog.BUILD.bazel +++ b/tools/testing/hermetic/consumers/zig/apps/catalog.BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//zig/rules:defs.bzl", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_library", "zig_test") _PUBLIC = ["//visibility:public"] diff --git a/tools/testing/hermetic/consumers/zig/apps/digest.BUILD.bazel b/tools/testing/hermetic/consumers/zig/apps/digest.BUILD.bazel index 1de9351a9f..1976404088 100644 --- a/tools/testing/hermetic/consumers/zig/apps/digest.BUILD.bazel +++ b/tools/testing/hermetic/consumers/zig/apps/digest.BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_dx//cc/rules:defs.bzl", "cc_library") -load("@rules_dx//zig/rules:defs.bzl", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_library", "zig_test") _PUBLIC = ["//visibility:public"] diff --git a/tools/testing/starters/BUILD.bazel b/tools/testing/starters/BUILD.bazel index 6f0b6ab96d..592a09d2c0 100644 --- a/tools/testing/starters/BUILD.bazel +++ b/tools/testing/starters/BUILD.bazel @@ -1,12 +1,12 @@ load("@crates//:crates.bzl", "aliases") load("@rules_dx//quality:fixtures.bzl", "real_source_target") -load("//d/rules:defs.bzl", "D_COMPATIBLE_WITH") +load("//d:defs.bzl", "D_COMPATIBLE_WITH") load("//dart/rules:defs.bzl", "DART_COMPATIBLE_WITH") load("//elixir:defs.bzl", "ELIXIR_COMPATIBLE_WITH") load("//erlang:defs.bzl", "ERLANG_COMPATIBLE_WITH") -load("//fortran/rules:defs.bzl", "FORTRAN_COMPATIBLE_WITH") +load("//fortran:defs.bzl", "FORTRAN_COMPATIBLE_WITH") load("//haskell/rules:defs.bzl", "HASKELL_COMPATIBLE_WITH") -load("//julia/rules:defs.bzl", "JULIA_COMPATIBLE_WITH") +load("//julia:defs.bzl", "JULIA_COMPATIBLE_WITH") load("//ocaml/rules:defs.bzl", "OCAML_COMPATIBLE_WITH") load("//perl/rules:defs.bzl", "PERL_COMPATIBLE_WITH") load("//php/rules:defs.bzl", "PHP_COMPATIBLE_WITH") @@ -73,7 +73,7 @@ starter_consumer_test( starter_consumer_test( name = "fortran", - bazel_deps = ["rules_dx", "rules_dx_fortran"], + bazel_deps = ["rules_dx"], target_compatible_with = FORTRAN_COMPATIBLE_WITH, ) diff --git a/tools/testing/starters/fixtures/d/BUILD.bazel.fixture b/tools/testing/starters/fixtures/d/BUILD.bazel.fixture index ce535aa56b..0a0c614c64 100644 --- a/tools/testing/starters/fixtures/d/BUILD.bazel.fixture +++ b/tools/testing/starters/fixtures/d/BUILD.bazel.fixture @@ -1,4 +1,4 @@ -load("@rules_dx//d/rules:defs.bzl", "d_binary", "d_library", "d_test") +load("@rules_dx//d:defs.bzl", "d_binary", "d_library", "d_test") d_library( name = "demo-app", diff --git a/tools/testing/starters/fixtures/fortran/BUILD.bazel.fixture b/tools/testing/starters/fixtures/fortran/BUILD.bazel.fixture index 028000ad42..d751d5ee90 100644 --- a/tools/testing/starters/fixtures/fortran/BUILD.bazel.fixture +++ b/tools/testing/starters/fixtures/fortran/BUILD.bazel.fixture @@ -1,4 +1,4 @@ -load("@rules_dx//fortran/rules:defs.bzl", "fortran_binary", "fortran_library", "fortran_test") +load("@rules_dx//fortran:defs.bzl", "fortran_binary", "fortran_library", "fortran_test") fortran_library( name = "demo-app", diff --git a/tools/testing/starters/fixtures/julia/BUILD.bazel.fixture b/tools/testing/starters/fixtures/julia/BUILD.bazel.fixture index 24eee1f89f..e37c72de0d 100644 --- a/tools/testing/starters/fixtures/julia/BUILD.bazel.fixture +++ b/tools/testing/starters/fixtures/julia/BUILD.bazel.fixture @@ -1,4 +1,4 @@ -load("@rules_dx//julia/rules:defs.bzl", "julia_binary", "julia_library", "julia_test") +load("@rules_dx//julia:defs.bzl", "julia_binary", "julia_library", "julia_test") julia_library( name = "DemoApp", diff --git a/tools/testing/starters/fixtures/zig/BUILD.bazel.fixture b/tools/testing/starters/fixtures/zig/BUILD.bazel.fixture index d1a20164a9..08e8c16ad3 100644 --- a/tools/testing/starters/fixtures/zig/BUILD.bazel.fixture +++ b/tools/testing/starters/fixtures/zig/BUILD.bazel.fixture @@ -1,4 +1,4 @@ -load("@rules_dx//zig/rules:defs.bzl", "zig_binary", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_binary", "zig_library", "zig_test") zig_library( name = "demo-app", diff --git a/zig/BUILD.bazel b/zig/BUILD.bazel new file mode 100644 index 0000000000..2c51b896e5 --- /dev/null +++ b/zig/BUILD.bazel @@ -0,0 +1,6 @@ +exports_files([ + "README.md", + "defs.bzl", + "extensions.bzl", + "lang.json", +]) diff --git a/zig/README.md b/zig/README.md index f2d56a8975..f87135f935 100644 --- a/zig/README.md +++ b/zig/README.md @@ -4,7 +4,7 @@ Build, run, test and format Zig with the pinned `rules_zig` 0.17.0 and Zig 0.16.0 toolchain. Nothing needs to be installed. ```python -load("@rules_dx//zig/rules:defs.bzl", "zig_binary", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_binary", "zig_library", "zig_test") zig_library( name = "greet", @@ -45,7 +45,7 @@ installed. The `.dependencies` of a `build.zig.zon` become one hub of `zig_library` targets. Bazel fetches each archive through its repository cache; Zig never runs at fetch time. Only `http(s)` archive URLs (`.tar.gz`, `.tgz`, `.tar.xz`, `.tar.zst`, `.zip`) are supported; `git+` URLs and path dependencies are not. ```python -zig_deps = use_extension("@rules_dx//zig/deps:extensions.bzl", "zig_deps") +zig_deps = use_extension("@rules_dx//zig:extensions.bzl", "zig_deps") zig_deps.lock( name = "zig_packages", digests = "//:zig.digests.json", @@ -76,7 +76,7 @@ A package without a matching entry fails the fetch and prints the entry to commi `zig_bench` builds a private `_bin` with `mode = "release_fast"` and declares `` as the manual `dx-bench` test `dx bench` runs. Test attributes (`size`, `timeout`, `args`, `data`, `env`) go to ``, the other attributes to the binary. ```python -load("@rules_dx//zig/rules:defs.bzl", "zig_bench") +load("@rules_dx//zig:defs.bzl", "zig_bench") zig_bench( name = "parse_bench", diff --git a/zig/defs.bzl b/zig/defs.bzl new file mode 100644 index 0000000000..dc096e9142 --- /dev/null +++ b/zig/defs.bzl @@ -0,0 +1,16 @@ +"""Public Zig API.""" + +load( + "//zig/private:defs.bzl", + _zig_bench = "zig_bench", + _zig_binary = "zig_binary", + _zig_import_name = "zig_import_name", + _zig_library = "zig_library", + _zig_test = "zig_test", +) + +zig_import_name = _zig_import_name +zig_library = _zig_library +zig_binary = _zig_binary +zig_test = _zig_test +zig_bench = _zig_bench diff --git a/zig/extensions.bzl b/zig/extensions.bzl new file mode 100644 index 0000000000..346cb09fd7 --- /dev/null +++ b/zig/extensions.bzl @@ -0,0 +1,5 @@ +"""Public Zig module extensions.""" + +load("//zig/private/deps:extensions.bzl", _zig_deps = "zig_deps") + +zig_deps = _zig_deps diff --git a/zig/lang.json b/zig/lang.json index a78ff040e7..acbab53bc4 100644 --- a/zig/lang.json +++ b/zig/lang.json @@ -2,7 +2,7 @@ "$schema": "../modules/lang.schema.json", "name": "zig", "title": "Zig", - "family": "zig", + "family": "core", "ecosystems": [ "zig packages" ], diff --git a/zig/rules/BUILD.bazel b/zig/private/BUILD.bazel similarity index 100% rename from zig/rules/BUILD.bazel rename to zig/private/BUILD.bazel diff --git a/zig/rules/bench_run.sh b/zig/private/bench_run.sh similarity index 100% rename from zig/rules/bench_run.sh rename to zig/private/bench_run.sh diff --git a/zig/rules/defs.bzl b/zig/private/defs.bzl similarity index 95% rename from zig/rules/defs.bzl rename to zig/private/defs.bzl index c6d9e88cd7..a6dfd54a3a 100644 --- a/zig/rules/defs.bzl +++ b/zig/private/defs.bzl @@ -21,8 +21,8 @@ _DX_ZIG_LIBRARY_PROVIDES = [ ] ZIG_QUALITY_TOOLS = { - "zig_ast_check": Label("//zig/tools:zig"), - "zig_fmt": Label("//zig/tools:zig"), + "zig_ast_check": Label("//zig/private/tools:zig"), + "zig_fmt": Label("//zig/private/tools:zig"), } _DX_ZIG_EXEC_PROVIDES = DX_EXEC_PROVIDES + [QualityToolsInfo] _DX_ZIG_SOURCE_SPECS = [("zig", "zig")] @@ -56,7 +56,7 @@ def _kcov_upstream_impl(settings, _attr): return { "//command_line_option:collect_code_coverage": False, "//command_line_option:strip": "never" if coverage else settings["//command_line_option:strip"], - "//zig/rules:kcov": coverage, + "//zig/private:kcov": coverage, } _kcov_upstream = transition( @@ -68,7 +68,7 @@ _kcov_upstream = transition( outputs = [ "//command_line_option:collect_code_coverage", "//command_line_option:strip", - "//zig/rules:kcov", + "//zig/private:kcov", ], ) @@ -126,7 +126,7 @@ def zig_test(name, *, main = None, srcs = None, visibility = None, **kwargs): """Minimal wrapper over zig_test. main is name.zig, else the single src; kcov builds add -fllvm.""" main = dx_infer_main("zig_test", name, main, srcs, dx_main_candidates(name, ".zig")) upstream = dict(kwargs, main = main, zigopts = kwargs.get("zigopts", []) + select({ - Label("//zig/rules:kcov_build"): ["-fllvm"], + Label("//zig/private:kcov_build"): ["-fllvm"], "//conditions:default": [], })) dx_wrap_test(name, _zig_test, _zig_forward_test, srcs, visibility = visibility, upstream_kwargs = upstream, quality_srcs = dx_entry_quality_srcs(main, srcs), main = main, extra_forward_kwargs = {"deps": kwargs.get("deps", [])}, coverage_collector = ZIG_COVERAGE_COLLECTOR, **kwargs) @@ -157,6 +157,6 @@ def zig_bench(name, *, main = None, srcs = None, visibility = None, tags = None, tags = tags, visibility = visibility, binary_kwargs = {"main": main, "srcs": srcs}, - runner_kwargs = {"srcs": [Label("//zig/rules:bench_run.sh")]}, + runner_kwargs = {"srcs": [Label("//zig/private:bench_run.sh")]}, pass_binary = True, ) diff --git a/zig/deps/BUILD.bazel b/zig/private/deps/BUILD.bazel similarity index 100% rename from zig/deps/BUILD.bazel rename to zig/private/deps/BUILD.bazel diff --git a/zig/deps/extensions.bzl b/zig/private/deps/extensions.bzl similarity index 100% rename from zig/deps/extensions.bzl rename to zig/private/deps/extensions.bzl diff --git a/zig/deps/lock.bzl b/zig/private/deps/lock.bzl similarity index 100% rename from zig/deps/lock.bzl rename to zig/private/deps/lock.bzl diff --git a/zig/deps/lock_tests.bzl b/zig/private/deps/lock_tests.bzl similarity index 97% rename from zig/deps/lock_tests.bzl rename to zig/private/deps/lock_tests.bzl index 1072d4442e..5d8f79541f 100644 --- a/zig/deps/lock_tests.bzl +++ b/zig/private/deps/lock_tests.bzl @@ -35,7 +35,7 @@ def _checks(): orphan = analyze("hub", _ZON, _digests({"xxhash": "N-V-__8AAA", "wire-fmt": "N-V-__8AAB", "z": "h"})) git = analyze("hub", ".{ .dependencies = .{ .a = .{ .url = \"git+https://x/y#abc\", .hash = \"h\" } } }", "") bad_sidecar = analyze("hub", _ZON, "{\"version\": 1}") - build = spoke_build("a", "src/a.zig", ["hub__b"], "//zig/rules:defs.bzl") + build = spoke_build("a", "src/a.zig", ["hub__b"], "//zig/private:defs.bzl") return [ expect_equal("parsed names skip path dependencies", sorted(deps.keys()), ["wire-fmt", "xxhash"]), expect_equal("a clean manifest has no parse errors", errors, []), diff --git a/zig/deps/repos.bzl b/zig/private/deps/repos.bzl similarity index 98% rename from zig/deps/repos.bzl rename to zig/private/deps/repos.bzl index 1a5b0e470e..d8b762d81b 100644 --- a/zig/deps/repos.bzl +++ b/zig/private/deps/repos.bzl @@ -3,7 +3,7 @@ load("//libs/starlark:repo.bzl", "hub_repo") load(":lock.bzl", "analyze", "archive_type", "dependency_names", "hub_package_build", "hub_root_build", "main_file", "pin_entry_json", "spoke_build") -_DEFS_BZL = str(Label("//zig/rules:defs.bzl")) +_DEFS_BZL = str(Label("//zig/private:defs.bzl")) def _package_impl(rctx): attrs = rctx.attr diff --git a/zig/tools/BUILD.bazel b/zig/private/tools/BUILD.bazel similarity index 100% rename from zig/tools/BUILD.bazel rename to zig/private/tools/BUILD.bazel diff --git a/zig/tools/zig_tool.bzl b/zig/private/tools/zig_tool.bzl similarity index 100% rename from zig/tools/zig_tool.bzl rename to zig/private/tools/zig_tool.bzl diff --git a/families/zig/zig/tests/fixtures/bench/BUILD.bazel b/zig/tests/fixtures/bench/BUILD.bazel similarity index 86% rename from families/zig/zig/tests/fixtures/bench/BUILD.bazel rename to zig/tests/fixtures/bench/BUILD.bazel index b185044aae..69b5533c55 100644 --- a/families/zig/zig/tests/fixtures/bench/BUILD.bazel +++ b/zig/tests/fixtures/bench/BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_dx//libs/starlark:fuzz_bench_tests.bzl", "dx_runner_attr_test") -load("@rules_dx//zig/rules:defs.bzl", "zig_bench") +load("@rules_dx//zig:defs.bzl", "zig_bench") load("@rules_shell//shell:sh_test.bzl", "sh_test") package( @@ -16,12 +16,12 @@ sh_test( name = "parse_bench_run_test", srcs = ["run_test.sh"], args = [ - "$(rootpath @rules_dx//zig/rules:bench_run.sh)", + "$(rootpath @rules_dx//zig/private:bench_run.sh)", "$(rootpath :parse_bench_bin)", ], data = [ ":parse_bench_bin", - "@rules_dx//zig/rules:bench_run.sh", + "@rules_dx//zig/private:bench_run.sh", ], target_compatible_with = ["@platforms//os:linux"], timeout = "short", diff --git a/families/zig/zig/tests/fixtures/bench/main.zig b/zig/tests/fixtures/bench/main.zig similarity index 100% rename from families/zig/zig/tests/fixtures/bench/main.zig rename to zig/tests/fixtures/bench/main.zig diff --git a/families/zig/zig/tests/fixtures/bench/run_test.sh b/zig/tests/fixtures/bench/run_test.sh similarity index 100% rename from families/zig/zig/tests/fixtures/bench/run_test.sh rename to zig/tests/fixtures/bench/run_test.sh diff --git a/families/zig/zig/tests/fixtures/calc/BUILD.bazel b/zig/tests/fixtures/calc/BUILD.bazel similarity index 79% rename from families/zig/zig/tests/fixtures/calc/BUILD.bazel rename to zig/tests/fixtures/calc/BUILD.bazel index e75214f757..534709b4af 100644 --- a/families/zig/zig/tests/fixtures/calc/BUILD.bazel +++ b/zig/tests/fixtures/calc/BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_dx//quality:fixtures.bzl", "real_source_target") -load("@rules_dx//zig/rules:defs.bzl", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_library", "zig_test") load("@rules_dx//tools/coverage/kcov:kcov_tests.bzl", "dx_kcov_env_test") package(default_visibility = ["//visibility:public"]) @@ -19,8 +19,8 @@ zig_test( dx_kcov_env_test( name = "calc_test_kcov_test", instrumented = ["zig/tests/fixtures/calc/calc.zig"], - linux_platform = "//zig/rules:kcov_linux_x86_64", - other_platforms = ["//zig/rules:kcov_macos_arm64"], + linux_platform = "//zig/private:kcov_linux_x86_64", + other_platforms = ["//zig/private:kcov_macos_arm64"], target = ":calc_test", upstream = "calc_test_upstream", ) diff --git a/families/zig/zig/tests/fixtures/calc/calc.zig b/zig/tests/fixtures/calc/calc.zig similarity index 100% rename from families/zig/zig/tests/fixtures/calc/calc.zig rename to zig/tests/fixtures/calc/calc.zig diff --git a/families/zig/zig/tests/fixtures/calc/calc_test.zig b/zig/tests/fixtures/calc/calc_test.zig similarity index 100% rename from families/zig/zig/tests/fixtures/calc/calc_test.zig rename to zig/tests/fixtures/calc/calc_test.zig diff --git a/families/zig/zig/tests/fixtures/hello/BUILD.bazel b/zig/tests/fixtures/hello/BUILD.bazel similarity index 90% rename from families/zig/zig/tests/fixtures/hello/BUILD.bazel rename to zig/tests/fixtures/hello/BUILD.bazel index 7db62a79c8..3fd7e6b8ca 100644 --- a/families/zig/zig/tests/fixtures/hello/BUILD.bazel +++ b/zig/tests/fixtures/hello/BUILD.bazel @@ -1,6 +1,6 @@ load("@rules_dx//quality:fixtures.bzl", "real_source_target") load("@rules_dx//tools/testing:hello_output.bzl", "dx_hello_output_test") -load("@rules_dx//zig/rules:defs.bzl", "zig_binary", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_binary", "zig_library", "zig_test") package( default_testonly = True, diff --git a/families/zig/zig/tests/fixtures/hello/greet.zig b/zig/tests/fixtures/hello/greet.zig similarity index 100% rename from families/zig/zig/tests/fixtures/hello/greet.zig rename to zig/tests/fixtures/hello/greet.zig diff --git a/families/zig/zig/tests/fixtures/hello/main.zig b/zig/tests/fixtures/hello/main.zig similarity index 100% rename from families/zig/zig/tests/fixtures/hello/main.zig rename to zig/tests/fixtures/hello/main.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/BUILD.bazel b/zig/tests/fixtures/zig-app/BUILD.bazel similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/BUILD.bazel rename to zig/tests/fixtures/zig-app/BUILD.bazel diff --git a/families/zig/zig/tests/fixtures/zig-app/README.md b/zig/tests/fixtures/zig-app/README.md similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/README.md rename to zig/tests/fixtures/zig-app/README.md diff --git a/families/zig/zig/tests/fixtures/zig-app/catalog/BUILD.bazel b/zig/tests/fixtures/zig-app/catalog/BUILD.bazel similarity index 93% rename from families/zig/zig/tests/fixtures/zig-app/catalog/BUILD.bazel rename to zig/tests/fixtures/zig-app/catalog/BUILD.bazel index 01a60e0499..8f395ea76e 100644 --- a/families/zig/zig/tests/fixtures/zig-app/catalog/BUILD.bazel +++ b/zig/tests/fixtures/zig-app/catalog/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//zig/rules:defs.bzl", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_library", "zig_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") package(default_visibility = ["//zig/tests/fixtures/zig-app:__subpackages__"]) diff --git a/families/zig/zig/tests/fixtures/zig-app/catalog/VERSION b/zig/tests/fixtures/zig-app/catalog/VERSION similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/catalog/VERSION rename to zig/tests/fixtures/zig-app/catalog/VERSION diff --git a/families/zig/zig/tests/fixtures/zig-app/catalog/catalog.zig b/zig/tests/fixtures/zig-app/catalog/catalog.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/catalog/catalog.zig rename to zig/tests/fixtures/zig-app/catalog/catalog.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/catalog/catalog_test.zig b/zig/tests/fixtures/zig-app/catalog/catalog_test.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/catalog/catalog_test.zig rename to zig/tests/fixtures/zig-app/catalog/catalog_test.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/catalog/items.tsv b/zig/tests/fixtures/zig-app/catalog/items.tsv similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/catalog/items.tsv rename to zig/tests/fixtures/zig-app/catalog/items.tsv diff --git a/families/zig/zig/tests/fixtures/zig-app/cli/BUILD.bazel b/zig/tests/fixtures/zig-app/cli/BUILD.bazel similarity index 93% rename from families/zig/zig/tests/fixtures/zig-app/cli/BUILD.bazel rename to zig/tests/fixtures/zig-app/cli/BUILD.bazel index 55e7552643..f13aa48834 100644 --- a/families/zig/zig/tests/fixtures/zig-app/cli/BUILD.bazel +++ b/zig/tests/fixtures/zig-app/cli/BUILD.bazel @@ -1,4 +1,4 @@ -load("@rules_dx//zig/rules:defs.bzl", "zig_binary", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_binary", "zig_library", "zig_test") load("@rules_shell//shell:sh_test.bzl", "sh_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") diff --git a/families/zig/zig/tests/fixtures/zig-app/cli/exit_codes.sh b/zig/tests/fixtures/zig-app/cli/exit_codes.sh similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/cli/exit_codes.sh rename to zig/tests/fixtures/zig-app/cli/exit_codes.sh diff --git a/families/zig/zig/tests/fixtures/zig-app/cli/main.zig b/zig/tests/fixtures/zig-app/cli/main.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/cli/main.zig rename to zig/tests/fixtures/zig-app/cli/main.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/cli/report.zig b/zig/tests/fixtures/zig-app/cli/report.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/cli/report.zig rename to zig/tests/fixtures/zig-app/cli/report.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/cli/report_test.zig b/zig/tests/fixtures/zig-app/cli/report_test.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/cli/report_test.zig rename to zig/tests/fixtures/zig-app/cli/report_test.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/diagnostics/BUILD.bazel b/zig/tests/fixtures/zig-app/diagnostics/BUILD.bazel similarity index 88% rename from families/zig/zig/tests/fixtures/zig-app/diagnostics/BUILD.bazel rename to zig/tests/fixtures/zig-app/diagnostics/BUILD.bazel index 72ac29a030..597ce79f9f 100644 --- a/families/zig/zig/tests/fixtures/zig-app/diagnostics/BUILD.bazel +++ b/zig/tests/fixtures/zig-app/diagnostics/BUILD.bazel @@ -19,8 +19,8 @@ rust_test( "//zig/tests/fixtures/zig-app/cli:report_test.zig", "//zig/tests/fixtures/zig-app/digest:digest.zig", "//zig/tests/fixtures/zig-app/digest:digest_test.zig", - "@rules_dx//zig/tools:zig", - "@rules_dx//zig/tools:zig_lib_marker", + "@rules_dx//zig/private/tools:zig", + "@rules_dx//zig/private/tools:zig_lib_marker", ], env = { "DX_CLEAN": "$(rootpath clean.zig)", @@ -38,8 +38,8 @@ rust_test( "DX_TYPE": "$(rootpath type_error.zig)", "DX_UNFORMATTED": "$(rootpath unformatted.zig)", "DX_UNUSED": "$(rootpath unused_error.zig)", - "DX_ZIG": "$(rootpath @rules_dx//zig/tools:zig)", - "DX_ZIG_STD": "$(rootpath @rules_dx//zig/tools:zig_lib_marker)", + "DX_ZIG": "$(rootpath @rules_dx//zig/private/tools:zig)", + "DX_ZIG_STD": "$(rootpath @rules_dx//zig/private/tools:zig_lib_marker)", }, deps = ["@rules_dx//tools/testing:dx_testing"], ) diff --git a/families/zig/zig/tests/fixtures/zig-app/diagnostics/clean.zig b/zig/tests/fixtures/zig-app/diagnostics/clean.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/diagnostics/clean.zig rename to zig/tests/fixtures/zig-app/diagnostics/clean.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/diagnostics/diagnostics_test.rs b/zig/tests/fixtures/zig-app/diagnostics/diagnostics_test.rs similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/diagnostics/diagnostics_test.rs rename to zig/tests/fixtures/zig-app/diagnostics/diagnostics_test.rs diff --git a/families/zig/zig/tests/fixtures/zig-app/diagnostics/syntax_error.zig b/zig/tests/fixtures/zig-app/diagnostics/syntax_error.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/diagnostics/syntax_error.zig rename to zig/tests/fixtures/zig-app/diagnostics/syntax_error.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/diagnostics/type_error.zig b/zig/tests/fixtures/zig-app/diagnostics/type_error.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/diagnostics/type_error.zig rename to zig/tests/fixtures/zig-app/diagnostics/type_error.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/diagnostics/unformatted.zig b/zig/tests/fixtures/zig-app/diagnostics/unformatted.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/diagnostics/unformatted.zig rename to zig/tests/fixtures/zig-app/diagnostics/unformatted.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/diagnostics/unused_error.zig b/zig/tests/fixtures/zig-app/diagnostics/unused_error.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/diagnostics/unused_error.zig rename to zig/tests/fixtures/zig-app/diagnostics/unused_error.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/digest/BUILD.bazel b/zig/tests/fixtures/zig-app/digest/BUILD.bazel similarity index 93% rename from families/zig/zig/tests/fixtures/zig-app/digest/BUILD.bazel rename to zig/tests/fixtures/zig-app/digest/BUILD.bazel index ea7686f60e..f03e69c03f 100644 --- a/families/zig/zig/tests/fixtures/zig-app/digest/BUILD.bazel +++ b/zig/tests/fixtures/zig-app/digest/BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_dx//cc/rules:defs.bzl", "cc_library") -load("@rules_dx//zig/rules:defs.bzl", "zig_library", "zig_test") +load("@rules_dx//zig:defs.bzl", "zig_library", "zig_test") load("@rules_dx//quality:fixtures.bzl", "real_source_target") package(default_visibility = ["//zig/tests/fixtures/zig-app:__subpackages__"]) diff --git a/families/zig/zig/tests/fixtures/zig-app/digest/digest.c b/zig/tests/fixtures/zig-app/digest/digest.c similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/digest/digest.c rename to zig/tests/fixtures/zig-app/digest/digest.c diff --git a/families/zig/zig/tests/fixtures/zig-app/digest/digest.h b/zig/tests/fixtures/zig-app/digest/digest.h similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/digest/digest.h rename to zig/tests/fixtures/zig-app/digest/digest.h diff --git a/families/zig/zig/tests/fixtures/zig-app/digest/digest.zig b/zig/tests/fixtures/zig-app/digest/digest.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/digest/digest.zig rename to zig/tests/fixtures/zig-app/digest/digest.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/digest/digest_test.zig b/zig/tests/fixtures/zig-app/digest/digest_test.zig similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/digest/digest_test.zig rename to zig/tests/fixtures/zig-app/digest/digest_test.zig diff --git a/families/zig/zig/tests/fixtures/zig-app/xxhash.BUILD.bazel b/zig/tests/fixtures/zig-app/xxhash.BUILD.bazel similarity index 100% rename from families/zig/zig/tests/fixtures/zig-app/xxhash.BUILD.bazel rename to zig/tests/fixtures/zig-app/xxhash.BUILD.bazel From ddf6c11414ff6a51e0d4a9342575785930ca430c Mon Sep 17 00:00:00 2001 From: Martin Kuntz Jacobsen Date: Tue, 10 Nov 2026 03:29:00 +0100 Subject: [PATCH 2/2] zig: xxhash fixture repo is dev_dependency, zig toolchain with fortran and d (part of #10084) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd --- MODULE.bazel | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 41a9124438..1a388184ad 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -836,19 +836,6 @@ single_version_override( version = "0.17.0", ) -zig = use_extension("@rules_zig//zig:extensions.bzl", "zig") -zig.toolchain(zig_version = "0.17.0") - -_zig_http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -_zig_http_archive( - name = "zig_app_xxhash", - build_file = "//zig/tests/fixtures/zig-app:xxhash.BUILD.bazel", - sha256 = "aae608dfe8213dfd05d909a57718ef82f30722c392344583d3f39050c7f29a80", - strip_prefix = "xxHash-0.8.3", - urls = ["https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.3.tar.gz"], -) - # floor: equals tested bazel_dep(name = "rules_swift", version = "4.2.2") single_version_override( @@ -1264,6 +1251,20 @@ use_repo(fortran, "dx_fortran_toolchains", "rules_fortran") register_toolchains("@dx_fortran_toolchains//:all") +zig = use_extension("@rules_zig//zig:extensions.bzl", "zig") +zig.toolchain(zig_version = "0.17.0") + +_zig_http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +_zig_http_archive( + name = "zig_app_xxhash", + build_file = "//zig/tests/fixtures/zig-app:xxhash.BUILD.bazel", + dev_dependency = True, + sha256 = "aae608dfe8213dfd05d909a57718ef82f30722c392344583d3f39050c7f29a80", + strip_prefix = "xxHash-0.8.3", + urls = ["https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.3.tar.gz"], +) + # floor: equals tested bazel_dep(name = "lua", version = "5.4.6.bcr.1")