diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 0000000..d838da9 --- /dev/null +++ b/.bazelignore @@ -0,0 +1 @@ +examples/ diff --git a/MODULE.bazel b/MODULE.bazel index 230a916..01e479e 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -10,7 +10,7 @@ module( name = "rules_swiftnav", - version = "0.9.0", + version = "0.10.0", compatibility_level = 1, ) diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index b0d2be9..d63b8c4 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -145,8 +145,8 @@ "moduleExtensions": { "//cc:extensions.bzl%swift_cc_toolchain_extension": { "general": { - "bzlTransitiveDigest": "zDwq2yBSEJXdECtks4+trENu8MzrMfkm5FDsxbO1KrE=", - "usagesDigest": "/6dsoamEyMs6vTiy7icOYdSA1kgYfntwG63tqnGYYGA=", + "bzlTransitiveDigest": "BWY82rOuYIMqeZ3jAwqCb9P2j/nWnyo63U4JdPsZwBI=", + "usagesDigest": "YQG/gd9UENDVMR8NOS1Ca7KxFp6z0jBQwIKBCkhF9Sw=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -269,6 +269,10 @@ "attributes": { "sha256": "cfa444ecc4fcc858acc045e72403efd54dab734bdad4ddec30aad8826916a617", "build_file_content": "\nfilegroup(\n name = \"x86_64-sysroot\",\n srcs = glob([\"*/**\"]),\n visibility = [\"//visibility:public\"],\n)\n ", + "patch_cmds": [ + "rm -f lib64/ld-linux-x86-64.so.2", + "ln -sf ../lib/x86_64-linux-gnu/ld-2.31.so lib64/ld-linux-x86-64.so.2" + ], "url": "https://github.com/swift-nav/swift-toolchains/releases/download/bullseye-sysroot-v3/debian_bullseye_x86_64_sysroot.tar.xz" } }, @@ -344,7 +348,7 @@ "//cc/toolchains/yocto_generic:yocto_generic_extension.bzl%yocto_generic_extension": { "general": { "bzlTransitiveDigest": "Q4v/HN5Wh/W0JsPpeExQzSqIslfepuWsd75kvW+25FI=", - "usagesDigest": "nSI66VIQzuf2qIL6ZKsJd2f5KY34kHbBT6Wj3PGjtYA=", + "usagesDigest": "9JyFqb8fJB9ni5Z9NEEyRf5v7xZ04bDvWRjM5gnyZdM=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, diff --git a/cc/repositories.bzl b/cc/repositories.bzl index 10b8ed4..47e23ef 100644 --- a/cc/repositories.bzl +++ b/cc/repositories.bzl @@ -136,7 +136,7 @@ def aarch64_sysroot(): maybe( http_archive, name = "aarch64-sysroot", - sha256 = "4e4cbbed33e78602a5f038305514307a5bd9baa6f6330f433fa4dffb3e9e9ad1", + sha256 = "edb3599237a755287a3ca3c94bdd64eb7552b768e927a9d125473d0b846f91f4", build_file_content = """ filegroup( name = "aarch64-sysroot", @@ -144,14 +144,14 @@ filegroup( visibility = ["//visibility:public"], ) """, - url = "https://github.com/swift-nav/swift-toolchains/releases/download/bullseye-sysroot-v3/debian_bullseye_aarch64_sysroot.tar.xz", + url = "https://github.com/swift-nav/swift-toolchains/releases/download/bullseye-sysroot-v4/debian_bullseye_aarch64_sysroot.tar.xz", ) def x86_64_sysroot(): maybe( http_archive, name = "x86_64-sysroot", - sha256 = "cfa444ecc4fcc858acc045e72403efd54dab734bdad4ddec30aad8826916a617", + sha256 = "4235d41632c677d0c71e8e3b40abcf2b67e991e6b66a08cdf9d1e54a54de8869", build_file_content = """ filegroup( name = "x86_64-sysroot", @@ -159,7 +159,7 @@ filegroup( visibility = ["//visibility:public"], ) """, - url = "https://github.com/swift-nav/swift-toolchains/releases/download/bullseye-sysroot-v3/debian_bullseye_x86_64_sysroot.tar.xz", + url = "https://github.com/swift-nav/swift-toolchains/releases/download/bullseye-sysroot-v4/debian_bullseye_x86_64_sysroot.tar.xz", ) def register_swift_cc_toolchains(): diff --git a/examples/small_world/MODULE.bazel.lock b/examples/small_world/MODULE.bazel.lock index 0efe0d4..5d54bed 100644 --- a/examples/small_world/MODULE.bazel.lock +++ b/examples/small_world/MODULE.bazel.lock @@ -780,8 +780,8 @@ }, "@@rules_swiftnav+//cc:extensions.bzl%swift_cc_toolchain_extension": { "general": { - "bzlTransitiveDigest": "zDwq2yBSEJXdECtks4+trENu8MzrMfkm5FDsxbO1KrE=", - "usagesDigest": "f0HeWlPNwuIAtqAe+Vv26z6zmEtpRchgfWRCvQ5pK3c=", + "bzlTransitiveDigest": "12yxB33CfN0W3lUInFcfNacHnoMCa5xr0Kc+SXv/k4o=", + "usagesDigest": "0fzxd3xIO0+3HljyxOjJ8lXOdZyJr9KKZKZDfnE3ScM=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -885,9 +885,9 @@ "aarch64-sysroot": { "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "sha256": "4e4cbbed33e78602a5f038305514307a5bd9baa6f6330f433fa4dffb3e9e9ad1", + "sha256": "edb3599237a755287a3ca3c94bdd64eb7552b768e927a9d125473d0b846f91f4", "build_file_content": "\nfilegroup(\n name = \"aarch64-sysroot\",\n srcs = glob([\"*/**\"]),\n visibility = [\"//visibility:public\"],\n)\n ", - "url": "https://github.com/swift-nav/swift-toolchains/releases/download/bullseye-sysroot-v3/debian_bullseye_aarch64_sysroot.tar.xz" + "url": "https://github.com/swift-nav/swift-toolchains/releases/download/bullseye-sysroot-v4/debian_bullseye_aarch64_sysroot.tar.xz" } }, "llvm_mingw_toolchain": { @@ -902,9 +902,9 @@ "x86_64-sysroot": { "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "sha256": "cfa444ecc4fcc858acc045e72403efd54dab734bdad4ddec30aad8826916a617", + "sha256": "4235d41632c677d0c71e8e3b40abcf2b67e991e6b66a08cdf9d1e54a54de8869", "build_file_content": "\nfilegroup(\n name = \"x86_64-sysroot\",\n srcs = glob([\"*/**\"]),\n visibility = [\"//visibility:public\"],\n)\n ", - "url": "https://github.com/swift-nav/swift-toolchains/releases/download/bullseye-sysroot-v3/debian_bullseye_x86_64_sysroot.tar.xz" + "url": "https://github.com/swift-nav/swift-toolchains/releases/download/bullseye-sysroot-v4/debian_bullseye_x86_64_sysroot.tar.xz" } }, "aarch64-linux-musl": {