Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Formula/l/llgo.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Llgo < Formula
desc "Go compiler based on LLVM integrate with the C ecosystem and Python"
homepage "https://github.com/goplus/llgo"
url "https://github.com/goplus/llgo/archive/refs/tags/v0.11.0.tar.gz"
sha256 "f7b55b0d91527c11adbfde4e95f78ab8238e8a35066cd8663882074ac18f2b6b"
url "https://github.com/goplus/llgo/archive/refs/tags/v0.11.1.tar.gz"
sha256 "abbd9b8b16c1f5273db86a6970c0ffa333b9aec7d5644d296a10686564822f1c"
license "Apache-2.0"

livecheck do
Expand Down Expand Up @@ -65,9 +65,12 @@
script_env = { PATH: "#{path_deps.join(":")}:$PATH" }

if OS.linux?
libgc = find_dep("bdw-gc")
libunwind = find_dep("libunwind")
script_env[:CFLAGS] = "-I#{libunwind.opt_include} $CFLAGS"
script_env[:LDFLAGS] = "-L#{libunwind.opt_lib} -rpath #{libunwind.opt_lib} $LDFLAGS"
script_env[:CFLAGS] = "-I#{libunwind.opt_include} -I#{libgc.opt_include} $CFLAGS"
script_env[:LDFLAGS] = "-L#{libunwind.opt_lib} -L#{libgc.opt_lib} " \
"-Wl,-rpath,#{libgc.opt_lib} " \
"-Wl,-rpath,#{libunwind.opt_lib} $LDFLAGS"
end

(libexec/"bin").children.each do |f|
Expand All @@ -78,7 +81,7 @@
end
end

test do

Check failure on line 84 in Formula/l/llgo.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew test --verbose llgo` failed on macOS Sonoma (14)!

/usr/local/Homebrew/Library/Homebrew/test.rb:54:in '<main>'

Check failure on line 84 in Formula/l/llgo.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew test --verbose llgo` failed on macOS Ventura (13)!

/usr/local/Homebrew/Library/Homebrew/test.rb:54:in '<main>'
goos = shell_output("go env GOOS").chomp
goarch = shell_output("go env GOARCH").chomp
assert_equal "llgo v#{version} #{goos}/#{goarch}", shell_output("#{bin}/llgo version").chomp
Expand Down
Loading