]> git.lizzy.rs Git - rust.git/commitdiff
use `rustc -Vv` in the run-make test
authorJorge Aparicio <jorge@japaric.io>
Sun, 16 Sep 2018 19:29:57 +0000 (21:29 +0200)
committerJorge Aparicio <jorge@japaric.io>
Wed, 26 Sep 2018 13:21:26 +0000 (15:21 +0200)
src/test/run-make-fulldeps/emit-stack-sizes/Makefile

index efe15f89c816b52ec44d28b0bcf190bc2176a42c..6ed9b6c4314c60202fcba040fdd029dd9764c07d 100644 (file)
@@ -7,14 +7,14 @@ all:
 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)))
+vers = $(shell $(RUSTC) -Vv)
+ifneq (,$(findstring LLVM version: 3,$(vers)))
 all:
        exit 0
-else ifneq (,$(findstring version 4,$(vers)))
+else ifneq (,$(findstring LLVM version: 4,$(vers)))
 all:
        exit 0
-else ifneq (,$(findstring version 5,$(vers)))
+else ifneq (,$(findstring LLVM version: 5,$(vers)))
 all:
        exit 0
 else