guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/30: gnu: spdlog: Fix cross-compilation.


From: guix-commits
Subject: 11/30: gnu: spdlog: Fix cross-compilation.
Date: Tue, 19 Mar 2024 07:12:06 -0400 (EDT)

iyzsong pushed a commit to branch master
in repository guix.

commit 321ddfe1db1bad1ff700fb36fe783b31e28d031c
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Sat Mar 2 18:06:55 2024 +0800

    gnu: spdlog: Fix cross-compilation.
    
    * gnu/packages/logging.scm (spdlog)[arguments]<#:configure-flags>: when
    cross-compilation, don't add -DSPDLOG_BUILD_TESTS=ON.
    
    Change-Id: I90911c548c3f138ff40bff4b086f6102b717acf2
    Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
---
 gnu/packages/logging.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/logging.scm b/gnu/packages/logging.scm
index afd602db42..a757c22154 100644
--- a/gnu/packages/logging.scm
+++ b/gnu/packages/logging.scm
@@ -231,7 +231,9 @@ output in multiple windows in a terminal.")
      (list #:configure-flags
            #~(list "-DSPDLOG_BUILD_BENCH=OFF"
                    "-DSPDLOG_BUILD_SHARED=ON"
-                   "-DSPDLOG_BUILD_TESTS=ON")))
+                   #$@(if (%current-target-system)
+                          '()
+                          '("-DSPDLOG_BUILD_TESTS=ON")))))
     (native-inputs (list catch2-3))
     (home-page "https://github.com/gabime/spdlog";)
     (synopsis "Fast C++ logging library")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]