mirror of https://gitlab.freedesktop.org/mesa/mesa
meson: Use more portable compiler option -std.
GCC and Clang support --std and -std options but Intel C++
Compiler only supports -std.
icpc: command line warning #10159: invalid argument for option '--std'
Fixes: 8a05d6ffc6
("driconf: Make the driver's declarations be structs instead of XML.")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7020>
This commit is contained in:
parent
3a1f22c38b
commit
4b513136b1
|
@ -229,7 +229,7 @@ files_xxd = files('xxd.py')
|
|||
if with_tests
|
||||
# DRI_CONF macros use designated initializers (required for union
|
||||
# initializaiton), so we need c++2a since gtest forces us to use c++
|
||||
if host_machine.system() != 'windows' and cpp.has_argument('--std=c++2a')
|
||||
if host_machine.system() != 'windows' and cpp.has_argument('-std=c++2a')
|
||||
test('xmlconfig',
|
||||
executable('xmlconfig_test',
|
||||
files('tests/xmlconfig.cpp'),
|
||||
|
|
Loading…
Reference in New Issue