try adding option /std:c++20 for Windows

This commit is contained in:
Krasimir Angelov
2026-09-09 07:24:54 +02:00
parent d3bb34f81b
commit 0091e10057
+1 -1
View File
@@ -15,7 +15,7 @@ if on_windows:
cpath = '../c/pgf/' cpath = '../c/pgf/'
extra_sources = [cpath+f for f in os.listdir(cpath) if f.endswith('.cxx')] extra_sources = [cpath+f for f in os.listdir(cpath) if f.endswith('.cxx')]
includes+=["../c"] includes+=["../c"]
flags = ['/DCOMPILING_STATIC_PGF=1'] flags = ['/DCOMPILING_STATIC_PGF=1', "/std:c++20"]
else: else:
extra_sources = [] extra_sources = []
flags = ['-std=c99', '-Werror', '-Wno-error=unused-variable', '-Wno-comment'] flags = ['-std=c99', '-Werror', '-Wno-error=unused-variable', '-Wno-comment']