Skip to content

Commit a06e649

Browse files
committed
Require GCC 15.3 or newer for import std tests.
1 parent 23b3619 commit a06e649

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

test cases/common/286 importstd/meson.build

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@ cpp = meson.get_compiler('cpp')
66
cpp_id = cpp.get_id()
77
cpp_version = cpp.version()
88

9-
if cpp_id == 'gcc' and cpp_version.version_compare('>=15.1')
10-
if host_machine.system() == 'windows'
11-
istd_supported = cpp_version.version_compare('>=15.3')
12-
else
13-
if cpp_version.version_compare('=15.2.0') or cpp_version.version_compare('>=15.3.0')
14-
istd_supported = true
15-
else
16-
istd_supported = false
17-
endif
18-
endif
9+
if cpp_id == 'gcc' and cpp_version.version_compare('>=15.3')
10+
# Versions between 15.0 and 15.2 are too unreliable to test.
11+
# The same version number of GCC works in some distros
12+
# but fails in others.
13+
istd_supported = true
1914
elif cpp_id == 'msvc' and cpp_version.version_compare('>=19.44.35219')
2015
istd_supported = get_option('backend') == 'ninja'
2116
else

0 commit comments

Comments
 (0)