Update terminalimageviewer.rb
Full credit to @cxwx !
This commit is contained in:
parent
9566005db8
commit
60a3dc734f
1 changed files with 5 additions and 4 deletions
|
@ -11,15 +11,16 @@ class Terminalimageviewer < Formula
|
||||||
cd "src/main/cpp" do
|
cd "src/main/cpp" do
|
||||||
system "make"
|
system "make"
|
||||||
if OS.mac?
|
if OS.mac?
|
||||||
# No expermimental/filesystem.h on mac
|
# No expermimental/filesystem.h on mac.
|
||||||
system "#{Formula["gcc"].opt_bin}/gcc-#{Formula["gcc"].version_suffix}", "-std=c++17",
|
system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "-std=c++17",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-fpermissive",
|
"-fpermissive",
|
||||||
"-fexceptions",
|
"-fexceptions",
|
||||||
"-O2", "-c",
|
"-O2", "-c",
|
||||||
|
"-L/usr/local/opt/gcc/lib/gcc/10/",
|
||||||
"tiv.cpp", "-o", "tiv.o"
|
"tiv.cpp", "-o", "tiv.o"
|
||||||
system "#{Formula["gcc"].opt_bin}/gcc-#{Formula["gcc"].version_suffix}", "tiv.o", "-o",
|
system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "tiv.o", "-o",
|
||||||
"tiv", "-lstdc++fs",
|
"tiv", "-L/usr/local/opt/gcc/lib/gcc/10/",
|
||||||
"-pthread", "-s"
|
"-pthread", "-s"
|
||||||
else
|
else
|
||||||
system "make"
|
system "make"
|
||||||
|
|
Loading…
Reference in a new issue