Commit 63a65174 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] Optim with O2

parent ef13af01
Pipeline #5663 passed with stages
in 107 minutes and 15 seconds
......@@ -2,7 +2,7 @@
echo "GarganText, build, install, test and documentation"
nix-shell --run "cabal update \\
&& cabal v2-build \\
&& cabal v2-build --ghc-options=-O2 \\
&& cabal --overwrite-policy=always install \\
&& cabal v2-test --test-show-details=streaming \\
&& cabal haddock"
......@@ -64,7 +64,7 @@ common defaults
build-depends:
base >=4.7 && <5
-- optimizations
optimization: 2
common optimized
ghc-options:
-O2
......@@ -812,6 +812,7 @@ executable gargantext-server
, text ^>= 1.2.4.1
, unordered-containers ^>= 0.2.16.0
, vector ^>= 0.7.3
optimization: 2
  • @anoe Are you sure this is the correct place where to put this option? From the linked issue it seems to say you have to place this in the cabal.project?

  • The thing is cabal.project targets the whole package. And gargantext.cabal points to the specific binary to be optimized.

    But the hierarchy and the way the options are enabled are not clear to me.

    For instance, if I add the option to the cabal.project, the optimization is not enabled...

    Besides, still I got "Build profile: -w ghc-9.4.7 -O1". So it is really confusing.

    So I am using the --ghc-options=02 hoping it "works" and doing the expected optimization.

    Edited by delanoe
Please register or sign in to reply
executable gargantext-upgrade
import:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment