diff options
author | Andrei Horodniceanu <a.horodniceanu@proton.me> | 2024-04-20 22:34:42 +0300 |
---|---|---|
committer | Andrei Horodniceanu <a.horodniceanu@proton.me> | 2024-04-20 23:25:58 +0300 |
commit | 1af3dddeab4ad92d190f0d9df601b706f2485cb8 (patch) | |
tree | 4bb3ec08b8ed6b7ae2d6d82a7aef41a514a82be7 /eclass | |
parent | dmd-r1.eclass: Fix paths in pkg_postinst elog messages (diff) | |
download | dlang-1af3dddeab4ad92d190f0d9df601b706f2485cb8.tar.gz dlang-1af3dddeab4ad92d190f0d9df601b706f2485cb8.tar.bz2 dlang-1af3dddeab4ad92d190f0d9df601b706f2485cb8.zip |
dev-lang/dmd: add 2.108.0
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/dlang-compilers-r1.eclass | 1 | ||||
-rw-r--r-- | eclass/dmd-r1.eclass | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/eclass/dlang-compilers-r1.eclass b/eclass/dlang-compilers-r1.eclass index 933b05a..5cd8836 100644 --- a/eclass/dlang-compilers-r1.eclass +++ b/eclass/dlang-compilers-r1.eclass @@ -44,6 +44,7 @@ readonly _DLANG_DMD_FRONTENDS=( "2.105 2.105 ~amd64 ~x86" "2.106 2.106 ~amd64 ~x86" "2.107 2.107 ~amd64 ~x86" + "2.108 2.108 ~amd64 ~x86" ) # @ECLASS_VARIABLE: _DLANG_GDC_FRONTENDS diff --git a/eclass/dmd-r1.eclass b/eclass/dmd-r1.eclass index 90459c2..19a6224 100644 --- a/eclass/dmd-r1.eclass +++ b/eclass/dmd-r1.eclass @@ -196,6 +196,9 @@ dmd-r1_src_compile() { CUSTOM_DRUNTIME=1 # Like druntime, specifying flags removes the makefile added ones. + # + # Since 2.108.0 -DHAVE_UNISTD_H is handled by CPPFLAGS => we + # don't need to specify it here. CFLAGS="${CFLAGS} -fPIC -std=c11 -DHAVE_UNISTD_H" # -m32/64 is added in $CC. # Overkill but it does work. Remember that we have to @@ -205,6 +208,9 @@ dmd-r1_src_compile() { # By default builds both static+dynamic libraries. $(usex static-libs 'lib dll' dll) ) + # Prefer compiling C files with CC, not with dmd. (USE_IMPORTC=1 + # adds dependency on libdruntime.a) + ver_test -ge 2.108.0 && phobosMakeArgs+=( "USE_IMPORTC=0" ) emake -C dmd/druntime "${commonMakeArgs[@]}" "${druntimeMakeArgs[@]}" emake -C phobos "${commonMakeArgs[@]}" "${phobosMakeArgs[@]}" |