From dd67c807cae091d682981f2edec367f1847abc07 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Thu, 9 May 2024 17:33:00 +0000 Subject: [PATCH] Remove all references to OMF --- create_dmd_release/build_all.d | 4 ---- create_dmd_release/create_dmd_release.d | 20 -------------------- test/release/validate_release.sh | 2 +- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/create_dmd_release/build_all.d b/create_dmd_release/build_all.d index 482da4c6..0466f5c7 100644 --- a/create_dmd_release/build_all.d +++ b/create_dmd_release/build_all.d @@ -577,7 +577,6 @@ int main(string[] args) enum optlink = "optlink.zip"; enum libC = "snn.lib"; enum libCurl = "libcurl-7.68.0-WinSSL-zlib-x86-x64.zip"; - enum omflibs = "omflibs-winsdk-10.0.16299.15.zip"; enum mingwtag = "mingw-libs-8.0.0"; enum mingwlibs = mingwtag ~ ".zip"; enum mingw_sha = hexString!"8c1619234ca8370b742a08a30b13bf9bdb333f842ed0ea02cafe9054c68adc97"; enum lld = "lld-link-9.0.0-seh.zip"; enum lld_sha = hexString!"ffde2eb0e0410e6985bbbb44c200b21a2b2dd34d3f8c3411f5ca5beb7f67ba5b"; @@ -603,7 +602,6 @@ int main(string[] args) 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/"~omflibs, cacheDir~"/"~omflibs, verifySignature); fetchFile("https://downloads.dlang.org/other/"~lld, cacheDir~"/"~lld, verifySignature, lld_sha); fetchFile("https://downloads.dlang.org/other/"~lld64, cacheDir~"/"~lld64, verifySignature, lld64_sha); fetchFile("https://github.com/dlang/installer/releases/download/"~mingwtag~"/"~mingwlibs, cacheDir~"/"~mingwlibs, verifySignature, mingw_sha); @@ -638,8 +636,6 @@ int main(string[] args) copyFile(cacheDir~"/"~libC, workDir~"/windows/extraBins/dmd2/windows/lib/"~libC); // add libcurl build for windows extract(cacheDir~"/"~libCurl, workDir~"/windows/extraBins/"); - // add updated OMF import libraries - extract(cacheDir~"/"~omflibs, workDir~"/windows/extraBins/dmd2/windows/lib/"); // add mingw coff libraries extract(cacheDir~"/"~mingwlibs, workDir~"/windows/extraBins/"); // add lld linker diff --git a/create_dmd_release/create_dmd_release.d b/create_dmd_release/create_dmd_release.d index 5232465e..2350a0a1 100644 --- a/create_dmd_release/create_dmd_release.d +++ b/create_dmd_release/create_dmd_release.d @@ -373,23 +373,6 @@ void buildAll(Bits bits, string branch) changeDir(cloneDir~"/phobos"); run(msvcVars~makecmd~pic); - version(Windows) if (is32) - { - const makecmd_omf = makecmd.replace(makeModel, " MODEL=32omf"); - - info("Building Druntime 32omf"); - changeDir(cloneDir~"/dmd/druntime"); - run(makecmd_omf); - - info("Building OMF import libraries"); - changeDir(cloneDir~"/dmd/druntime/def"); - run(make~jobs); - - info("Building Phobos 32omf"); - changeDir(cloneDir~"/phobos"); - run(makecmd_omf); - } - // Build docs if(!skipDocs) { @@ -497,9 +480,6 @@ void createRelease(string branch) if(do32Bit) { copyFile(cloneDir~"/phobos/phobos32mscoff.lib", osDir~"/lib32mscoff/phobos32mscoff.lib"); - // OMF: - copyFile(cloneDir~"/phobos/phobos.lib", osDir~"/lib/phobos.lib"); - copyDir(cloneDir~"/dmd/druntime/def/", osDir~"/lib/", file => file.endsWith(".lib")); } if(do64Bit) { diff --git a/test/release/validate_release.sh b/test/release/validate_release.sh index 990090be..6692317f 100644 --- a/test/release/validate_release.sh +++ b/test/release/validate_release.sh @@ -17,7 +17,7 @@ if [ "$OS" == "windows" ] then 7z x -y $BUILD -o"$GEN/" - TARGETS="-m32 -m32mscoff -m32omf -m64" + TARGETS="-m32 -m32mscoff -m64" EXE=".exe" else tar xf $BUILD --directory="$GEN/"