Update terminalimageviewer.rb

This commit is contained in:
Aaron Liu 2021-05-22 11:14:28 +08:00 committed by Stefan Haustein
parent e5ef996c44
commit 9123297951

View file

@ -12,15 +12,15 @@ class Terminalimageviewer < Formula
system "make" system "make"
if OS.mac? if OS.mac?
# No expermimental/filesystem.h on mac. # No expermimental/filesystem.h on mac.
system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "-std=c++17", system "/usr/local/bin/g++-#{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/", "-L/usr/local/opt/gcc/lib/gcc/11/",
"tiv.cpp", "-o", "tiv.o" "tiv.cpp", "-o", "tiv.o"
system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "tiv.o", "-o", system "/usr/local/bin/g++-#{Formula["gcc"].version_suffix}", "tiv.o", "-o",
"tiv", "-L/usr/local/opt/gcc/lib/gcc/10/", "tiv", "-L/usr/local/opt/gcc/lib/gcc/11/",
"-pthread", "-s" "-pthread", "-s"
else else
system "make" system "make"