File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/test/run-make-fulldeps/pgo-use Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ ifdef IS_MSVC
2323COMMON_FLAGS+ = -Cpanic=abort
2424endif
2525
26+ ifeq ($(UNAME ) ,Darwin)
27+ # macOS does not have the `tac` command, but `tail -r` does the same thing
28+ TAC := tail -r
29+ else
30+ # some other platforms don't support the `-r` flag for `tail`, so use `tac`
31+ TAC := tac
32+ endif
33+
2634all :
2735 # Compile the test program with instrumentation
2836 $(RUSTC ) $(COMMON_FLAGS ) -Z pgo-gen=" $( TMPDIR) " main.rs
4048 # line with the function name before the line with the function attributes.
4149 # FileCheck only supports checking that something matches on the next line,
4250 # but not if something matches on the previous line.
43- tac " $( TMPDIR) " /main.ll | " $( LLVM_FILECHECK) " filecheck-patterns.txt
51+ $( TAC ) " $( TMPDIR) " /main.ll | " $( LLVM_FILECHECK) " filecheck-patterns.txt
You can’t perform that action at this time.
0 commit comments