rust: fix build on 10.13 with APFS (#22796)
This commit is contained in:
parent
6bd6321f64
commit
80952c8904
1 changed files with 9 additions and 0 deletions
|
@ -57,6 +57,15 @@ class Rust < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
# Remove for > 1.23.0; fix build failure on APFS
|
||||
# See https://github.com/rust-lang/cargo/pull/4739
|
||||
if build.stable? && MacOS.version >= :high_sierra
|
||||
inreplace "src/stage0.txt" do |s|
|
||||
s.gsub! "date: 2017-11-20", "date: 2017-11-23"
|
||||
s.gsub! "rustc: 1.22.0", "rustc: 1.22.1"
|
||||
end
|
||||
end
|
||||
|
||||
# Fix build failure for compiler_builtins "error: invalid deployment target
|
||||
# for -stdlib=libc++ (requires OS X 10.7 or later)"
|
||||
ENV["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version
|
||||
|
|
Loading…
Reference in a new issue