Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 342c5ba

Browse files
committed
[tool] modify build_native_module
1 parent 00ae2ab commit 342c5ba

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tools/build_native_modules.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,13 @@
4141
if opts.target:
4242
target = opts.target
4343

44-
exec_args = ['node',
45-
'nw-gyp',
44+
exec_args = ['nw-gyp',
4645
'configure',
4746
'--target=%s'%(target),
4847
'build']
4948

5049
win = sys.platform in ('win32', 'cygwin')
5150

52-
if win:
53-
exec_args.insert(4, '--arch=ia32')
54-
5551

5652
for dir in native_modules:
5753

@@ -60,7 +56,7 @@
6056

6157
native_dir = os.path.join(native_root, dir)
6258
os.chdir(native_dir)
63-
exec_args[1] = os.path.relpath(nw_gyp_script, os.getcwd())
59+
#exec_args[1] = os.path.relpath(nw_gyp_script, os.getcwd())
6460
subprocess.call(exec_args)
6561
#os.execl(node_gyp_script, '', 'build')
6662

0 commit comments

Comments
 (0)