mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* chore: bump node in DEPS to v20.19.0 * deps, src: simplifying base64 encoding https://github.com/nodejs/node/pull/52714 * module: simplify --inspect-brk handling https://github.com/nodejs/node/pull/55679 * test: make test-crypto-hash compatible with OpenSSL > 3.4.0 https://github.com/nodejs/node/pull/56160 * module: refactor ESM loader for adding future synchronous hooks https://github.com/nodejs/node/pull/54769 * module: detect ESM syntax by trying to recompile as SourceTextModule https://github.com/nodejs/node/pull/52413 * worker: add postMessageToThread https://github.com/nodejs/node/pull/53682 * backport unflagging of require(esm) to v20 https://github.com/nodejs/node/pull/56927 * module: detect ESM syntax by trying to recompile as SourceTextModule https://github.com/nodejs/node/pull/52413 * chore: fixup patch indices * chore: handle filename.json changes - https://github.com/nodejs/node/pull/51711 - https://github.com/nodejs/node/pull/53573 * src: refactor embedded entrypoint loading https://github.com/nodejs/node/pull/53573 * lib: allow CJS source map cache to be reclaimed https://github.com/nodejs/node/pull/51711 * test: make eval snapshot tests more flexible --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
43 lines
1.7 KiB
Diff
43 lines
1.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Shelley Vohr <shelley.vohr@gmail.com>
|
|
Date: Wed, 4 Sep 2024 16:39:23 +0200
|
|
Subject: build: compile with C++20 support
|
|
|
|
Refs https://github.com/nodejs/node/pull/45427
|
|
|
|
V8 requires C++20 support as of https://chromium-review.googlesource.com/c/v8/v8/+/5587859.
|
|
|
|
This can be removed when Electron upgrades to a version of Node.js containing the required V8 version.
|
|
|
|
diff --git a/common.gypi b/common.gypi
|
|
index 3b26f0e9c8a16135d6c614374cfb943ebc07f992..4a79378a6633b33f86f6576c27659df18193ed46 100644
|
|
--- a/common.gypi
|
|
+++ b/common.gypi
|
|
@@ -305,7 +305,7 @@
|
|
'VCCLCompilerTool': {
|
|
'AdditionalOptions': [
|
|
'/Zc:__cplusplus',
|
|
- '-std:c++17'
|
|
+ '-std:c++20'
|
|
],
|
|
'BufferSecurityCheck': 'true',
|
|
'DebugInformationFormat': 1, # /Z7 embed info in .obj files
|
|
@@ -487,7 +487,7 @@
|
|
}],
|
|
[ 'OS in "linux freebsd openbsd solaris android aix os400 cloudabi"', {
|
|
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
|
|
- 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ],
|
|
+ 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++20' ],
|
|
'defines': [ '__STDC_FORMAT_MACROS' ],
|
|
'ldflags': [ '-rdynamic' ],
|
|
'target_conditions': [
|
|
@@ -658,7 +658,7 @@
|
|
['clang==1', {
|
|
'xcode_settings': {
|
|
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
|
|
- 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++17', # -std=gnu++17
|
|
+ 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++20', # -std=gnu++20
|
|
'CLANG_CXX_LIBRARY': 'libc++',
|
|
},
|
|
}],
|