update to have the stdlib
This commit is contained in:
1 parent
f4547fe18b
commit
37911db0e8
1 file changed
+12
-5
+12
-5
@@ -15,14 +15,21 @@ class Argon < Formula
|
||||
|
||||
def install
|
||||
system "cmake", "-S", ".", "-B", "build",
|
||||
"-DCMAKE_PREFIX_PATH=#{Formula["gmp"].opt_prefix};#{Formula["bdw-gc"].opt_prefix};#{Formula["mpfr"].opt_prefix}",
|
||||
*std_cmake_args
|
||||
"-DCMAKE_PREFIX_PATH=#{Formula["gmp"].opt_prefix};#{Formula["bdw-gc"].opt_prefix};#{Formula["mpfr"].opt_prefix}",
|
||||
*std_cmake_args
|
||||
system "cmake", "--build", "build"
|
||||
system "cmake", "--install", "build", "--prefix", prefix
|
||||
system "cmake", "--install", "build", "--prefix", prefix/"chloride"
|
||||
|
||||
system "bash", "build_stdlib.sh"
|
||||
(prefix/"chloride").install "stdlib"
|
||||
|
||||
(bin/"argon").write <<~SH
|
||||
#!/bin/bash
|
||||
exec "#{prefix}/chloride/bin/argon" "$@"
|
||||
SH
|
||||
end
|
||||
|
||||
test do
|
||||
# assert_match "hello world", shell_output("echo \"term.log('hello world')\" | #{bin}/openargon")
|
||||
system "#{bin}/openargon", "--version"
|
||||
system "#{bin}/argon", "--version"
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user