summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-11-05 16:39:30 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-11-06 14:37:16 +0100
commit85560dee6eb114a08d4d1ce34e690002757475cd (patch)
tree628a09cee8c3cb44b014cd859a6a9b7549dba9e9
parenta20974ba714485fe2d6fdb50340d4315d09cebbe (diff)
downloadjustbuild-85560dee6eb114a08d4d1ce34e690002757475cd.tar.gz
Use "cwd" property of actions
... instead of composing a shell command doing a cd first.
-rw-r--r--rules/CC/EXPRESSIONS12
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"}
}
]