Skip to content

Commit

Permalink
improve setup
Browse files Browse the repository at this point in the history
  • Loading branch information
AmintorDusko committed Aug 25, 2022
1 parent 3586518 commit 3c10c05
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,16 @@ def build_extension(self, ext: CMakeExtension):
f"-DCMAKE_MAKE_PROGRAM={ninja_path}",
]

if debug:
configure_args += ["-DCMAKE_BUILD_TYPE=Debug"]
configure_args += self.cmake_defines

build_args = []

if not debug:
if debug:
configure_args += ["-DCMAKE_BUILD_TYPE=Debug"]
build_args += ["--config", "Debug"]
else:
build_args += ["--config", "RelWithDebInfo"]

configure_args += self.cmake_defines

# Add more platform dependent options
if platform.system() == "Darwin":
#To support ARM64
Expand Down

0 comments on commit 3c10c05

Please sign in to comment.