make: Adopt SHELL:=/bin/bash at top-level
We're explicitly specifying bash in enough rules that adopting it at the top-level is probably best for minimizing surprises. Really the only bash feature we need is process substitution (`a <(b) <(c)`), but it's a hard feature to pass on. Though it will be interesting to see if any users run into problems with this.
This commit is contained in:
@@ -6,6 +6,8 @@ TARGET ?= $(BUILDDIR)/lfs3
|
|||||||
else
|
else
|
||||||
TARGET ?= $(BUILDDIR)/liblfs3.a
|
TARGET ?= $(BUILDDIR)/liblfs3.a
|
||||||
endif
|
endif
|
||||||
|
# process substitution my beloved
|
||||||
|
SHELL := /bin/bash
|
||||||
|
|
||||||
|
|
||||||
# find source files
|
# find source files
|
||||||
@@ -311,7 +313,6 @@ ctx-diff: $(CI)
|
|||||||
## Find function sizes
|
## Find function sizes
|
||||||
.PHONY: funcs
|
.PHONY: funcs
|
||||||
funcs: SUMMARYFLAGS+=-S
|
funcs: SUMMARYFLAGS+=-S
|
||||||
funcs: SHELL=/bin/bash
|
|
||||||
funcs: $(OBJ) $(CI)
|
funcs: $(OBJ) $(CI)
|
||||||
$(strip ./scripts/csv.py \
|
$(strip ./scripts/csv.py \
|
||||||
<(./scripts/code.py $(OBJ) $(CODEFLAGS) -o-) \
|
<(./scripts/code.py $(OBJ) $(CODEFLAGS) -o-) \
|
||||||
@@ -332,7 +333,6 @@ funcs-csv: \
|
|||||||
|
|
||||||
## Compare function sizes
|
## Compare function sizes
|
||||||
.PHONY: funcs-diff
|
.PHONY: funcs-diff
|
||||||
funcs-diff: SHELL=/bin/bash
|
|
||||||
funcs-diff: $(OBJ) $(CI)
|
funcs-diff: $(OBJ) $(CI)
|
||||||
$(strip ./scripts/csv.py \
|
$(strip ./scripts/csv.py \
|
||||||
<(./scripts/code.py $(OBJ) $(CODEFLAGS) -o-) \
|
<(./scripts/code.py $(OBJ) $(CODEFLAGS) -o-) \
|
||||||
@@ -426,7 +426,6 @@ perfbd-diff: $(BENCH_TRACE)
|
|||||||
|
|
||||||
## Find a summary of compile-time sizes
|
## Find a summary of compile-time sizes
|
||||||
.PHONY: summary sizes
|
.PHONY: summary sizes
|
||||||
summary sizes: SHELL=/bin/bash
|
|
||||||
summary sizes: $(OBJ) $(CI)
|
summary sizes: $(OBJ) $(CI)
|
||||||
$(strip ./scripts/csv.py \
|
$(strip ./scripts/csv.py \
|
||||||
<(./scripts/code.py $(OBJ) $(CODEFLAGS) -o-) \
|
<(./scripts/code.py $(OBJ) $(CODEFLAGS) -o-) \
|
||||||
@@ -450,7 +449,6 @@ summary-csv sizes-csv: \
|
|||||||
|
|
||||||
## Compare compile-time sizes
|
## Compare compile-time sizes
|
||||||
.PHONY: summary-diff sizes-diff
|
.PHONY: summary-diff sizes-diff
|
||||||
summary-diff sizes-diff: SHELL=/bin/bash
|
|
||||||
summary-diff sizes-diff: $(OBJ) $(CI)
|
summary-diff sizes-diff: $(OBJ) $(CI)
|
||||||
$(strip ./scripts/csv.py \
|
$(strip ./scripts/csv.py \
|
||||||
<(./scripts/csv.py \
|
<(./scripts/csv.py \
|
||||||
@@ -580,7 +578,6 @@ bench-list list-benches: bench-runner
|
|||||||
## Summarize the bench results
|
## Summarize the bench results
|
||||||
.PHONY: benchmarks
|
.PHONY: benchmarks
|
||||||
benchmarks: SUMMARYFLAGS+=-Si
|
benchmarks: SUMMARYFLAGS+=-Si
|
||||||
benchmarks: SHELL=/bin/bash
|
|
||||||
benchmarks: $(BENCH_CSV)
|
benchmarks: $(BENCH_CSV)
|
||||||
$(strip ./scripts/csv.py \
|
$(strip ./scripts/csv.py \
|
||||||
<(./scripts/csv.py $^ \
|
<(./scripts/csv.py $^ \
|
||||||
@@ -601,7 +598,6 @@ benchmarks-csv: $(BUILDDIR)/lfs3.bench.csv
|
|||||||
|
|
||||||
## Compare bench results against a previous run
|
## Compare bench results against a previous run
|
||||||
.PHONY: benchmarks-diff
|
.PHONY: benchmarks-diff
|
||||||
benchmarks-diff: SHELL=/bin/bash
|
|
||||||
benchmarks-diff: $(BENCH_CSV)
|
benchmarks-diff: $(BENCH_CSV)
|
||||||
$(strip ./scripts/csv.py \
|
$(strip ./scripts/csv.py \
|
||||||
<(./scripts/csv.py $^ \
|
<(./scripts/csv.py $^ \
|
||||||
@@ -623,7 +619,6 @@ benchmarks-diff: $(BENCH_CSV)
|
|||||||
## Show which tests took the most time
|
## Show which tests took the most time
|
||||||
.PHONY: benchmarks-bottlenecks
|
.PHONY: benchmarks-bottlenecks
|
||||||
benchmarks-bottlenecks: SUMMARYFLAGS+=-Sruntime
|
benchmarks-bottlenecks: SUMMARYFLAGS+=-Sruntime
|
||||||
benchmarks-bottlenecks: SHELL=/bin/bash
|
|
||||||
benchmarks-bottlenecks: $(BENCH_CSV)
|
benchmarks-bottlenecks: $(BENCH_CSV)
|
||||||
$(strip ./scripts/csv.py \
|
$(strip ./scripts/csv.py \
|
||||||
<(./scripts/csv.py $^ \
|
<(./scripts/csv.py $^ \
|
||||||
|
|||||||
Reference in New Issue
Block a user