Skip to content

Commit

Permalink
net-ftp/filezilla: Replace C++14 check with simpler test-flag-CXX
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.20_p134
  • Loading branch information
floppym committed Aug 20, 2015
1 parent 62c5566 commit 555f658
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions net-ftp/filezilla/filezilla-3.13.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,13 @@ DEPEND="${RDEPEND}
S="${WORKDIR}"/${PN}-${MY_PV}

pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
echo 'int main() {return 0;}' > "${T}"/test.cxx || die
ebegin "Trying to build a C++14 test program"
if ! $(tc-getCXX) -std=c++14 -o /dev/null "${T}"/test.cxx; then
if [[ ${MERGE_TYPE} != binary ]]; then
if ! test-flag-CXX -std=c++14; then
eerror "${P} requires C++14-capable C++ compiler. Your current compiler"
eerror "does not seem to support -std=c++14 option. Please upgrade your compiler"
eerror "to gcc-4.9 or an equivalent version supporting C++14."
die "Currently active compiler does not support -std=c++14"
fi
eend ${?}
fi
}

Expand Down

0 comments on commit 555f658

Please sign in to comment.