Skip to content

Commit

Permalink
Compile with -g instead of -Og to reduce coverage measuring time
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Feb 20, 2024
1 parent 484fbcd commit 4d49f27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage ~=7.0
coverage ~=6.0 ; python_version < '3.7'
coverage ~=7.0 ; python_version >= '3.7'
cython ~=3.0
wheel
auditwheel
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def build_extension(self, ext):
# update compile flags if compiling in debug mode
if self.debug:
if self.compiler.compiler_type in {"unix", "cygwin", "mingw32"}:
ext.extra_compile_args.append("-Og")
ext.extra_compile_args.append("-g")
ext.extra_compile_args.append("--coverage")
ext.extra_link_args.append("--coverage")
elif self.compiler.compiler_type == "msvc":
Expand Down

0 comments on commit 4d49f27

Please sign in to comment.