llvm: fix deprecated MacOS.clang_version usage
This commit is contained in:
parent
e82c528ee6
commit
da291e8b3a
1 changed files with 2 additions and 2 deletions
|
@ -361,7 +361,7 @@ class Llvm < Formula
|
|||
|
||||
# Testing Command Line Tools
|
||||
if MacOS::CLT.installed?
|
||||
libclangclt = Dir["/Library/Developer/CommandLineTools/usr/lib/clang/#{MacOS.clang_version}*"].last { |f| File.directory? f }
|
||||
libclangclt = Dir["/Library/Developer/CommandLineTools/usr/lib/clang/#{DevelopmentTools.clang_version}*"].last { |f| File.directory? f }
|
||||
|
||||
system "#{bin}/clang++", "-v", "-nostdinc",
|
||||
"-I/Library/Developer/CommandLineTools/usr/include/c++/v1",
|
||||
|
@ -379,7 +379,7 @@ class Llvm < Formula
|
|||
|
||||
# Testing Xcode
|
||||
if MacOS::Xcode.installed?
|
||||
libclangxc = Dir["#{MacOS::Xcode.toolchain_path}/usr/lib/clang/#{MacOS.clang_version}*"].last { |f| File.directory? f }
|
||||
libclangxc = Dir["#{MacOS::Xcode.toolchain_path}/usr/lib/clang/#{DevelopmentTools.clang_version}*"].last { |f| File.directory? f }
|
||||
|
||||
system "#{bin}/clang++", "-v", "-nostdinc",
|
||||
"-I#{MacOS::Xcode.toolchain_path}/usr/include/c++/v1",
|
||||
|
|
Loading…
Reference in a new issue