mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
build, win: use target_arch to link with node.lib
Using `target_arch` in addon.gypi to link against Node.js library. This variable was written into build/config.gypi on the `configure` stage. Do not copy node.lib into node_root_dir/Release or node_root_dir/Debug on Windows, link it from node_root_dir/target_arch directory. PR-URL: https://github.com/nodejs/node-gyp/pull/964 Reviewed-By: João Reis <reis@janeasystems.com>
This commit is contained in:
parent
c307b302f7
commit
0913b2dd99
3 changed files with 3 additions and 33 deletions
|
@ -109,7 +109,7 @@
|
|||
'-luuid.lib',
|
||||
'-lodbc32.lib',
|
||||
'-lDelayImp.lib',
|
||||
'-l"<(node_root_dir)/$(ConfigurationName)/<(node_lib_file)"'
|
||||
'-l"<(node_root_dir)/<(target_arch)/<(node_lib_file)"'
|
||||
],
|
||||
'msvs_disabled_warnings': [
|
||||
# warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue