Only use the osfhandle hack on Windows

This commit is contained in:
Cheng Zhao 2016-05-19 17:02:40 +09:00
parent e609a5bee2
commit f8c1db160e

View file

@ -118,12 +118,7 @@
],
}],
['_target_name=="node"', {
'sources': [
'<(DEPTH)/atom/node/osfhandle.cc',
'<(DEPTH)/atom/node/osfhandle.h',
],
'include_dirs': [
'<(DEPTH)/atom/node',
'<(libchromiumcontent_src_dir)/v8',
'<(libchromiumcontent_src_dir)/v8/include',
],
@ -135,7 +130,17 @@
},
}],
['OS=="win"', {
# Fix passing fd across modules, see |osfhandle.h| for more.
'sources': [
'<(DEPTH)/atom/node/osfhandle.cc',
'<(DEPTH)/atom/node/osfhandle.h',
],
'include_dirs': [
'<(DEPTH)/atom/node',
],
# Node is using networking API but linking with this itself.
'libraries': [ '-lwinmm.lib' ],
# Fix the linking error with icu.
'conditions': [
['libchromiumcontent_component==0', {
'variables': {