Skip to content

Commit

Permalink
unrar: fix build when ccache is used
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored and reneeotten committed Nov 15, 2024
1 parent 6aa0ad1 commit 448d5fb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions archivers/unrar/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ worksrcdir ${name}

use_configure no

variant universal {}

if {[tbool configure.ccache]} {
configure.cxx "ccache ${configure.cxx}"
}
variant universal {}

# error: unknown type name 'constexpr'
compiler.cxx_standard \
Expand All @@ -44,7 +40,12 @@ configure.cxxflags-append \

# error: invalid cpu feature string for builtin
# uses newer intrinsic functions
compiler.blacklist {*gcc-[3-4].*} {clang < 900}
compiler.blacklist {clang < 900}

# Should go after blacklists.
if {[tbool configure.ccache]} {
configure.cxx "ccache ${configure.cxx}"
}

set cxx_stdlibflags {}
if {[string match *clang* ${configure.cxx}] && ${configure.cxx_stdlib} ne ""} {
Expand Down

0 comments on commit 448d5fb

Please sign in to comment.