diff options
author | Marco Leise <marco.leise@gmx.de> | 2017-05-14 18:00:57 +0200 |
---|---|---|
committer | Marco Leise <marco.leise@gmx.de> | 2017-05-14 18:00:57 +0200 |
commit | 8839afc72fedc3ba62f328e2467f52ea2ea8add6 (patch) | |
tree | abdf96864d2ae75e62fe3c1219d20238200a13b7 /eclass/dmd.eclass | |
parent | Fix for issue #51 (diff) | |
download | dlang-8839afc72fedc3ba62f328e2467f52ea2ea8add6.tar.gz dlang-8839afc72fedc3ba62f328e2467f52ea2ea8add6.tar.bz2 dlang-8839afc72fedc3ba62f328e2467f52ea2ea8add6.zip |
hotfix: dmd 2.072 & 2.073 can't use LTO due to a Makefile bug
Diffstat (limited to 'eclass/dmd.eclass')
-rw-r--r-- | eclass/dmd.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/dmd.eclass b/eclass/dmd.eclass index 184ad54..691f2c7 100644 --- a/eclass/dmd.eclass +++ b/eclass/dmd.eclass @@ -145,6 +145,8 @@ dmd_src_compile() { # 2.068 used HOST_DC instead of HOST_DMD [[ "${SLOT}" == "2.068" ]] && HOST_DMD="HOST_DC" || HOST_DMD="HOST_DMD" + # 2.072 and 2.073 have support for LTO, but would need a Makefile patch + [[ "${SLOT}" != "2.072" && "${SLOT}" != "2.073" ]] && LTO="ENABLE_LTO=1" # Special case for self-hosting (i.e. no compiler USE flag selected). local kernel model @@ -161,7 +163,7 @@ dmd_src_compile() { esac export DMD="../../${kernel}/bin${model}/dmd" fi - emake -C src/dmd -f posix.mak TARGET_CPU=X86 ${HOST_DMD}="${DMD}" RELEASE=1 ENABLE_LTO=1 + emake -C src/dmd -f posix.mak TARGET_CPU=X86 ${HOST_DMD}="${DMD}" RELEASE=1 ${LTO} # Don't pick up /etc/dmd.conf when calling src/dmd/dmd ! if [ ! -f src/dmd/dmd.conf ]; then |