| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5367336 commit 87db4f7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,13 +60,18 @@ endif | |||
| 60 | 60 | # to check for changes. | |
| 61 | 61 | .PHONY: $(NODE_EXE) $(NODE_G_EXE) | |
| 62 | 62 | ||
| 63 | + # The -r/-L check stops it recreating the link if it is already in place, | ||
| 64 | + # otherwise $(NODE_EXE) being a .PHONY target means it is always re-run. | ||
| 65 | + # Without the check there is a race condition between the link being deleted | ||
| 66 | + # and recreated which can break the addons build when running test-ci | ||
| 67 | + # See comments on the build-addons target for some more info | ||
| 63 | 68 | $(NODE_EXE): config.gypi out/Makefile | |
| 64 | 69 | $(MAKE) -C out BUILDTYPE=Release V=$(V) | |
| 65 | - ln -fs out/Release/$(NODE_EXE) $@ | ||
| 70 | + if [ ! -r $(NODE_EXE) -o ! -L $(NODE_EXE) ]; then ln -fs out/Release/$(NODE_EXE) $@; fi | ||
| 66 | 71 | ||
| 67 | 72 | $(NODE_G_EXE): config.gypi out/Makefile | |
| 68 | 73 | $(MAKE) -C out BUILDTYPE=Debug V=$(V) | |
| 69 | - ln -fs out/Debug/$(NODE_EXE) $@ | ||
| 74 | + if [ ! -r $(NODE_EXE) -o ! -L $(node_EXE) ]; then ln -fs out/Debug/$(NODE_EXE) $@; fi | ||
| 70 | 75 | ||
| 71 | 76 | out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/toolchain.gypi deps/v8/build/features.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi | |
| 72 | 77 | $(PYTHON) tools/gyp_node.py -f make | |
| Back | FazBrowse Home | New Git URL |
0 commit comments