Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

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

Closed
adammw opened this issue Nov 19, 2011 · 2 comments
Assignees
Milestone

Comments

@adammw
Copy link

adammw commented Nov 19, 2011

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.

@ghost ghost assigned bnoordhuis Nov 19, 2011
@ry
Copy link

ry commented Nov 19, 2011

yes, this is annoying

@eddyb eddyb mentioned this issue Nov 29, 2011
@eddyb
Copy link

eddyb commented Nov 29, 2011

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants