diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-06-01 12:00:07 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-06-01 17:33:03 +0200 |
commit | 7135061273b03ec076c46b440ce4f6415e4fea70 (patch) | |
tree | d9e4a3b52d6fe056af48dc67271bdb953f1d14e2 | |
parent | 4d6425c936d51ce31f3e45b70b401de6e7e20e4e (diff) | |
download | rules-cc-7135061273b03ec076c46b440ce4f6415e4fea70.tar.gz |
CC/foreign rules: support timeout scaling
... and set a sensible default.
-rw-r--r-- | CC/foreign/cmake/EXPRESSIONS | 2 | ||||
-rw-r--r-- | CC/foreign/cmake/RULES | 10 | ||||
-rw-r--r-- | CC/foreign/make/EXPRESSIONS | 3 | ||||
-rw-r--r-- | CC/foreign/make/RULES | 10 |
4 files changed, 25 insertions, 0 deletions
diff --git a/CC/foreign/cmake/EXPRESSIONS b/CC/foreign/cmake/EXPRESSIONS index 88dd8a1..425c7a2 100644 --- a/CC/foreign/cmake/EXPRESSIONS +++ b/CC/foreign/cmake/EXPRESSIONS @@ -246,6 +246,8 @@ } , "out_dirs": ["install"] , "env": {"type": "var", "name": "ENV"} + , "timeout scaling": + {"type": "var", "name": "TIMEOUT_SCALE", "default": 10.0} } } } diff --git a/CC/foreign/cmake/RULES b/CC/foreign/cmake/RULES index 4622357..e4d16e0 100644 --- a/CC/foreign/cmake/RULES +++ b/CC/foreign/cmake/RULES @@ -23,6 +23,7 @@ , "ENV" , "AR" , "BUILD_POSITION_INDEPENDENT" + , "TIMEOUT_SCALE" ] , "implicit": {"defaults": [["CC", "defaults"]]} , "field_doc": @@ -123,6 +124,10 @@ , "If null, the respective value from [\"CC\", \"defaults\"] will be taken." ] , "BUILD_POSITION_INDEPENDENT": ["Build position independent code."] + , "TIMEOUT_SCALE": + [ "The scaling of the timeout for the invocation of the foreign build." + , "Defaults to 10." + ] } , "imports": { "stage_field": ["", "stage_singleton_field"] @@ -255,6 +260,7 @@ , "ENV" , "AR" , "BUILD_POSITION_INDEPENDENT" + , "TIMEOUT_SCALE" ] , "implicit": { "defaults": [["CC", "defaults"]] @@ -400,6 +406,10 @@ , "If null, the respective value from [\"CC\", \"defaults\"] will be taken." ] , "BUILD_POSITION_INDEPENDENT": ["Build position independent code."] + , "TIMEOUT_SCALE": + [ "The scaling of the timeout for the invocation of the foreign build." + , "Defaults to 10." + ] } , "imports": { "stage_field": ["", "stage_singleton_field"] diff --git a/CC/foreign/make/EXPRESSIONS b/CC/foreign/make/EXPRESSIONS index 0f20da5..7d733a6 100644 --- a/CC/foreign/make/EXPRESSIONS +++ b/CC/foreign/make/EXPRESSIONS @@ -30,6 +30,7 @@ , "AR" , "PREFIX" , "BUILD_POSITION_INDEPENDENT" + , "TIMEOUT_SCALE" ] , "imports": { "artifacts": ["", "field_artifacts"] @@ -354,6 +355,8 @@ } , "out_dirs": ["install"] , "env": {"type": "var", "name": "ENV"} + , "timeout scaling": + {"type": "var", "name": "TIMEOUT_SCALE", "default": 10.0} } } } diff --git a/CC/foreign/make/RULES b/CC/foreign/make/RULES index 8278e3f..992ec2a 100644 --- a/CC/foreign/make/RULES +++ b/CC/foreign/make/RULES @@ -35,6 +35,7 @@ , "AR" , "PREFIX" , "BUILD_POSITION_INDEPENDENT" + , "TIMEOUT_SCALE" ] , "implicit": {"defaults": [["CC", "defaults"]]} , "field_doc": @@ -164,6 +165,10 @@ , "is ignored if the field \"prefix\" is set." ] , "BUILD_POSITION_INDEPENDENT": ["Build position independent code."] + , "TIMEOUT_SCALE": + [ "The scaling of the timeout for the invocation of the foreign build." + , "Defaults to 10." + ] } , "imports": { "stage_field": ["", "stage_singleton_field"] @@ -317,6 +322,7 @@ , "AR" , "PREFIX" , "BUILD_POSITION_INDEPENDENT" + , "TIMEOUT_SCALE" ] , "implicit": { "defaults": [["CC", "defaults"]] @@ -490,6 +496,10 @@ , "is ignored if the field \"prefix\" is set." ] , "BUILD_POSITION_INDEPENDENT": ["Build position independent code."] + , "TIMEOUT_SCALE": + [ "The scaling of the timeout for the invocation of the foreign build." + , "Defaults to 10." + ] } , "imports": { "stage_field": ["", "stage_singleton_field"] |