Skip to content

Commit

Permalink
debug from sys.argv
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusCausemann authored Jan 3, 2025
1 parent e4896c3 commit 330ac01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def build_extension(self, ext):
'-DPYTHON_EXECUTABLE=' + sys.executable,
]

cfg = 'Debug' if self.debug else 'Release'
cfg = 'Debug' if "debug" in sys.argv else 'Release'
build_args = ['--config', cfg]
cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg]

Expand Down

0 comments on commit 330ac01

Please sign in to comment.