From 6881cbef83d141c312b1abd1fc16709c2f632cd1 Mon Sep 17 00:00:00 2001 From: helix_xx <630824252@qq.com> Date: Sat, 27 Apr 2024 04:06:32 +0800 Subject: [PATCH] test extra flags --- setup.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 70951e8..8ef8bfa 100644 --- a/setup.py +++ b/setup.py @@ -3,8 +3,8 @@ from setuptools import Extension, setup -CPPSTD = "c++17" -CSTD = "c17" +CPPSTD = "c++2a" +CSTD = "c2x" extra_compile_args = ["-D_GNU_SOURCE"] if platform.system() == "Linux": strip_flags = ["-Wl,--strip-all"] @@ -14,10 +14,7 @@ extra_compile_args += [f"/std:{CPPSTD}", f"/std:{CSTD}"] elif platform.system() == "Darwin": strip_flags = [] - extra_compile_args += [f"-std={CPPSTD}", f"-std={CSTD}"] -else: - strip_flags = [] - extra_compile_args += [f"/std:{CPPSTD}", f"/std:{CSTD}"] + extra_compile_args += [f"-std=c++20"] def find_src():