improve macOS-compatibility by being more awful

This commit is contained in:
Ralf Jung 2019-05-27 15:02:17 +02:00
parent cf96396fcc
commit 7f3a298f6d

3
miri
View file

@ -1,6 +1,7 @@
#!/bin/sh
set -e
TARGET=$(rustc --print target-spec-json -Z unstable-options | jq '.["llvm-target"]' -r)
# I'd love to use `jq` for parsing the JSON properly, but macOS is totally underequipped for this kind of work.
TARGET=$(rustc --print target-spec-json -Z unstable-options | grep llvm-target | cut -d '"' -f 4)
SYSROOT=$(rustc --print sysroot)
# We set the rpath so that Miri finds the private rustc libraries it needs.
# We enable debug-assertions to get tracing.