File tree 1 file changed +9
-1
lines changed
src/test/run-make-fulldeps/pgo-use
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ ifdef IS_MSVC
23
23
COMMON_FLAGS+ = -Cpanic=abort
24
24
endif
25
25
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
+
26
34
all :
27
35
# Compile the test program with instrumentation
28
36
$(RUSTC ) $(COMMON_FLAGS ) -Z pgo-gen=" $( TMPDIR) " main.rs
40
48
# line with the function name before the line with the function attributes.
41
49
# FileCheck only supports checking that something matches on the next line,
42
50
# 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