Skip to content

Commit

Permalink
games-strategy/s25rttr: Allow tests to run with GCC as well as clang
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: James Le Cuirot <[email protected]>
  • Loading branch information
chewi committed Apr 19, 2020
1 parent bedc3a6 commit 482ad03
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions games-strategy/s25rttr/s25rttr-0.9.0_pre20200418.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=7

inherit desktop xdg cmake
inherit desktop toolchain-funcs xdg cmake

DESCRIPTION="Open source remake of The Settlers II: Gold Edition (needs original data files)"
HOMEPAGE="https://www.siedler25.org/"
Expand Down Expand Up @@ -97,10 +97,9 @@ src_configure() {
-DRTTR_VERSION="${PV}"
)

if use test ; then
einfo "Forcing clang due to USE=test."
CC=${CHOST}-clang
CXX=${CHOST}-clang++
if use test && tc-is-gcc; then
# Work around libasan and libsandbox both wanting to be first.
append-ldflags -static-libasan
fi

cmake_src_configure
Expand Down

0 comments on commit 482ad03

Please sign in to comment.