rust: move to OpenSSL 1.1

This commit is contained in:
FX Coudert 2019-09-04 17:03:04 +02:00
parent f292e5998c
commit ccdcab0b36

View file

@ -1,6 +1,7 @@
class Rust < Formula
desc "Safe, concurrent, practical language"
homepage "https://www.rust-lang.org/"
revision 1
stable do
url "https://static.rust-lang.org/dist/rustc-1.37.0-src.tar.gz"
@ -41,7 +42,7 @@ class Rust < Formula
depends_on "cmake" => :build
depends_on "libssh2"
depends_on "openssl"
depends_on "openssl@1.1"
depends_on "pkg-config"
resource "cargobootstrap" do
@ -57,7 +58,7 @@ class Rust < Formula
# Ensure that the `openssl` crate picks up the intended library.
# https://crates.io/crates/openssl#manual-configuration
ENV["OPENSSL_DIR"] = Formula["openssl"].opt_prefix
ENV["OPENSSL_DIR"] = Formula["openssl@1.1"].opt_prefix
# Fix build failure for cmake v0.1.24 "error: internal compiler error:
# src/librustc/ty/subst.rs:127: impossible case reached" on 10.11, and for