Skip to content

Commit f67aaa0

Browse files
Merge pull request #721 from kinke/merge_stable
Merge stable
2 parents 30a9c84 + 792e97d commit f67aaa0

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.github/workflows/build_release_template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
target: linux
129129
- os: macos-13
130130
target: osx
131-
- os: windows-2019
131+
- os: windows-2022
132132
target: windows
133133
# FreeBSD is built on an additional VM
134134
- os: ubuntu-latest
@@ -230,7 +230,7 @@ jobs:
230230
# Windows: set LDC_VSDIR
231231
if [[ "${{ matrix.target }}" == "windows" ]]
232232
then
233-
export LDC_VSDIR='C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise'
233+
export LDC_VSDIR='C:\Program Files\Microsoft Visual Studio\2022\Enterprise'
234234
fi
235235
236236
# Build the release
@@ -271,7 +271,7 @@ jobs:
271271
run: |
272272
set -eux
273273
274-
sudo pkg install -y curl curlpp git gmake pkgconf gnupg rsync llvm15
274+
sudo pkg install -y curl curlpp git gmake pkgconf gnupg rsync llvm19
275275
276276
# Import key used to sign binaries
277277
curl -fsS https://dlang.org/d-keyring.gpg -o d-keyring.gpg

.github/workflows/build_windows.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
matrix:
1515
arch: [x86, x64]
1616
name: Build LLD ${{ matrix.arch }}
17-
runs-on: windows-2019
17+
runs-on: windows-2022
1818
timeout-minutes: 120
1919
env:
20-
VSINSTALLDIR: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\
20+
VSINSTALLDIR: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
2121
# NB: update windows/build_lld.sha256sums as well
2222
LLVM_VER: 9.0.0
2323
ARCH: ${{ matrix.arch }}
@@ -34,10 +34,10 @@ jobs:
3434

3535
build_mingw_libs:
3636
name: Build MinGW-based libs
37-
runs-on: windows-2019
37+
runs-on: windows-2022
3838
timeout-minutes: 120
3939
env:
40-
VSINSTALLDIR: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\
40+
VSINSTALLDIR: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
4141
# NB: update windows/build_mingw.sha256sums as well
4242
MINGW_VER: 8.0.0
4343
D_VERSION: 2.077.1
@@ -54,10 +54,10 @@ jobs:
5454

5555
build_curl:
5656
name: Build curl
57-
runs-on: windows-2019
57+
runs-on: windows-2022
5858
timeout-minutes: 120
5959
env:
60-
VSINSTALLDIR: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\
60+
VSINSTALLDIR: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
6161
# NB: update windows/build_curl.sha256sums as well
6262
CURL_VER: 7.68.0
6363
ZLIB_VER: 1.2.11

create_dmd_release/create_dmd_release.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,13 @@ void buildAll(Bits bits, string branch)
323323
version (Windows)
324324
{
325325
// Setup MSVC environment for x64/x86 native builds
326-
const vcVars = quote(buildPath(environment["LDC_VSDIR"], `VC\Auxiliary\Build\vcvarsall.bat`));
326+
const vcVars = quote(buildPath(environment["LDC_VSDIR"], `Common7\Tools\VsDevCmd.bat`));
327327
version (Win64)
328-
enum arch32 = "amd64_x86";
328+
enum hostArch = " -host_arch=x64";
329329
else
330-
enum arch32 = "x86";
330+
enum hostArch = null;
331331

332-
const msvcVars = vcVars~" "~(is32 ? arch32 : "x64")~" && ";
332+
const msvcVars = vcVars~" -arch="~(is32 ? "x86" : "x64")~hostArch~" && ";
333333
}
334334
else
335335
enum msvcVars = "";

windows/build_curl.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ SET ZLIB_PATH=%ROOT%\zlib
4343
:: --------------------------------------------------------------------
4444
:: Build x64 DLL and import libs
4545

46-
call "%VSINSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" x64
46+
call "%VSINSTALLDIR%\Common7\Tools\VsDevCmd.bat" -arch=x64
4747
@echo on
4848
cd %ROOT%
4949

@@ -63,7 +63,7 @@ mingw32-make -C curl\lib -f Makefile.m32 clean
6363
:: --------------------------------------------------------------------
6464
:: Build x86 DLL and import libs
6565

66-
call "%VSINSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" x86
66+
call "%VSINSTALLDIR%\Common7\Tools\VsDevCmd.bat" -arch=x86
6767
@echo on
6868
cd %ROOT%
6969
set PATH=%ROOT%\mingw32\bin;%PATH%

windows/build_lld.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ REM Stop early if the artifact already exists
1212
powershell -Command "Invoke-WebRequest downloads.dlang.org/other/%ARTIFACT% -OutFile %ARTIFACTPATH%" && exit /B 0
1313

1414

15-
call "%VSINSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
15+
call "%VSINSTALLDIR%\Common7\Tools\VsDevCmd.bat" -arch=%ARCH%
1616
@echo on
1717
cd %ROOT%
1818

windows/build_mingw.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ sha256sum -c "%ROOT%\windows\build_mingw.sha256sums" || exit /B 1
3232

3333
move mingw-w64-v%MINGW_VER% mingw-w64
3434

35-
call "%VSINSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
35+
call "%VSINSTALLDIR%\Common7\Tools\VsDevCmd.bat" -arch=x64 -host_arch=x86
3636
@echo on
3737
rem CWD might be changed by vcvars64.bat
3838
cd %ROOT%\windows\mingw
3939
dmd -run buildsdk.d x64 %ROOT%\mingw-w64 dmd2\windows\lib64\mingw || exit /B 1
4040

41-
call "%VSINSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" x86
41+
call "%VSINSTALLDIR%\Common7\Tools\VsDevCmd.bat" -arch=x86
4242
@echo on
4343
cd %ROOT%\windows\mingw
4444
dmd -run buildsdk.d x86 %ROOT%\mingw-w64 dmd2\windows\lib32mscoff\mingw || exit /B 1

0 commit comments

Comments
 (0)