diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-27 14:45:39 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-27 14:45:57 +0200 |
commit | e1f3e3d1b8fa4be1c2760ee684e27f75fbdd4cd1 (patch) | |
tree | 94eb93b8f07ff2148a479f8919bdaf7339762187 | |
parent | 3f3eb2347593aee2e09e9821dfe49daa33b63b35 (diff) | |
download | rules-rust-e1f3e3d1b8fa4be1c2760ee684e27f75fbdd4cd1.tar.gz |
default target: honor TOOLCHAIN_CONFIG[RUST][PATH]
... instead of hard-coding a vaule. We still keep this value as
default. While there, drop unsed value in arguments_config.
-rw-r--r-- | rules/rust/TARGETS | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/rules/rust/TARGETS b/rules/rust/TARGETS index 9a80409..c3e0b90 100644 --- a/rules/rust/TARGETS +++ b/rules/rust/TARGETS @@ -15,8 +15,22 @@ , "defaults": { "type": "defaults" , "arguments_config": - ["DEBUG", "ARCH", "TARGET_ARCH", "HOST_ARCH", "TOOLCHAIN_CONFIG", "ENV"] - , "PATH": ["/usr/bin", "/bin"] + ["DEBUG", "ARCH", "TARGET_ARCH", "HOST_ARCH", "TOOLCHAIN_CONFIG"] + , "PATH": + { "type": "lookup" + , "key": "PATH" + , "map": + { "type": "lookup" + , "key": "RUST" + , "map": + { "type": "var" + , "name": "TOOLCHAIN_CONFIG" + , "default": {"type": "empty_map"} + } + , "default": {"type": "empty_map"} + } + , "default": ["/usr/bin", "/bin"] + } , "RUSTC": [ { "type": "lookup" , "key": "RUSTC" |