aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-make.yml
diff options
context:
space:
mode:
Diffstat (limited to '.ci/templates/steps-build-uhd-make.yml')
-rw-r--r--.ci/templates/steps-build-uhd-make.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-uhd-make.yml b/.ci/templates/steps-build-uhd-make.yml
index cc0d491e8..7073447af 100644
--- a/.ci/templates/steps-build-uhd-make.yml
+++ b/.ci/templates/steps-build-uhd-make.yml
@@ -6,6 +6,12 @@ parameters:
- name: uhdEnableTraceLog
type: boolean
default: false
+- name: uhdAllowWarnings
+ type: boolean
+ default: false
+- name: uhdCxxFlags
+ type: string
+ default: ""
steps:
- script: |
@@ -15,6 +21,11 @@ steps:
echo "Enabling UHD Tracing"
export UHD_CI_CMAKE_OPTIONS="-DUHD_LOG_MIN_LEVEL=trace $UHD_CI_CMAKE_OPTIONS"
fi
+ 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 \
$UHD_CI_CMAKE_OPTIONS \
${{ parameters.uhdSrcDir }}/host