mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
build: use C++11 ABI with libstdc++
This macro needs to match between Node.js and addons that use C++ standard library types whose ABI differs (e.g. `std::string`). Therefore, a value for this should be specified in `common.gypi`. (Currently, the 32-bit ARM builds use this ABI, and other platforms don’t. It might also be possible to set this value to `0` instead, it’s only important that *a* value is specified.) Refs: https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html PR-URL: https://github.com/nodejs/node/pull/36634 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
parent
d32a9fe944
commit
a19af5ee71
@ -245,6 +245,7 @@
|
||||
'defines': [
|
||||
'V8_DEPRECATION_WARNINGS',
|
||||
'V8_IMMINENT_DEPRECATION_WARNINGS',
|
||||
'_GLIBCXX_USE_CXX11_ABI=1',
|
||||
],
|
||||
|
||||
# Forcibly disable -Werror. We support a wide range of compilers, it's
|
||||
|
Loading…
Reference in New Issue
Block a user