59 lines
1.6 KiB
Diff
59 lines
1.6 KiB
Diff
From 3b353a4dbc0e96a35d18dde94a787945f1c5c58a Mon Sep 17 00:00:00 2001
|
|
From: Alethea Rose <alethea@alethearose.com>
|
|
Date: Wed, 15 Feb 2017 19:11:53 -0500
|
|
Subject: [PATCH 08/23] Link with -municode and extern wmain for Unicode
|
|
|
|
---
|
|
node.gyp | 9 +++++++++
|
|
node.gypi | 1 +
|
|
2 files changed, 10 insertions(+)
|
|
|
|
diff --git a/node.gyp b/node.gyp
|
|
index 2a8e6a66..d83cdef1 100644
|
|
--- a/node.gyp
|
|
+++ b/node.gyp
|
|
@@ -576,6 +576,9 @@
|
|
'msvs_disabled_warnings!': [4244],
|
|
|
|
'conditions': [
|
|
+ [ 'OS=="win"', {
|
|
+ 'ldflags': [ '-municode' ],
|
|
+ }],
|
|
[ 'error_on_warn=="true"', {
|
|
'cflags': ['-Werror'],
|
|
'xcode_settings': {
|
|
@@ -1336,6 +1339,9 @@
|
|
[ 'OS in "linux mac"', {
|
|
'defines': ['NODE_JS2C_USE_STRING_LITERALS'],
|
|
}],
|
|
+ [ 'OS=="win"', {
|
|
+ 'ldflags': [ '-municode' ],
|
|
+ }],
|
|
[ 'debug_node=="true"', {
|
|
'cflags!': [ '-O3' ],
|
|
'cflags': [ '-g', '-O0' ],
|
|
@@ -1383,6 +1389,9 @@
|
|
['node_write_snapshot_as_array_literals=="true"', {
|
|
'defines': [ 'NODE_MKSNAPSHOT_USE_ARRAY_LITERALS=1' ],
|
|
}],
|
|
+ [ 'OS=="win"', {
|
|
+ 'ldflags': [ '-municode' ],
|
|
+ }],
|
|
[ 'node_use_openssl=="true"', {
|
|
'defines': [
|
|
'HAVE_OPENSSL=1',
|
|
diff --git a/node.gypi b/node.gypi
|
|
index ccce1243..e5d520fb 100644
|
|
--- a/node.gypi
|
|
+++ b/node.gypi
|
|
@@ -63,6 +63,7 @@
|
|
'FD_SETSIZE=1024',
|
|
# we need to use node's preferred "win32" rather than gyp's preferred "win"
|
|
'NODE_PLATFORM="win32"',
|
|
+ 'UNICODE',
|
|
'_UNICODE=1',
|
|
],
|
|
'conditions': [
|
|
--
|
|
2.17.0.windows.1
|