diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-11-02 12:25:40 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-11-03 17:08:12 +0000 |
commit | d5294af74f26b27912c2e3b8433e42cf13450dd9 (patch) | |
tree | e2f10ba8bb34ec3d1c57b991b9d7c828ba20fa31 | |
parent | 646d8f86fdb0b6efcf51cde3282aad5015b14b28 (diff) |
coin: Add feature to enable warnings as errors
Change-Id: If770f3e416674173316d3ef052c195070e28ede6
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit d39b5f376db85a18b163e31bd25a8c9dc4a5292c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | coin/instructions/prepare_building_env.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
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 |