node/tools/v8_gypfiles
Michaël Zasso efa63f3d05
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-13 19:05:05 +00:00
..
d8.gyp build, deps, tools: avoid excessive LTO 2023-04-06 00:24:58 +00:00
directory.build.props build: fix MSVC 2022 Release compilation 2023-01-27 15:24:45 -05:00
extras-libraries.cc
features.gypi tools: roughly port v8_abseil to gyp 2024-03-31 15:37:19 +02:00
ForEachFormat.py
ForEachReplace.py
GN-scraper.py tools: fix regex strings in Python tools 2023-02-21 11:55:22 -08:00
inspector.gypi tools: update V8 gypfiles for 11.5 2023-10-10 08:26:48 +02:00
toolchain.gypi build: add option to enable clang-cl on Windows 2024-05-13 19:05:05 +00:00
v8.gyp build: add option to enable clang-cl on Windows 2024-05-13 19:05:05 +00:00
v8vtune.gyp build,deps,src: fix Intel VTune profiling support 2022-11-22 08:28:19 +00:00