Build fails when options.gypi modified because gyp looks in the wrong directory for makefile autoregen. #2147

adammw opened this Issue Nov 19, 2011 · 2 comments

4 participants


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/ 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.

@bnoordhuis bnoordhuis was assigned Nov 19, 2011
ry commented Nov 19, 2011

yes, this is annoying

@eddyb eddyb added a commit that referenced this issue Nov 29, 2011
@eddyb eddyb Fix #2147. 509342b
@eddyb eddyb referenced this issue Nov 29, 2011

Fix #2147. #2221


I tried to make this work with gyp, but it seems that it's more or less hard-coded on a Chromium-like build environment.
The easiest fix for this is to add this in the top Makefile (and possibly remove the call from configure):

out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/common.gypi deps/v8/tools/gyp/v8.gyp node.gyp options.gypi
    tools/gyp_node -f make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment