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 | 85560dee6eb114a08d4d1ce34e690002757475cd (patch) | |
tree | 628a09cee8c3cb44b014cd859a6a9b7549dba9e9 /rules | |
parent | a20974ba714485fe2d6fdb50340d4315d09cebbe (diff) | |
download | justbuild-85560dee6eb114a08d4d1ce34e690002757475cd.tar.gz |
Use "cwd" property of actions
... instead of composing a shell command doing a cd first.
Diffstat (limited to 'rules')
-rw-r--r-- | rules/CC/EXPRESSIONS | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/rules/CC/EXPRESSIONS b/rules/CC/EXPRESSIONS index 0330e719..ee006dad 100644 --- a/rules/CC/EXPRESSIONS +++ b/rules/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"} } ] |