llvm@5: fix Perl escaping
This commit is contained in:
parent
f45ccdf258
commit
c82070940a
1 changed files with 6 additions and 2 deletions
|
@ -116,9 +116,13 @@ class LlvmAT5 < Formula
|
|||
system "make", "install-xcode-toolchain"
|
||||
end
|
||||
|
||||
(share/"clang/tools").install Dir["tools/clang/tools/scan-{build,view}"]
|
||||
(share/"cmake").install "cmake/modules"
|
||||
inreplace "#{share}/clang/tools/scan-build/bin/scan-build", "$RealBin/bin/clang", "#{bin}/clang"
|
||||
(share/"clang/tools").install Dir["tools/clang/tools/scan-{build,view}"]
|
||||
|
||||
# scan-build is in Perl, so the @ in our path needs to be escaped
|
||||
inreplace "#{share}/clang/tools/scan-build/bin/scan-build",
|
||||
"$RealBin/bin/clang", "#{bin}/clang".gsub("@", "\\@")
|
||||
|
||||
bin.install_symlink share/"clang/tools/scan-build/bin/scan-build", share/"clang/tools/scan-view/bin/scan-view"
|
||||
man1.install_symlink share/"clang/tools/scan-build/man/scan-build.1"
|
||||
|
||||
|
|
Loading…
Reference in a new issue