[commit: ghc] master: rules: add per-library EXTRA_HC_OPTS (f011f58)
git at git.haskell.org
git at git.haskell.org
Thu May 25 21:55:24 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f011f587ca0289e96dd26acfc5f40a66aa7d6e5f/ghc
>---------------------------------------------------------------
commit f011f587ca0289e96dd26acfc5f40a66aa7d6e5f
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date: Thu May 25 22:44:37 2017 +0100
rules: add per-library EXTRA_HC_OPTS
Sometimes it's handy to change a compiler flag
for a library in stage{0,1,2}.
Usage example:
libraries/binary_EXTRA_HC_OPTS += -O1
libraries/containers_EXTRA_HC_OPTS += -O1
libraries/bytestring_EXTRA_HC_OPTS += -O1
Here override default -O2 defined in .cabal files
for these libraries to speed build up.
Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
>---------------------------------------------------------------
f011f587ca0289e96dd26acfc5f40a66aa7d6e5f
rules/distdir-way-opts.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/rules/distdir-way-opts.mk b/rules/distdir-way-opts.mk
index c4d7168..eb4a5c4 100644
--- a/rules/distdir-way-opts.mk
+++ b/rules/distdir-way-opts.mk
@@ -145,6 +145,7 @@ $1_$2_$3_MOST_HC_OPTS = \
$$($1_$2_HC_OPTS) \
$$(CONF_HC_OPTS_STAGE$4) \
$$($1_$2_MORE_HC_OPTS) \
+ $$($1_EXTRA_HC_OPTS) \
$$($1_$2_EXTRA_HC_OPTS) \
$$($1_$2_$3_HC_OPTS) \
$$($$(basename $$(subst ./,,$$<))_HC_OPTS) \
More information about the ghc-commits
mailing list