diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-05-02 16:58:16 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-05-04 11:07:19 +0200 |
commit | b49842343371d1b0c99c3abf438a2490e1be372e (patch) | |
tree | fcd96fbfd28c2c1df1a0d1aa293a51d44c9717d0 | |
parent | 326601fdcad8635625e7a706a5426652a4c1de78 (diff) | |
download | rules-cc-b49842343371d1b0c99c3abf438a2490e1be372e.tar.gz |
rules/CC: for compiler invocation, pass on ENV
... as some compiler need access to the environemnt
in order to find their utility programs (like cc1).
-rw-r--r-- | CC/EXPRESSIONS | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS index 5025339..3c1fa33 100644 --- a/CC/EXPRESSIONS +++ b/CC/EXPRESSIONS @@ -263,6 +263,11 @@ , { "type": "ACTION" , "outs": [{"type": "var", "name": "work out"}] , "inputs": {"type": "var", "name": "inputs"} + , "env": + { "type": "var" + , "name": "ENV" + , "default": {"type": "empty_map"} + } , "cmd": { "type": "++" , "$1": @@ -422,6 +427,8 @@ { "type": "ACTION" , "outs": [{"type": "var", "name": "libname"}] , "inputs": {"type": "var", "name": "objects"} + , "env": + {"type": "var", "name": "ENV", "default": {"type": "empty_map"}} , "cmd": { "type": "++" , "$1": |