Skip to content

Commit

Permalink
Drop support for dub < v1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke authored and ibuclaw committed Dec 30, 2023
1 parent 6100842 commit 60b1b33
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions create_dmd_release/create_dmd_release.d
Original file line number Diff line number Diff line change
Expand Up @@ -417,21 +417,10 @@ void buildAll(Bits bits, string branch)
info("Building Dub "~bitsDisplay);
changeDir(cloneDir~"/dub");

if (exists("build.d"))
{
// v1.20+
version (Windows)
run(msvcVars~"SET DMD="~hostDMD~" && "~hostDMD~" -m"~bitsStr~" -run build.d -O -w -m"~bitsStr);
else
run("DMD="~hostDMD~" "~hostDMD~" -run build.d -O -w -m"~bitsStr);
}
version (Windows)
run(msvcVars~"set DMD="~hostDMD~"&& "~hostDMD~" -m"~bitsStr~" -run build.d -O -w -m"~bitsStr);
else
{
version (Windows)
run(msvcVars~"SET DC="~hostDMD~" && build.cmd -m"~bitsStr); // TODO: replace DC with DMD
else
run("DMD="~hostDMD~" ./build.sh -m"~bitsStr);
}
run("DMD="~hostDMD~" "~hostDMD~" -run build.d -O -w -m"~bitsStr);
rename(cloneDir~"/dub/bin/dub"~exe, cloneDir~"/dub/bin/dub"~bitsStr~exe);
}
}
Expand Down

0 comments on commit 60b1b33

Please sign in to comment.