test cases: Add ICL branches in addition to ICC branches

pull/5331/head
Dylan Baker 6 years ago
parent c2ee82cc41
commit 28aac9fc3b
  1. 5
      test cases/common/1 trivial/meson.build
  2. 5
      test cases/common/2 cpp/meson.build

@ -6,9 +6,12 @@ project('trivial test',
#this is a comment
sources = 'trivial.c'
if meson.get_compiler('c').get_id() == 'intel'
cc = meson.get_compiler('c')
if cc.get_id() == 'intel'
# Error out if the -std=xxx option is incorrect
add_project_arguments('-diag-error', '10159', language : 'c')
elif cc.get_id() == 'intel-cl'
add_project_arguments('/Qdiag-error:10159', language : 'c')
endif
if meson.is_cross_build()

@ -1,8 +1,11 @@
project('c++ test', 'cpp')
if meson.get_compiler('cpp').get_id() == 'intel'
cpp = meson.get_compiler('cpp')
if cpp.get_id() == 'intel'
# Error out if the -std=xxx option is incorrect
add_project_arguments('-diag-error', '10159', language : 'cpp')
elif cpp.get_id() == 'intel-cl'
add_project_arguments('/Qdiag-error:10159', language : 'cpp')
endif
exe = executable('trivialprog', 'trivial.cc', extra_files : 'something.txt')

Loading…
Cancel
Save