From 12ccaa434ba9ff3a7ea453aa00a86026226edd04 Mon Sep 17 00:00:00 2001 From: Jason Erb Date: Fri, 8 Dec 2023 15:13:48 -0500 Subject: [PATCH] Apply: https://github.com/nodejs/node/pull/46228 Fixes Release build on VS2022 ARM64 --- .github/workflows/build-windows.yml | 2 +- .github/workflows/coverage-windows.yml | 2 +- tools/v8_gypfiles/directory.build.props | 10 ++++++++++ tools/v8_gypfiles/v8.gyp | 8 ++++++++ 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 tools/v8_gypfiles/directory.build.props diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index af376d3aa5c533..7eabe75b33f756 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -34,7 +34,7 @@ jobs: if: github.event.pull_request.draft == false strategy: matrix: - windows: [windows-2019] + windows: [windows-2019, windows-2022] fail-fast: false runs-on: ${{ matrix.windows }} steps: diff --git a/.github/workflows/coverage-windows.yml b/.github/workflows/coverage-windows.yml index 78465acb17566d..39b492f3ff0c8a 100644 --- a/.github/workflows/coverage-windows.yml +++ b/.github/workflows/coverage-windows.yml @@ -37,7 +37,7 @@ permissions: jobs: coverage-windows: if: github.event.pull_request.draft == false - runs-on: windows-2019 + runs-on: windows-2022 steps: - uses: actions/checkout@v3 with: diff --git a/tools/v8_gypfiles/directory.build.props b/tools/v8_gypfiles/directory.build.props new file mode 100644 index 00000000000000..f0fdb0f39454fa --- /dev/null +++ b/tools/v8_gypfiles/directory.build.props @@ -0,0 +1,10 @@ + + + + + + $(IntDir)%(FileName)%(Extension).pp + + + diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 6b0125c58b4fd5..030dd966d62492 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -1436,6 +1436,14 @@ ['want_separate_host_toolset', { 'toolsets': ['host'], }], + ['OS=="win"', { + 'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h', + 'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc', + 'sources': [ + '<(_msvs_precompiled_header)', + '<(_msvs_precompiled_source)', + ], + }], ], }, # mksnapshot {