diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-03-20 15:12:14 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-03-20 15:12:14 +0100 |
commit | 54f44d7b3852d1bf5c83d4e950562c47276c4a20 (patch) | |
tree | 84ffdff5eb49cf7433dbff9a1c4ac57ae34d4e9e /rules | |
parent | 9fef609241cb5a9051e5348b559a7fe98646d361 (diff) | |
download | justbuild-54f44d7b3852d1bf5c83d4e950562c47276c4a20.tar.gz |
rules CC lint information: Fix missing inherited variables
...and unset TOOLCHAIN and TOOLCHAIN_DIR.
Diffstat (limited to 'rules')
-rw-r--r-- | rules/CC/EXPRESSIONS | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/rules/CC/EXPRESSIONS b/rules/CC/EXPRESSIONS index ee006dad..26a61ee5 100644 --- a/rules/CC/EXPRESSIONS +++ b/rules/CC/EXPRESSIONS @@ -813,7 +813,14 @@ } , "lint information": { "vars": - [ "srcs" + [ "CC" + , "CXX" + , "CFLAGS" + , "CXXFLAGS" + , "ADD_CFLAGS" + , "ADD_CXXFLAGS" + , "pure C" + , "srcs" , "hdrs" , "private-hdrs" , "compile-deps" @@ -836,7 +843,15 @@ , "expression": { "type": "let*" , "bindings": - [ [ "NON_SYSTEM_TOOLS" + [ ["TOOLCHAIN_DIR", "toolchain"] + , ["TOOLCHAIN", {"type": "CALL_EXPRESSION", "name": "default-TOOLCHAIN"}] + , [ "TOOLCHAIN" + , { "type": "to_subdir" + , "subdir": {"type": "var", "name": "TOOLCHAIN_DIR"} + , "$1": {"type": "var", "name": "TOOLCHAIN"} + } + ] + , [ "NON_SYSTEM_TOOLS" , {"type": "CALL_EXPRESSION", "name": "default-NON_SYSTEM_TOOLS"} ] , ["COMPILER", {"type": "CALL_EXPRESSION", "name": "compiler"}] |