diff --git a/ci/run.sh b/ci/run.sh index d130df03ae18..c30c77fdffaa 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -61,7 +61,12 @@ build() { if [ "$OS_NAME" != "windows" ]; then source ~/dlang/*/activate # activate host compiler, incl. setting `DMD` fi - $DMD compiler/src/build.d -ofgenerated/build + BUILD_DFLAGS= + if [ "$OS_NAME" == "osx" ]; then + BUILD_DFLAGS="-L-ld_classic" + CI_DFLAGS="$CI_DFLAGS $BUILD_DFLAGS" + fi + $DMD compiler/src/build.d -ofgenerated/build $BUILD_DFLAGS generated/build -j$N MODEL=$MODEL HOST_DMD=$DMD DFLAGS="$CI_DFLAGS" BUILD=debug unittest generated/build -j$N MODEL=$MODEL HOST_DMD=$DMD DFLAGS="$CI_DFLAGS" ENABLE_RELEASE=1 dmd make -j$N -C druntime MODEL=$MODEL