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:
parent
5580349c3a
commit
90fbf30491
4 changed files with 45 additions and 6 deletions
|
@ -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'
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue