Files
MINGW-packages/mingw-w64-nodejs/0011-detect-architecture.patch
2017-02-26 14:35:38 +03:00

12 lines
629 B
Diff

--- i686/configure.orig 2017-02-26 13:18:36.290757400 +0300
+++ i686/configure 2017-02-26 13:21:54.876115900 +0300
@@ -755,7 +755,7 @@
o['variables']['node_install_npm'] = b(not options.without_npm)
o['default_configuration'] = 'Debug' if options.debug else 'Release'
- host_arch = host_arch_win() if os.name == 'nt' else host_arch_cc()
+ host_arch = host_arch_win() if (os.name == 'nt' and not ('GCC' in sys.version)) else host_arch_cc()
target_arch = options.dest_cpu or host_arch
# ia32 is preferred by the build tools (GYP) over x86 even if we prefer the latter
# the Makefile resets this to x86 afterward