Skip to content

Commit dc4bd90

Browse files
committed
Tweak to Makefile to overcome MacOS make corruption bug
1 parent f101fd8 commit dc4bd90

File tree

1 file changed

+4
-10
lines changed
  • src/test/run-make-fulldeps/coverage-reports

1 file changed

+4
-10
lines changed

Diff for: src/test/run-make-fulldeps/coverage-reports/Makefile

+4-10
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,14 @@ endif
8787
%: $(SOURCEDIR)/lib/%.rs
8888
# Compile the test library with coverage instrumentation
8989
$(RUSTC) $(SOURCEDIR)/lib/$@.rs \
90-
$$( grep -q '^\/\/ require-rust-edition-2018' $(SOURCEDIR)/lib/$@.rs && \
91-
echo "--edition=2018" \
92-
) \
93-
--crate-type rlib \
94-
-Zinstrument-coverage
90+
$$( grep -q '^\/\/ require-rust-edition-2018' $(SOURCEDIR)/lib/$@.rs && echo "--edition=2018" ) \
91+
--crate-type rlib -Zinstrument-coverage
9592

9693
%: $(SOURCEDIR)/%.rs
9794
# Compile the test program with coverage instrumentation
9895
$(RUSTC) $(SOURCEDIR)/$@.rs \
99-
$$( grep -q '^\/\/ require-rust-edition-2018' $(SOURCEDIR)/$@.rs && \
100-
echo "--edition=2018" \
101-
) \
102-
-L "$(TMPDIR)" \
103-
-Zinstrument-coverage
96+
$$( grep -q '^\/\/ require-rust-edition-2018' $(SOURCEDIR)/$@.rs && echo "--edition=2018" ) \
97+
-L "$(TMPDIR)" -Zinstrument-coverage
10498

10599
# Run it in order to generate some profiling data,
106100
# with `LLVM_PROFILE_FILE=<profdata_file>` environment variable set to

0 commit comments

Comments
 (0)