mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
build,src: add PCH to node.gypi
PR-URL: https://github.com/nodejs/node/pull/25931 Reviewed-By: João Reis <reis@janeasystems.com>
This commit is contained in:
11
node.gypi
11
node.gypi
@@ -36,7 +36,7 @@
|
||||
],
|
||||
},
|
||||
'conditions': [
|
||||
['clang==1', {
|
||||
[ 'clang==1', {
|
||||
'cflags': [ '-Werror=undefined-inline', ]
|
||||
}],
|
||||
[ 'node_shared=="false"', {
|
||||
@@ -68,7 +68,14 @@
|
||||
}, { # POSIX
|
||||
'defines': [ '__POSIX__' ],
|
||||
}],
|
||||
|
||||
[ 'node_use_pch=="true"', {
|
||||
'msvs_precompiled_header': 'tools/msvs/pch/node_pch.h',
|
||||
'msvs_precompiled_source': 'tools/msvs/pch/node_pch.cc',
|
||||
'sources': [
|
||||
'<(_msvs_precompiled_header)',
|
||||
'<(_msvs_precompiled_source)',
|
||||
],
|
||||
}],
|
||||
[ 'node_enable_d8=="true"', {
|
||||
'dependencies': [ 'deps/v8/gypfiles/d8.gyp:d8' ],
|
||||
}],
|
||||
|
||||
Reference in New Issue
Block a user