Skip to content

Commit

Permalink
Remove all references to optlink
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed May 9, 2024
1 parent 864f5c2 commit baf26bf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions create_dmd_release/build_all.d
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,6 @@ int main(string[] args)
immutable isPreRelease = isBranch || !verMatch.captures[4].empty;
immutable dubTag = isBranch ? gitTag : getDubTag(isPreRelease);

enum optlink = "optlink.zip";
enum libC = "snn.lib";
enum libCurl = "libcurl-7.68.0-WinSSL-zlib-x86-x64.zip";
enum mingwtag = "mingw-libs-8.0.0";
Expand All @@ -599,7 +598,6 @@ int main(string[] args)
const hasWindows = platforms.any!(p => p.os == OS.windows);
if (hasWindows)
{
fetchFile("http://ftp.digitalmars.com/"~optlink, cacheDir~"/"~optlink);
fetchFile("http://ftp.digitalmars.com/"~libC, cacheDir~"/"~libC);
fetchFile("https://downloads.dlang.org/other/"~libCurl, cacheDir~"/"~libCurl, verifySignature);
fetchFile("https://downloads.dlang.org/other/"~lld, cacheDir~"/"~lld, verifySignature, lld_sha);
Expand Down Expand Up @@ -628,8 +626,6 @@ int main(string[] args)

if (hasWindows)
{
// add latest optlink
extract(cacheDir~"/"~optlink, workDir~"/windows/extraBins/dmd2/windows/bin/");
if (exists(workDir~"/windows/extraBins/dmd2/windows/bin/link.exe"))
remove(workDir~"/windows/extraBins/dmd2/windows/bin/link.exe");
// add latest dmc libC (snn.lib)
Expand Down
9 changes: 0 additions & 9 deletions create_dmd_release/create_dmd_release.d
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Prerequisites to Run:
Examples:
set LDC_VSDIR="C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\"
- Windows: A GNU make, found in PATH as mingw32-make (to avoid DM make.exe bundled with DMC).
- Windows: A version of OPTLINK with the /LA[RGEADDRESSAWARE] flag:
<https://github.com/DigitalMars/optlink/commit/475bc5c1fa28eaf899ba4ac1dcfe2ab415db16c6>
- Windows: Microsoft's HTML Help Workshop on the PATH.
Typical Usage:
Expand Down Expand Up @@ -523,13 +521,6 @@ void createRelease(string branch)
if(do64Bit)
{
copyFile(cloneDir~"/dmd/generated/"~osDirName~"/release/64/dmd"~exe, releaseBin64Dir~"/dmd"~exe);
version(Windows)
{
// patch sc.ini to point to optlink.exe in bin folder
auto sc_ini = cast(string)std.file.read(cloneDir~"/dmd/compiler/ini/windows/bin/sc.ini");
sc_ini = sc_ini.replace(`%@P%\optlink.exe`, `%@P%\..\bin\optlink.exe`);
std.file.write(releaseBin64Dir~"/sc.ini", sc_ini);
}
copyDir(cloneDir~"/tools/generated/"~osDirName~"/64", releaseBin64Dir, file => !file.endsWith(obj));
copyFile(cloneDir~"/dub/bin/dub64"~exe, releaseBin64Dir~"/dub"~exe);
if (codesign)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ lib.exe Librarian http://www.digitalmars.com/ctg/lib.html
libcurl.dll Curl Library https://curl.haxx.se/
lld-link.exe LLVM Linker https://lld.llvm.org/
make.exe Make program http://www.digitalmars.com/ctg/make.html
optlink.exe Linker http://www.digitalmars.com/ctg/optlink.html
rdmd.exe Run D program as a script http://dlang.org/rdmd.html
replace.exe Find/replace text in file(s)
shell.exe Test script runner http://www.digitalmars.com/ctg/shell.html

0 comments on commit baf26bf

Please sign in to comment.