Skip to content

Commit 5362752

Browse files
committed
run test only if LLVM version is >= 6.0.0
1 parent f5bc678 commit 5362752

File tree

1 file changed

+13
-0
lines changed
  • src/test/run-make-fulldeps/emit-stack-sizes

1 file changed

+13
-0
lines changed

src/test/run-make-fulldeps/emit-stack-sizes/Makefile

+13
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,20 @@ all:
66
exit 0
77
else
88
# check that the .stack_sizes section is generated
9+
# this test requires LLVM >= 6.0.0
10+
vers = $(shell llvm-ar -version)
11+
ifneq (,$(findstring version 3,$(vers)))
12+
all:
13+
exit 0
14+
else ifneq (,$(findstring version 4,$(vers)))
15+
all:
16+
exit 0
17+
else ifneq (,$(findstring version 5,$(vers)))
18+
all:
19+
exit 0
20+
else
921
all:
1022
$(RUSTC) -C opt-level=3 -Z emit-stack-sizes --emit=obj foo.rs
1123
size -A $(TMPDIR)/foo.o | $(CGREP) .stack_sizes
1224
endif
25+
endif

0 commit comments

Comments
 (0)