Skip to content

Commit

Permalink
run test only if LLVM version is >= 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Sep 15, 2018
1 parent d9ccc56 commit c2d34ee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/run-make-fulldeps/emit-stack-sizes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@ all:
exit 0
else
# check that the .stack_sizes section is generated
# this test requires LLVM >= 6.0.0
vers = $(shell llvm-ar -version)
ifneq (,$(findstring version 3,$(vers)))
all:
exit 0
else ifneq (,$(findstring version 4,$(vers)))
all:
exit 0
else ifneq (,$(findstring version 5,$(vers)))
all:
exit 0
else
all:
$(RUSTC) -C opt-level=3 -Z emit-stack-sizes --emit=obj foo.rs
size -A $(TMPDIR)/foo.o | $(CGREP) .stack_sizes
endif
endif

0 comments on commit c2d34ee

Please sign in to comment.