From d00e6a647067894a246e5682f28cd0222335c516 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Tue, 10 Oct 2023 11:19:40 -0500 Subject: [PATCH] Set -no-avx512f flag for all binary deb jobs --- ros_buildfarm/binarydeb_job.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ros_buildfarm/binarydeb_job.py b/ros_buildfarm/binarydeb_job.py index 46eceddaa..dc4bf24bb 100644 --- a/ros_buildfarm/binarydeb_job.py +++ b/ros_buildfarm/binarydeb_job.py @@ -133,6 +133,16 @@ def build_binarydeb(rosdistro_name, package_name, sourcepkg_dir, skip_tests=Fals # This setting should filter out Build-Depends marked with env['DEB_BUILD_PROFILES'] = (env.get('DEB_BUILD_PROFILES', '') + ' nocheck').lstrip() + if env.get('DEB_CFLAGS_MAINT_APPEND'): + env['DEB_CFLAGS_MAINT_APPEND'] += ' ' + else: + env['DEB_CFLAGS_MAINT_APPEND'] = '-mno-avx512f' + + if env.get('DEB_CXXFLAGS_MAINT_APPEND'): + env['DEB_CXXFLAGS_MAINT_APPEND'] += ' ' + else: + env['DEB_CXXFLAGS_MAINT_APPEND'] = '-mno-avx512f' + source, version = dpkg_parsechangelog( source_dir, ['Source', 'Version']) # output package version for job description