mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## What changed - Upgrade `rules_rs` from `0.0.58` to `0.0.96` and LLVM from `0.7.9` to `0.8.11`, updating extension paths, platform constraints, and compatibility patches for the current APIs. - Add native `windows-gnullvm` execution support for the argument-comment lint toolchain while retaining MSVC execution for existing cross-target builds. - Build `aws-lc-sys` through the Bazel Central Registry `aws-lc` module and `rules_rs` integration, removing the replaced crate-specific patches. GitOrigin-RevId: 9829bcdb6ac74e846b713568aac38ea2fa3c42a2
20 lines
871 B
Diff
20 lines
871 B
Diff
diff --git a/cargo/private/cargo_build_script.bzl b/cargo/private/cargo_build_script.bzl
|
|
--- a/cargo/private/cargo_build_script.bzl
|
|
+++ b/cargo/private/cargo_build_script.bzl
|
|
@@ -396,3 +396,8 @@ def _cargo_build_script_impl(ctx):
|
|
+ script_tools = []
|
|
+ for target in ctx.attr.tools:
|
|
+ script_tools.append(target[DefaultInfo].files)
|
|
+ script_tools.append(target[DefaultInfo].default_runfiles.files)
|
|
+
|
|
workspace_name = ctx.label.workspace_name
|
|
if not workspace_name:
|
|
workspace_name = ctx.workspace_name
|
|
@@ -581,5 +586,5 @@ def _cargo_build_script_impl(ctx):
|
|
direct = [
|
|
ctx.executable._cargo_build_script_runner,
|
|
] + ([toolchain.target_json] if toolchain.target_json else []),
|
|
- transitive = script_data + toolchain_tools,
|
|
+ transitive = script_data + script_tools + toolchain_tools,
|
|
)
|