From d39b5f376db85a18b163e31bd25a8c9dc4a5292c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 2 Nov 2021 12:25:40 +0100 Subject: coin: Add feature to enable warnings as errors Pick-to: 6.2 5.15 Change-Id: If770f3e416674173316d3ef052c195070e28ede6 Reviewed-by: Alexandru Croitor --- coin/instructions/prepare_building_env.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/coin/instructions/prepare_building_env.yaml b/coin/instructions/prepare_building_env.yaml index 0cbc9c9cae..0e69bdf3e6 100644 --- a/coin/instructions/prepare_building_env.yaml +++ b/coin/instructions/prepare_building_env.yaml @@ -340,3 +340,13 @@ instructions: property: host.os equals_value: Linux + # Enable warnings are errors + - type: Group + instructions: + - type: AppendToEnvironmentVariable + variableName: CONFIGURE_ARGS + variableValue: " -DWARNINGS_ARE_ERRORS=ON" + enable_if: + condition: property + property: features + contains_value: WarningsAreErrors -- cgit v1.2.3