From 224c2d1e308d5bc9ae836ad30398f1af87caee08 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Tue, 20 Jul 2021 21:43:37 +0800 Subject: [PATCH] Update tiv.rb Still needs style checks. --- tiv.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tiv.rb b/tiv.rb index b94959a..72ad7be 100644 --- a/tiv.rb +++ b/tiv.rb @@ -9,7 +9,13 @@ class Tiv < Formula def install cd "src/main/cpp" do - system "make" + 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 end