From c668cf26d19378b01f15e03cc05f99e1f58099a3 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 1 Nov 2019 20:07:32 +0100 Subject: [PATCH] Enabling RTTI for Windows. --- packages/grpc-native-core/binding.gyp | 21 +++++++++++++++---- .../templates/binding.gyp.template | 21 +++++++++++++++---- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/packages/grpc-native-core/binding.gyp b/packages/grpc-native-core/binding.gyp index e4b2f0825..c2629bb83 100644 --- a/packages/grpc-native-core/binding.gyp +++ b/packages/grpc-native-core/binding.gyp @@ -166,10 +166,23 @@ '_UNICODE', 'NOMINMAX', ], - "msvs_settings": { - 'VCCLCompilerTool': { - 'RuntimeLibrary': 1, # static debug - } + "configurations": { + "Debug": { + "msvs_settings": { + 'VCCLCompilerTool': { + 'RuntimeLibrary': 1, # static debug + 'RuntimeTypeInfo': 'true', + } + }, + }, + "Release": { + "msvs_settings": { + 'VCCLCompilerTool': { + 'RuntimeLibrary': 1, # static debug + 'RuntimeTypeInfo': 'true', + } + }, + }, }, "libraries": [ "ws2_32" diff --git a/packages/grpc-native-core/templates/binding.gyp.template b/packages/grpc-native-core/templates/binding.gyp.template index bd73397ce..6673c1709 100644 --- a/packages/grpc-native-core/templates/binding.gyp.template +++ b/packages/grpc-native-core/templates/binding.gyp.template @@ -154,10 +154,23 @@ '_UNICODE', 'NOMINMAX', ], - "msvs_settings": { - 'VCCLCompilerTool': { - 'RuntimeLibrary': 1, # static debug - } + "configurations": { + "Debug": { + "msvs_settings": { + 'VCCLCompilerTool': { + 'RuntimeLibrary': 1, # static debug + 'RuntimeTypeInfo': 'true', + } + }, + }, + "Release": { + "msvs_settings": { + 'VCCLCompilerTool': { + 'RuntimeLibrary': 1, # static debug + 'RuntimeTypeInfo': 'true', + } + }, + }, }, "libraries": [ "ws2_32"