summaryrefslogtreecommitdiff
path: root/CC
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-08-07 15:14:46 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-08-16 15:30:32 +0200
commit2c5e3a6756fc871bbdde8a34d38cda297519b0f9 (patch)
tree18a8acb30e9249fdb02405ca54afce3a53c1e92e /CC
parent49a1fc766de1b78427a50f37dbf5650237293067 (diff)
downloadrules-cc-2c5e3a6756fc871bbdde8a34d38cda297519b0f9.tar.gz
rules: Support BUILD_ARCH for CC defaults
Diffstat (limited to 'CC')
-rw-r--r--CC/RULES7
1 files changed, 5 insertions, 2 deletions
diff --git a/CC/RULES b/CC/RULES
index 33b8520..c30aaee 100644
--- a/CC/RULES
+++ b/CC/RULES
@@ -26,7 +26,10 @@
[ "Optional toolchain directory. A collection of artifacts that provide"
, "the tools CC, CXX, and AR (if needed). Note that only artifacts of"
, "the specified targets are considered (no runfiles etc.). Specifying"
- , "this field extends artifacts from \"base\"."
+ , "this field extends artifacts from \"base\". If the toolchain"
+ , "supports cross-compilation, it should perform a dispatch on the"
+ , "configuration variable \"BUILD_ARCH\" to determine for which"
+ , "architecture to generate code for."
]
, "deps":
[ "Optional CC libraries any CC library and CC binary implicitly depend"
@@ -69,7 +72,7 @@
, "with \":\". Specifying this field extends values from \"base\"."
]
}
- , "config_vars": ["ARCH", "HOST_ARCH"]
+ , "config_vars": ["ARCH", "HOST_ARCH", "TARGET_ARCH"]
, "imports":
{ "base-provides": "defaults-base-provides"
, "base-provides-list": "defaults-base-provides-list"