Skip to content

Commit 1bc51f1

Browse files
committed
Merge pull request #4336 from thestinger/python
fix build for when 'python' is python3
2 parents d91b2d4 + 486217d commit 1bc51f1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ else
152152

153153
doc/rust.g: rust.md $(S)src/etc/extract_grammar.py
154154
@$(call E, extract_grammar: $@)
155-
$(Q)$(S)src/etc/extract_grammar.py $< >$@
155+
$(Q)$(CFG_PYTHON) $(S)src/etc/extract_grammar.py $< >$@
156156

157157
verify-grammar: doc/rust.g
158158
@$(call E, LLnextgen: $<)

mk/snap.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ define DEF_SNAP_FOR_STAGE_H
1414

1515
ifdef CFG_INSTALL_SNAP
1616
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
17-
$(S)src/etc/make-snapshot.py stage$(1) $(2) install
17+
$(CFG_PYTHON) $(S)src/etc/make-snapshot.py stage$(1) $(2) install
1818
else
1919
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
20-
$(S)src/etc/make-snapshot.py stage$(1) $(2)
20+
$(CFG_PYTHON) $(S)src/etc/make-snapshot.py stage$(1) $(2)
2121
endif
2222

2323
endef
@@ -30,4 +30,4 @@ snap-stage1: snap-stage1-H-$(CFG_HOST_TRIPLE)
3030

3131
snap-stage2: snap-stage2-H-$(CFG_HOST_TRIPLE)
3232

33-
snap-stage3: snap-stage3-H-$(CFG_HOST_TRIPLE)
33+
snap-stage3: snap-stage3-H-$(CFG_HOST_TRIPLE)

mk/stage0.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $(HBIN0_H_$(CFG_HOST_TRIPLE))/rustc$(X): \
1111
ifdef CFG_ENABLE_LOCAL_RUST
1212
$(Q)$(S)src/etc/local_stage0.sh $(CFG_HOST_TRIPLE) $(CFG_LOCAL_RUST_ROOT)
1313
else
14-
$(Q)$(S)src/etc/get-snapshot.py $(CFG_HOST_TRIPLE) $(SNAPSHOT_FILE)
14+
$(Q)$(CFG_PYTHON) $(S)src/etc/get-snapshot.py $(CFG_HOST_TRIPLE) $(SNAPSHOT_FILE)
1515
ifdef CFG_ENABLE_PAX_FLAGS
1616
@$(call E, apply PaX flags: $@)
1717
@"$(CFG_PAXCTL)" -cm "$@"

mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ tmp/$(FT).rc tmp/$(FT_DRIVER).rs: \
701701
$(RPASS_TESTS) \
702702
$(S)src/etc/combine-tests.py
703703
@$(call E, check: building combined stage2 test runner)
704-
$(Q)$(S)src/etc/combine-tests.py
704+
$(Q)$(CFG_PYTHON) $(S)src/etc/combine-tests.py
705705

706706
define DEF_CHECK_FAST_FOR_T_H
707707
# $(1) unused

src/etc/sugarise-doc-comments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#
44
# this script attempts to turn doc comment attributes (#[doc = "..."])

0 commit comments

Comments
 (0)