diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-05-25 22:44:37 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-05-25 22:54:44 +0100 |
commit | f011f587ca0289e96dd26acfc5f40a66aa7d6e5f (patch) | |
tree | 62932fd84d5eecbafd7a1e464d6ac870447a0d5c /rules | |
parent | c9977385dca9536f18374242f713b1048a38dec5 (diff) | |
download | haskell-f011f587ca0289e96dd26acfc5f40a66aa7d6e5f.tar.gz |
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@gentoo.org>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/distdir-way-opts.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/distdir-way-opts.mk b/rules/distdir-way-opts.mk index c4d716894c..eb4a5c420c 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) \ |