From b49842343371d1b0c99c3abf438a2490e1be372e Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 2 May 2022 16:58:16 +0200 Subject: 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). --- CC/EXPRESSIONS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CC/EXPRESSIONS') 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": -- cgit v1.2.3