From 1e0a2e6544ba6958c6ffb8609b5c569ae0975113 Mon Sep 17 00:00:00 2001 From: Yavor Georgiev Date: Tue, 24 Jul 2018 23:42:24 +0300 Subject: [PATCH] Disable GNU dialect when building for Node 10 with GCC --- target_defaults.gypi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target_defaults.gypi b/target_defaults.gypi index 85e3fcc8..e6e629ca 100644 --- a/target_defaults.gypi +++ b/target_defaults.gypi @@ -11,7 +11,8 @@ "cflags_cc!": [ # turn off default flags on older nodes on linux "-fno-exceptions", "-fno-rtti", - "-std=gnu++0x" + "-std=gnu++0x", + "-std=gnu++1y" # this is the default on Node.js 10, but we can't use the GNU dialect ], "cflags_cc": [ "-fexceptions",