diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-07-11 16:23:06 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-07-12 15:25:49 +0200 |
commit | aa14a481ce7645f6fb78ce7548a1f60920599d49 (patch) | |
tree | 62275ffad68bf2200c3fd85976ceb0a0551836a6 /CC/test/EXPRESSIONS | |
parent | 093a0c8fe2eaa9be7d8e539f3e35236c7df0449b (diff) | |
download | rules-cc-aa14a481ce7645f6fb78ce7548a1f60920599d49.tar.gz |
["CC/test", "test]: support target architecture
... provided it is specified on how to obtain a remote-execution
endpoint for the given architecture; in this case, the test binary
will be cross compiled for and run on that architecture. The actual
building (as well as summarizing multiple test runs) happens on the
default execution end point.
Diffstat (limited to 'CC/test/EXPRESSIONS')
-rw-r--r-- | CC/test/EXPRESSIONS | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CC/test/EXPRESSIONS b/CC/test/EXPRESSIONS index 678ab56..4207f8e 100644 --- a/CC/test/EXPRESSIONS +++ b/CC/test/EXPRESSIONS @@ -8,6 +8,8 @@ , "vars": [ "ARCH" , "HOST_ARCH" + , "TARGET_ARCH" + , "ARCH_DISPATCH" , "CC" , "CXX" , "CFLAGS" @@ -46,6 +48,7 @@ , "ldflags-files-deps": ["./", "..", "ldflags-files-deps"] , "binary": ["./", "..", "bin artifact"] , "host transition": ["transitions", "for host"] + , "target properties": ["transitions", "target properties"] , "stage": ["./", "../..", "stage_singleton_field"] } , "expression": @@ -147,6 +150,9 @@ ] } ] + , [ "target properties" + , {"type": "CALL_EXPRESSION", "name": "target properties"} + ] ] , "body": { "type": "if" @@ -171,6 +177,8 @@ , "$1": ["CC test ", {"type": "var", "name": "test-name"}, " failed"] } + , "execution properties": + {"type": "var", "name": "target properties"} } ] , [ "runfiles" @@ -244,6 +252,8 @@ , ")" ] } + , "execution properties": + {"type": "var", "name": "target properties"} } } } |