diff options
Diffstat (limited to 'test cases/common/2 cpp')
| -rw-r--r-- | test cases/common/2 cpp/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test cases/common/2 cpp/meson.build b/test cases/common/2 cpp/meson.build index 639838212..27c4321ab 100644 --- a/test cases/common/2 cpp/meson.build +++ b/test cases/common/2 cpp/meson.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') |
