| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 660a97b commit 0736dd8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,6 +35,11 @@ V8_TEST_OPTIONS = $(V8_EXTRA_TEST_OPTIONS) | |||
| 35 | 35 | ifdef DISABLE_V8_I18N | |
| 36 | 36 | V8_BUILD_OPTIONS += i18nsupport=off | |
| 37 | 37 | endif | |
| 38 | + # V8 build and test toolchains are not currently compatible with Python 3. | ||
| 39 | + # config.mk may have prepended a symlink for `python` to PATH which we need | ||
| 40 | + # to undo before calling V8's tools. | ||
| 41 | + OVERRIDE_BIN_DIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))out/tools/bin | ||
| 42 | + NO_BIN_OVERRIDE_PATH=$(subst $() $(),:,$(filter-out $(OVERRIDE_BIN_DIR),$(subst :, ,$(PATH)))) | ||
| 38 | 43 | ||
| 39 | 44 | ifeq ($(OSTYPE), darwin) | |
| 40 | 45 | GCOV = xcrun llvm-cov gcov | |
@@ -273,7 +278,8 @@ endif | |||
| 273 | 278 | # Rebuilds deps/v8 as a git tree, pulls its third-party dependencies, and | |
| 274 | 279 | # builds it. | |
| 275 | 280 | v8: | |
| 276 | - tools/make-v8.sh $(V8_ARCH).$(BUILDTYPE_LOWER) $(V8_BUILD_OPTIONS) | ||
| 281 | + export PATH="$(NO_BIN_OVERRIDE_PATH)" && \ | ||
| 282 | + tools/make-v8.sh $(V8_ARCH).$(BUILDTYPE_LOWER) $(V8_BUILD_OPTIONS) | ||
| 277 | 283 | ||
| 278 | 284 | .PHONY: jstest | |
| 279 | 285 | jstest: build-addons build-js-native-api-tests build-node-api-tests ## Runs addon tests and JS tests | |
@@ -649,19 +655,22 @@ test-with-async-hooks: | |||
| 649 | 655 | ifneq ("","$(wildcard deps/v8/tools/run-tests.py)") | |
| 650 | 656 | # Related CI job: node-test-commit-v8-linux | |
| 651 | 657 | test-v8: v8 ## Runs the V8 test suite on deps/v8. | |
| 652 | - deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) $(V8_TEST_OPTIONS) \ | ||
| 658 | + export PATH="$(NO_BIN_OVERRIDE_PATH)" && \ | ||
| 659 | + deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) $(V8_TEST_OPTIONS) \ | ||
| 653 | 660 | mjsunit cctest debugger inspector message preparser \ | |
| 654 | 661 | $(TAP_V8) | |
| 655 | 662 | $(info Testing hash seed) | |
| 656 | 663 | $(MAKE) test-hash-seed | |
| 657 | 664 | ||
| 658 | 665 | test-v8-intl: v8 | |
| 659 | - deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) \ | ||
| 666 | + export PATH="$(NO_BIN_OVERRIDE_PATH)" && \ | ||
| 667 | + deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) \ | ||
| 660 | 668 | --mode=$(BUILDTYPE_LOWER) intl \ | |
| 661 | 669 | $(TAP_V8_INTL) | |
| 662 | 670 | ||
| 663 | 671 | test-v8-benchmarks: v8 | |
| 664 | - deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) --mode=$(BUILDTYPE_LOWER) \ | ||
| 672 | + export PATH="$(NO_BIN_OVERRIDE_PATH)" && \ | ||
| 673 | + deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) --mode=$(BUILDTYPE_LOWER) \ | ||
| 665 | 674 | benchmarks \ | |
| 666 | 675 | $(TAP_V8_BENCHMARKS) | |
| 667 | 676 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments