diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-03-31 14:51:02 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-04-18 12:44:10 +0200 |
commit | 6eefec871e09b3d74b4861beec010fdaf9e47b85 (patch) | |
tree | ad711aaa4d04fbb691687de4ecca03e4b553663f /CC/test | |
parent | 67afc2947e7e73e68955fd0638a24eb39c8c724a (diff) | |
download | rules-cc-6eefec871e09b3d74b4861beec010fdaf9e47b85.tar.gz |
rules: Support reading flags from files for existing rules
Backport of commit 4a8579a2a4ef252644df0c29893e70ad8438ae82
from the rules-cc repository.
Diffstat (limited to 'CC/test')
-rw-r--r-- | CC/test/RULES | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CC/test/RULES b/CC/test/RULES index 3821339..6903580 100644 --- a/CC/test/RULES +++ b/CC/test/RULES @@ -101,6 +101,8 @@ , "compile-args-deps": ["./", "..", "compile-args-deps"] , "link-deps": ["./", "..", "link-deps"] , "link-args-deps": ["./", "..", "link-args-deps"] + , "cflags-files-deps": ["./", "..", "cflags-files-deps"] + , "ldflags-files-deps": ["./", "..", "ldflags-files-deps"] , "binary": ["./", "..", "bin artifact"] , "host transition": ["transitions", "for host"] } @@ -149,6 +151,9 @@ , ["defaults-transition", {"type": "var", "name": "host-trans"}] , ["deps-transition", {"type": "var", "name": "host-trans"}] , ["deps-fieldnames", ["private-deps"]] + , [ "cflags-files" + , {"type": "CALL_EXPRESSION", "name": "cflags-files-deps"} + ] , ["compile-deps", {"type": "CALL_EXPRESSION", "name": "compile-deps"}] , [ "compile-args" , { "type": "++" @@ -164,6 +169,9 @@ ] } ] + , [ "ldflags-files" + , {"type": "CALL_EXPRESSION", "name": "ldflags-files-deps"} + ] , ["link-deps", {"type": "CALL_EXPRESSION", "name": "link-deps"}] , [ "link-args" , { "type": "++" |