From e32b10f469acbdd4892a38992a890d5e9b8b2d03 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 12 Oct 2017 09:12:12 +0200 Subject: [PATCH] build: set disable_glibcxx_debug flag This breaks a few tests when Node is built in debug mode, because V8 is built with `-D_GLIBCXX_DEBUG=1` and Node is built without, which makes e.g. `std::vector` ABI-incompatible between the two. PR-URL: https://github.com/nodejs/node/pull/16159 Reviewed-By: James Snell Reviewed-By: Franziska Hinkelmann Reviewed-By: Ben Noordhuis --- common.gypi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.gypi b/common.gypi index 6677274f3abe80..98268068f94c87 100644 --- a/common.gypi +++ b/common.gypi @@ -31,6 +31,10 @@ # Don't bake anything extra into the snapshot. 'v8_use_external_startup_data%': 0, + # Some STL containers (e.g. std::vector) do not preserve ABI compatibility + # between debug and non-debug mode. + 'disable_glibcxx_debug': 1, + # Don't use ICU data file (icudtl.dat) from V8, we use our own. 'icu_use_data_file_flag%': 0,