Skip to content

Commit 0e85e59

Browse files
brsonalexcrichton
authored andcommitted
mk: Pass the name of the make command to maketest.py
This should make BSD use the proper GNU make.
1 parent a6173e1 commit 0e85e59

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

mk/tests.mk

+1
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
904904
@rm -rf $(3)/test/run-make/$$*
905905
@mkdir -p $(3)/test/run-make/$$*
906906
$$(Q)$$(CFG_PYTHON) $(S)src/etc/maketest.py $$(dir $$<) \
907+
$$(MAKE) \
907908
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
908909
$(3)/test/run-make/$$* \
909910
"$$(CC_$(3)) $$(CFG_GCCISH_CFLAGS_$(3))" \

src/etc/maketest.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,21 @@
1717
print 'ignoring make tests on windows'
1818
sys.exit(0)
1919

20-
os.putenv('RUSTC', os.path.abspath(sys.argv[2]))
21-
os.putenv('TMPDIR', os.path.abspath(sys.argv[3]))
22-
os.putenv('CC', sys.argv[4])
23-
os.putenv('RUSTDOC', os.path.abspath(sys.argv[5]))
24-
filt = sys.argv[6]
25-
ldpath = sys.argv[7]
20+
make = sys.argv[2]
21+
os.putenv('RUSTC', os.path.abspath(sys.argv[3]))
22+
os.putenv('TMPDIR', os.path.abspath(sys.argv[4]))
23+
os.putenv('CC', sys.argv[5])
24+
os.putenv('RUSTDOC', os.path.abspath(sys.argv[6]))
25+
filt = sys.argv[7]
26+
ldpath = sys.argv[8]
2627
if ldpath != '':
2728
os.putenv(ldpath.split('=')[0], ldpath.split('=')[1])
2829

2930
if not filt in sys.argv[1]:
3031
sys.exit(0)
3132
print('maketest: ' + os.path.basename(os.path.dirname(sys.argv[1])))
3233

33-
proc = subprocess.Popen(['make', '-C', sys.argv[1]],
34+
proc = subprocess.Popen([make, '-C', sys.argv[1]],
3435
stdout = subprocess.PIPE,
3536
stderr = subprocess.PIPE)
3637
out, err = proc.communicate()

0 commit comments

Comments
 (0)