Skip to content

Commit

Permalink
set compile optimization level to 3
Browse files Browse the repository at this point in the history
Without this change, the default compile optimization level when
building a binary wheel is set to 2

We can change this at build time like this:
python -m build -Csetup-args="-Doptimization=2" .
  • Loading branch information
ogiorgis committed Dec 22, 2023
1 parent eb599a1 commit 80d9512
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ exactlin = "fluidsim.solvers.sw1l.exactlin.solver"
modified = "fluidsim.solvers.sw1l.modified.solver"
onlywaves = "fluidsim.solvers.sw1l.onlywaves.solver"

[tool.meson-python.args]
setup = ['-Doptimization=3']

[tool.coverage.run]
source = [
"./fluidsim",
Expand Down

0 comments on commit 80d9512

Please sign in to comment.