commit:     80e110d0632f59c9478c66f933048a8b81564030
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  9 05:31:08 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec  9 05:31:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80e110d0

sys-devel/mold: fix phase order style

... to match execution order.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/mold/mold-2.35.0.ebuild | 14 ++++++--------
 sys-devel/mold/mold-9999.ebuild   | 14 ++++++--------
 2 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/sys-devel/mold/mold-2.35.0.ebuild 
b/sys-devel/mold/mold-2.35.0.ebuild
index e9cd29a7fe47..d7e4c65e6171 100644
--- a/sys-devel/mold/mold-2.35.0.ebuild
+++ b/sys-devel/mold/mold-2.35.0.ebuild
@@ -83,6 +83,12 @@ src_configure() {
        cmake_src_configure
 }
 
+src_test() {
+       export TEST_CC="$(tc-getCC)" TEST_GCC="$(tc-getCC)" \
+               TEST_CXX="$(tc-getCXX)" TEST_GXX="$(tc-getCXX)"
+       cmake_src_test
+}
+
 src_install() {
        dobin "${BUILD_DIR}"/${PN}
 
@@ -97,11 +103,3 @@ 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
-}

diff --git a/sys-devel/mold/mold-9999.ebuild b/sys-devel/mold/mold-9999.ebuild
index e9cd29a7fe47..d7e4c65e6171 100644
--- a/sys-devel/mold/mold-9999.ebuild
+++ b/sys-devel/mold/mold-9999.ebuild
@@ -83,6 +83,12 @@ src_configure() {
        cmake_src_configure
 }
 
+src_test() {
+       export TEST_CC="$(tc-getCC)" TEST_GCC="$(tc-getCC)" \
+               TEST_CXX="$(tc-getCXX)" TEST_GXX="$(tc-getCXX)"
+       cmake_src_test
+}
+
 src_install() {
        dobin "${BUILD_DIR}"/${PN}
 
@@ -97,11 +103,3 @@ 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
-}

Reply via email to