Fix remote compilation of typenum rust package. (#32726)

This commit is contained in:
Aleksei Khoroshilov
2025-12-09 15:25:57 +00:00
committed by GitHub
parent 02b8e0c984
commit ea144920bd
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -382,7 +382,7 @@ if (epoch == "2") {
[crate.typenum]
extra_build_script_src_roots = [ "../build" ]
build_script_outputs = [ "consts.rs", "op.rs" ]
extra_kv = { rustenv = [ "TYPENUM_BUILD_CONSTS=\" + rebase_path(target_gen_dir, get_path_info(crate_root, \"dir\")) + \"/lib/consts.rs", "TYPENUM_BUILD_OP=\" + rebase_path(target_gen_dir, get_path_info(crate_root, \"dir\")) + \"/lib/op.rs" ] }
extra_kv = { rustenv = [ "TYPENUM_BUILD_CONSTS=\" + rebase_path(target_gen_dir, root_build_dir) + \"/lib/consts.rs", "TYPENUM_BUILD_OP=\" + rebase_path(target_gen_dir, root_build_dir) + \"/lib/op.rs" ] }
[crate.uint]
license_files = ['../../../../../common/licenses/Apache-2.0']
+2 -4
View File
@@ -49,11 +49,9 @@ cargo_crate("lib") {
"op.rs",
]
rustenv = [
"TYPENUM_BUILD_CONSTS=" +
rebase_path(target_gen_dir, get_path_info(crate_root, "dir")) +
"TYPENUM_BUILD_CONSTS=" + rebase_path(target_gen_dir, root_build_dir) +
"/lib/consts.rs",
"TYPENUM_BUILD_OP=" +
rebase_path(target_gen_dir, get_path_info(crate_root, "dir")) +
"TYPENUM_BUILD_OP=" + rebase_path(target_gen_dir, root_build_dir) +
"/lib/op.rs",
]
rustflags = []