Skip to content

Commit

Permalink
gentoo ebuild added lto USE flag
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
silverqx committed Aug 22, 2024
1 parent d93cdcc commit 652e2a3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ else
KEYWORDS="~amd64"
fi

IUSE="build-drivers disable-thread-local inline-constants mysql mysql-ping +orm postgres +sqlite +tom +tom-cli"
IUSE="build-drivers disable-thread-local inline-constants lto mysql mysql-ping +orm postgres +sqlite +tom +tom-cli"
REQUIRED_USE="
build-drivers? ( || ( mysql ) !postgres !sqlite )
tom-cli? ( tom )
Expand Down Expand Up @@ -66,5 +66,9 @@ src_configure() {
-D BUILD_MYSQL_DRIVER:BOOL=$(usex mysql)
)

use lto && mycmakeargs+=(
-D CMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=ON
)

cmake_src_configure
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ else
KEYWORDS="~amd64"
fi

IUSE="build-drivers disable-thread-local inline-constants mysql mysql-ping +orm postgres +sqlite +tom +tom-cli"
IUSE="build-drivers disable-thread-local inline-constants lto mysql mysql-ping +orm postgres +sqlite +tom +tom-cli"
REQUIRED_USE="
build-drivers? ( || ( mysql ) !postgres !sqlite )
tom-cli? ( tom )
Expand Down Expand Up @@ -66,5 +66,9 @@ src_configure() {
-D BUILD_MYSQL_DRIVER:BOOL=$(usex mysql)
)

use lto && mycmakeargs+=(
-D CMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=ON
)

cmake_src_configure
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ else
KEYWORDS="~amd64"
fi

IUSE="build-drivers disable-thread-local inline-constants mysql mysql-ping +orm postgres +sqlite +tom +tom-cli"
IUSE="build-drivers disable-thread-local inline-constants lto mysql mysql-ping +orm postgres +sqlite +tom +tom-cli"
REQUIRED_USE="
build-drivers? ( || ( mysql ) !postgres !sqlite )
tom-cli? ( tom )
Expand Down Expand Up @@ -66,5 +66,9 @@ src_configure() {
-D BUILD_MYSQL_DRIVER:BOOL=$(usex mysql)
)

use lto && mycmakeargs+=(
-D CMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=ON
)

cmake_src_configure
}

0 comments on commit 652e2a3

Please sign in to comment.