diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-05 16:39:30 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-06 14:37:16 +0100 |
commit | 1e099fbbb5648177ceded11a7a56e6ca9e9103ac (patch) | |
tree | 76866cabbf65dd5c060a92bd0ded7be759172fb5 | |
parent | ee8a8d511fb5c8d0cbad8a5979759ce853e8d767 (diff) | |
download | rules-cc-1e099fbbb5648177ceded11a7a56e6ca9e9103ac.tar.gz |
Use "cwd" property of actions
... instead of composing a shell command doing a cd first.
-rw-r--r-- | CC/EXPRESSIONS | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS index 0330e71..ee006da 100644 --- a/CC/EXPRESSIONS +++ b/CC/EXPRESSIONS @@ -1757,16 +1757,8 @@ } ] } - , "cmd": - [ "sh" - , "-c" - , { "type": "join" - , "$1": - [ "cd work && " - , {"type": "join_cmd", "$1": {"type": "var", "name": "cmd"}} - ] - } - ] + , "cmd": {"type": "var", "name": "cmd"} + , "cwd": "work" , "env": {"type": "var", "name": "ENV"} } ] |