From 7135061273b03ec076c46b440ce4f6415e4fea70 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 1 Jun 2023 12:00:07 +0200 Subject: CC/foreign rules: support timeout scaling ... and set a sensible default. --- CC/foreign/cmake/EXPRESSIONS | 2 ++ CC/foreign/cmake/RULES | 10 ++++++++++ 2 files changed, 12 insertions(+) (limited to 'CC/foreign/cmake') 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"] -- cgit v1.2.3