Commit e939e24
build: don't pass python override to V8 build
If the `configure.py` script is executed by a Python binary that is
not the one on the PATH it will create a `python` symlink in
`out/tools/bin` and prefix that to the PATH so it is used instead of
the one that otherwise would have been found on the PATH. This is
done so that gyp scripts shelling out to `python` execute with the
same version of Python as used to run the configure script.
V8's build uses V8's build toolchain (i.e. not gyp) and currently that
is incompatible with Python 3. Prevent prefixing the PATH for the V8
build so that it picks up `python` from the unprefixed PATH. This will
allow us to build Node.js with Python 3 but still use Python 2 to build
V8 in the CI.
PR-URL: #38969
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>1 parent 1f10e84 commit e939e24Copy full SHA for e939e24
File tree
Expand file treeCollapse file tree
1 file changed
+13
-4
lines changedOpen diff view settings
Filter options
Expand file treeCollapse file tree
1 file changed
+13
-4
lines changedOpen diff view settings
Collapse file
+13-4Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
39 | 44 | |
40 | 45 | |
41 | 46 | |
| ||
274 | 279 | |
275 | 280 | |
276 | 281 | |
277 | | - |
| 282 | + |
| 283 | + |
278 | 284 | |
279 | 285 | |
280 | 286 | |
| ||
651 | 657 | |
652 | 658 | |
653 | 659 | |
654 | | - |
| 660 | + |
| 661 | + |
655 | 662 | |
656 | 663 | |
657 | 664 | |
658 | 665 | |
659 | 666 | |
660 | 667 | |
661 | | - |
| 668 | + |
| 669 | + |
662 | 670 | |
663 | 671 | |
664 | 672 | |
665 | 673 | |
666 | | - |
| 674 | + |
| 675 | + |
667 | 676 | |
668 | 677 | |
669 | 678 | |
|
0 commit comments