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