Skip to content

Commit

Permalink
Update flags for messages about deprecated Intel compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored and jfowkes committed Jan 15, 2024
1 parent f2f66bc commit 63ae40d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,22 @@ cxx = meson.get_compiler('cpp')
fc = meson.get_compiler('fortran')

# Remove messages about deprecated Intel compilers
if cc.get_id() == 'intel' or cc.get_id() == 'intel-cl'
if cc.get_id() == 'intel'
add_global_arguments('-diag-disable=10441', language : 'c')
add_global_link_arguments('-diag-disable=10441', language : 'c')
endif
if cxx.get_id() == 'intel' or cxx.get_id() == 'intel-cl'
if cc.get_id() == 'intel-cl'
add_global_arguments('/Qdiag-disable=10441', language : 'c')
add_global_link_arguments('/Qdiag-disable=10441', language : 'c')
endif
if cxx.get_id() == 'intel'
add_global_arguments('-diag-disable=10441', language : 'cpp')
add_global_link_arguments('-diag-disable=10441', language : 'cpp')
endif
if cxx.get_id() == 'intel-cl'
add_global_arguments('/Qdiag-disable=10441', language : 'cpp')
add_global_link_arguments('/Qdiag-disable=10441', language : 'cpp')
endif

# Recognise old non-standard double complex intrinsics
if fc.get_id() == 'nagfor'
Expand Down

0 comments on commit 63ae40d

Please sign in to comment.