From 0091e1005710443fd054b7b3fb8b52bc76b160b5 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Wed, 9 Sep 2026 07:24:54 +0200 Subject: [PATCH] try adding option /std:c++20 for Windows --- src/runtime/python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/python/setup.py b/src/runtime/python/setup.py index 36bbd099c..01462852f 100644 --- a/src/runtime/python/setup.py +++ b/src/runtime/python/setup.py @@ -15,7 +15,7 @@ if on_windows: cpath = '../c/pgf/' extra_sources = [cpath+f for f in os.listdir(cpath) if f.endswith('.cxx')] includes+=["../c"] - flags = ['/DCOMPILING_STATIC_PGF=1'] + flags = ['/DCOMPILING_STATIC_PGF=1', "/std:c++20"] else: extra_sources = [] flags = ['-std=c99', '-Werror', '-Wno-error=unused-variable', '-Wno-comment']