Update tiv.rb
Still needs style checks.
This commit is contained in:
parent
380cd0a8c3
commit
224c2d1e30
1 changed files with 7 additions and 1 deletions
6
tiv.rb
6
tiv.rb
|
@ -9,6 +9,12 @@ class Tiv < Formula
|
|||
|
||||
def install
|
||||
cd "src/main/cpp" do
|
||||
if OS.mac?
|
||||
system "c++", "-std=c++17", "-Wall", "-fpermissive", "-fexceptions", "-O2",
|
||||
"-c", "tiv.cpp", "-o", "tiv.o"
|
||||
system "c++", "tiv.o", "-o", "tiv", "-L/usr/local/opt/gcc/lib/gcc/11/", "-pthread",
|
||||
"-s"
|
||||
else
|
||||
system "make"
|
||||
bin.install "tiv"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue