From 8839afc72fedc3ba62f328e2467f52ea2ea8add6 Mon Sep 17 00:00:00 2001 From: Marco Leise Date: Sun, 14 May 2017 18:00:57 +0200 Subject: hotfix: dmd 2.072 & 2.073 can't use LTO due to a Makefile bug --- eclass/dmd.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'eclass/dmd.eclass') 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 -- cgit v1.2.3-65-gdbad