From 406d774a755ab3912ef92da25bc3b92b51bbf25d Mon Sep 17 00:00:00 2001 From: Stefan Budeanu Date: Tue, 19 Jul 2016 07:45:39 -0400 Subject: [PATCH] WIP: Use force_dynamic_crt v8 flag --- common.gypi | 1 + configure | 1 + deps/v8/build/toolchain.gypi | 7 ++++--- node.gyp | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/common.gypi b/common.gypi index 816e48230ddd5f..a74abee1cbdb60 100644 --- a/common.gypi +++ b/common.gypi @@ -12,6 +12,7 @@ 'python%': 'python', 'node_shared%': 'false', + 'force_dynamic_crt%': 0, 'node_use_v8_platform%': 'true', 'node_use_bundled_v8%': 'true', 'node_module_version%': '', diff --git a/configure b/configure index b23bfc36a282d0..d8d3bb78e08b5b 100755 --- a/configure +++ b/configure @@ -889,6 +889,7 @@ def configure_v8(o): o['variables']['v8_use_snapshot'] = 'false' if options.without_snapshot else 'true' o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform) o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8) + o['variables']['force_dynamic_crt'] = int(options.shared) o['variables']['node_enable_d8'] = b(options.enable_d8) if options.enable_d8: o['variables']['test_isolation_mode'] = 'noop' # Needed by d8.gyp. diff --git a/deps/v8/build/toolchain.gypi b/deps/v8/build/toolchain.gypi index b0a56896880203..519779edb4f503 100644 --- a/deps/v8/build/toolchain.gypi +++ b/deps/v8/build/toolchain.gypi @@ -39,6 +39,7 @@ 'ubsan_vptr%': 0, 'v8_target_arch%': '<(target_arch)', 'v8_host_byteorder%': '