sccache: use `cargo install --prefix`
parent
4a756b6dbc
commit
1247413d69
|
@ -18,8 +18,7 @@ class Sccache < Formula
|
||||||
ENV["OPENSSL_INCLUDE_DIR"] = Formula["openssl"].opt_include
|
ENV["OPENSSL_INCLUDE_DIR"] = Formula["openssl"].opt_include
|
||||||
ENV["OPENSSL_LIB_DIR"] = Formula["openssl"].opt_lib
|
ENV["OPENSSL_LIB_DIR"] = Formula["openssl"].opt_lib
|
||||||
|
|
||||||
system "cargo", "build", "--release", "--features", "all"
|
system "cargo", "install", "--root", prefix, "--features", "all"
|
||||||
bin.install "target/release/sccache"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
Loading…
Reference in New Issue