joyent/node — Issue #2147: Build fails when options.gypi modified because gyp looks in the wrong directory for makefile autoregen.
Author: adammw
Created: 2011-11-19 11:11:12+00:00
State: open

Basically, if options.gypi is modified after ./configure is ran, gyp attempts to regenerate the makefile, however because the makefile is in the out/ folder, ./tools/gyp_node isn't the correct path.
Gyp provides a variable `toplevel_dir` in WriteAutoRegenerationRule (gyp/pylib/gyp/generator/make.py) but I'm not sure where that should be set, just that it has to be set because at the moment it doesn't work.