build: compile Node.js with C++20 support (#43555)

* build: compile with C++20 support

* build: update build-image-sha for gcc 10
This commit is contained in:
Shelley Vohr 2024-09-11 15:01:46 +02:00 committed by GitHub
parent 5580349c3a
commit 90fbf30491
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 45 additions and 6 deletions

View file

@ -186,13 +186,9 @@ async function runMainProcessElectronTests () {
}
async function installSpecModules (dir) {
// v8 headers use c++17 so override the gyp default of -std=c++14,
// but don't clobber any other CXXFLAGS that were passed into spec-runner.js
const CXXFLAGS = ['-std=c++17', process.env.CXXFLAGS].filter(x => !!x).join(' ');
const env = {
...process.env,
CXXFLAGS,
CXXFLAGS: process.env.CXXFLAGS,
npm_config_msvs_version: '2019',
npm_config_yes: 'true'
};