# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit git-r3 autotools

DESCRIPTION="System to simplify real-world deployment of feedback-directed optimization"
HOMEPAGE="https://gcc.gnu.org/wiki/AutoFDO"
EGIT_REPO_URI="https://github.com/kim-phillips-arm/autofdo.git"
#EGIT_COMMIT=""
EGIT_BRANCH="fixissue55try3"

LICENSE="Apache-2.0"
SLOT="0"

DEPEND=">=sys-devel/llvm-5.0.1:*
	sys-devel/gcc:*"

RDEPEND="${DEPEND}"

src_prepare(){
	eautoreconf
	eapply_user
}

src_configure(){
	econf --with-llvm
}