node/tools
Michaël Zasso a97ff753ab
build: add option to enable clang-cl on Windows
Most changes are gated by the `clang==1` condition to avoid breaking
MSVC builds.

Select C/C++ language standard with ClCompile options.
This avoids passing the `-std:c++20` flag while compiling C code.
Do it only under clang option to avoid breaking addons until node-gyp
supports the new LanguageStandard options.

Disable precompiled header configuration for now as it doesn't seem to
work with clang-cl.

Disable C++20 warnings emitted by the Visual Studio C++ STL.
They're very noisy and not our responsibility to fix.

Co-authored-by: Daniel Lemire <daniel@lemire.me>
Co-authored-by: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
PR-URL: https://github.com/nodejs/node/pull/52870
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2024-05-15 08:41:49 +02:00
..
actions tools: add --certify-safe to nci-ci 2024-05-12 21:21:56 +02:00
bootstrap
clang-format
configure.d
dep_updaters tools: fix V8 update workflow 2024-05-08 07:12:42 +02:00
doc url,tools,benchmark: replace deprecated substr() 2024-05-13 07:21:28 +02:00
eslint-rules tools: prepare custom rules for ESLint v9 2024-05-11 18:55:49 +02:00
github_reporter tools: update github_reporter to 1.7.0 2024-03-19 00:27:30 +00:00
gyp tools: update gyp-next to 0.18.0 2024-05-11 18:55:50 +02:00
icu deps: update icu to 75.1 2024-04-29 22:46:27 +02:00
inspector_protocol tools: update inspector_protocol to 83b1154 2024-01-11 04:41:26 +00:00
lint-md tools: update lint-md-dependencies to rollup@4.17.2 2024-05-11 18:55:46 +02:00
macos-installer
msvs tools: install npm PowerShell scripts on Windows 2024-03-27 20:39:55 +00:00
node_modules tools: use stylistic ESLint plugin for formatting 2024-04-29 22:46:23 +02:00
pip
snapshot src: rewrite task runner in c++ 2024-05-08 07:12:37 +02:00
v8
v8_gypfiles build: add option to enable clang-cl on Windows 2024-05-15 08:41:49 +02:00
zos
.eslintrc.yaml
build_addons.py build,tools,node-api: fix building node-api tests for Windows Debug 2024-04-29 22:46:31 +02:00
certdata.txt crypto: update root certificates to NSS 3.98 2024-02-25 18:33:50 +00:00
checkimports.py
compress_json.py
copyfile.py
cpplint.py tools: remove deprecated python api 2024-01-06 20:58:03 -06:00
create_android_makefiles build: compile with C++20 support 2024-05-08 09:02:02 +02:00
create_expfile.sh
enable_fips_include.py
executable_wrapper.h
find-inactive-collaborators.mjs tools: take co-authors into account in find-inactive-collaborators 2024-04-29 22:46:32 +02:00
find-inactive-tsc.mjs
gen_node_def.cc
generate_config_gypi.py
getarch.py
getendian.py
getmachine.py
getmoduleversion.py
getnapibuildversion.py
getnodeversion.py
getsharedopensslhasquic.py
gyp_node.py build: compile with C++20 support 2024-05-08 09:02:02 +02:00
gypi_to_gn.py build: do not rely on gn_helpers in GN build 2024-02-23 20:49:43 +09:00
install.py tools: install manpage to share/man for FreeBSD 2024-03-11 17:42:51 +00:00
js2c.cc tools: fix error reported by coverity in js2c.cc 2024-03-25 09:52:53 -04:00
license-builder.sh deps,src: simplify base64 encoding 2024-04-30 11:23:07 +02:00
license2rtf.mjs
lint-pr-url.mjs
lint-readme-lists.mjs tools: add a linter for README lists 2024-04-29 22:46:22 +02:00
lint-sh.mjs
lsan_suppressions.txt
macos-firewall.sh
make-v8.sh tools: limit parallelism with ninja in V8 builds 2024-01-17 17:56:46 +00:00
merge-wpt-reports.mjs
mk-ca-bundle.pl
mkssldef.py tools: fix invalid escape sequence in mkssldef 2024-04-29 22:46:29 +02:00
osx-codesign.sh
osx-entitlements.plist tools: fix heading spaces for osx-entitlements.plist 2024-04-29 22:46:25 +02:00
osx-notarize.sh
osx-pkg-postinstall.sh
osx-productsign.sh
pseudo-tty.py
release.sh build, tools: copy release assets to staging R2 bucket once built 2024-05-08 07:12:43 +02:00
run-valgrind.py
run-worker.js
search_files.py
sign.bat
specialize_node_d.py
test-npm-package.js
test-v8.bat
test.py tools: fix get_asan_state() in tools/test.py 2024-05-11 18:55:51 +02:00
update-timezone.mjs
utils.py
v8-json-to-junit.py
valgrind.supp