File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2+ # Node 26's common.gypi references variables like `enable_thin_lto` in
3+ # `conditions`, but the bundled node-gyp (10.x) shipped with prebuild
4+ # 13 doesn't inject defaults for them. On the Windows toolchain that
5+ # results in `gyp: name 'enable_thin_lto' is not defined`. Providing a
6+ # `%` default here is safe across all platforms and node-gyp versions:
7+ # gyp only uses our default when the variable isn't already set.
8+ 'variables' : {
9+ 'enable_thin_lto%' : 'false' ,
10+ },
211 'targets' : [
312 {
413 'target_name' : 'node_expat' ,
Original file line number Diff line number Diff line change 77# ./out/Debug/test
88
99{
10+ # Same Node 26 / node-gyp 10 workaround as in ../../binding.gyp. gyp loads
11+ # dependency .gyp files in their own variable scope, so the default has to
12+ # live here too — the parent binding.gyp's variables don't propagate down.
13+ 'variables' : {
14+ 'enable_thin_lto%' : 'false' ,
15+ },
1016 'target_defaults' : {
1117 'default_configuration' : 'Debug' ,
1218 'configurations' : {
You can’t perform that action at this time.
0 commit comments