From 28aac9fc3b6129e4c0cac9f5fc2ba4eab97f77b8 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 3 May 2019 11:31:37 -0700 Subject: test cases: Add ICL branches in addition to ICC branches --- test cases/common/2 cpp/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test cases/common/2 cpp') 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') -- cgit v1.2.3