Fix MSVS building.
This commit is contained in:
parent
74e8fa2e57
commit
b9d777734d
@ -1,2 +1,2 @@
|
||||
@echo off
|
||||
python tools\gyp_node -f msvs -D msvs_multi_core_compile=true
|
||||
python tools\gyp_node -f msvs -G msvs_version=2010 -D msvs_multi_core_compile=true
|
||||
|
2
node.gyp
2
node.gyp
@ -74,7 +74,7 @@
|
||||
'dependencies': [
|
||||
'deps/http_parser/http_parser.gyp:http_parser',
|
||||
'deps/v8/tools/gyp/v8.gyp:v8',
|
||||
'deps/uv/build/all.gyp:uv',
|
||||
'deps/uv/all.gyp:uv',
|
||||
'node_js2c#host',
|
||||
],
|
||||
|
||||
|
@ -49,6 +49,9 @@
|
||||
#define getcwd _getcwd
|
||||
#include <process.h>
|
||||
#define getpid _getpid
|
||||
#include <io.h>
|
||||
#define umask _umask
|
||||
typedef int mode_t;
|
||||
#endif
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
@ -1443,11 +1446,6 @@ static Handle<Value> Cwd(const Arguments& args) {
|
||||
return scope.Close(cwd);
|
||||
}
|
||||
|
||||
|
||||
#ifndef __POSIX__
|
||||
# define umask _umask
|
||||
#endif
|
||||
|
||||
static Handle<Value> Umask(const Arguments& args) {
|
||||
HandleScope scope;
|
||||
unsigned int old;
|
||||
|
@ -42,7 +42,6 @@ if __name__ == '__main__':
|
||||
# Tell make to write its output into the same dir
|
||||
args.extend(['-Goutput_dir=' + output_dir])
|
||||
|
||||
args.append('-S-nodegyp')
|
||||
args.append('-Dtarget_arch=ia32')
|
||||
args.append('-Dcomponent=static_library')
|
||||
args.append('-Dlibrary=static_library')
|
||||
|
Loading…
x
Reference in New Issue
Block a user