aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-ninja.yml
diff options
context:
space:
mode:
Diffstat (limited to '.ci/templates/steps-build-uhd-ninja.yml')
-rw-r--r--.ci/templates/steps-build-uhd-ninja.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-uhd-ninja.yml b/.ci/templates/steps-build-uhd-ninja.yml
index f3ee6cfaa..48b0a424d 100644
--- a/.ci/templates/steps-build-uhd-ninja.yml
+++ b/.ci/templates/steps-build-uhd-ninja.yml
@@ -3,11 +3,22 @@ parameters:
type: string
- name: uhdBuildDir
type: string
+- name: uhdAllowWarnings
+ type: boolean
+ default: false
+- name: uhdCxxFlags
+ type: string
+ default: ""
steps:
- script: |
mkdir -p ${{ parameters.uhdBuildDir }}
cd ${{ parameters.uhdBuildDir }}
+ if [[ "${{ parameters.uhdAllowWarnings }}" = "False" ]]; then
+ echo "Warnings not allowed for this build."
+ export CXXFLAGS="-Werror -Wno-error=maybe-uninitialized $CXXFLAGS"
+ fi
+ export CXXFLAGS="${{ parameters.uhdCxxFlags }} $CXXFLAGS"
cmake -G Ninja ${{ parameters.uhdSrcDir }}/host
displayName: cmake ninja UHD
- script: |