Skip to content

Commit

Permalink
Set -no-avx512f flag for all binary deb jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay committed Oct 10, 2023
1 parent 7237125 commit d00e6a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ros_buildfarm/binarydeb_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <!nocheck>
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
Expand Down

0 comments on commit d00e6a6

Please sign in to comment.