mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
sys-devel/mold: set TEST_$TOOL env for tests
Use the configured compiler instead of invoking cc directly when running tests. Closes: https://bugs.gentoo.org/918967 Signed-off-by: Matthew Smith <matthew@gentoo.org>
This commit is contained in:
@@ -93,3 +93,11 @@ src_install() {
|
||||
dosym ${PN} /usr/bin/ld64.${PN}
|
||||
dosym -r /usr/bin/${PN} /usr/libexec/${PN}/ld
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export TEST_CC="$(tc-getCC)" \
|
||||
TEST_GCC="$(tc-getCC)" \
|
||||
TEST_CXX="$(tc-getCXX)" \
|
||||
TEST_GXX="$(tc-getCXX)"
|
||||
cmake_src_test
|
||||
}
|
||||
|
||||
@@ -93,3 +93,11 @@ src_install() {
|
||||
dosym ${PN} /usr/bin/ld64.${PN}
|
||||
dosym -r /usr/bin/${PN} /usr/libexec/${PN}/ld
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export TEST_CC="$(tc-getCC)" \
|
||||
TEST_GCC="$(tc-getCC)" \
|
||||
TEST_CXX="$(tc-getCXX)" \
|
||||
TEST_GXX="$(tc-getCXX)"
|
||||
cmake_src_test
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user