Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
test extra flags
Browse files Browse the repository at this point in the history
  • Loading branch information
helix-xx committed Apr 26, 2024
1 parent 93763d2 commit 6881cbe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand 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():
Expand Down

0 comments on commit 6881cbe

Please sign in to comment.