[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#69476] [PATCH 7/8] guix: cmake-build-system: Handle unknown systems
From: |
Jean-Pierre De Jesus DIAZ |
Subject: |
[bug#69476] [PATCH 7/8] guix: cmake-build-system: Handle unknown systems. |
Date: |
Thu, 29 Feb 2024 16:20:49 +0100 |
* guix/build/cmake-build-system.scm (configure): Use Generic as the
system name if the system is unknown.
Change-Id: Ifd4a618ef67eb420b02d48f05291571aea44e46e
---
guix/build/cmake-build-system.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/guix/build/cmake-build-system.scm
b/guix/build/cmake-build-system.scm
index d1ff5071be..0774124c95 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -69,9 +69,13 @@ (define* (configure #:key outputs (configure-flags '())
(out-of-source? #t)
target "-gcc")
(string-append "-DCMAKE_CXX_COMPILER="
target "-g++")
- (if (string-contains target "mingw")
- "-DCMAKE_SYSTEM_NAME=Windows"
- "-DCMAKE_SYSTEM_NAME=Linux"))
+ (cond
+ ((string-contains target "mingw")
+ "-DCMAKE_SYSTEM_NAME=Windows")
+ ((string-contains target "linux")
+ "-DCMAKE_SYSTEM_NAME=Linux")
+ (else
+ "-DCMAKE_SYSTEM_NAME=Generic")))
'())
,@configure-flags)))
(format #t "running 'cmake' with arguments ~s~%" args)
--
2.41.0
- [bug#69476] [PATCH 0/8] guix: Add xtensa-ath9k-elf platform., Jean-Pierre De Jesus DIAZ, 2024/02/29
- [bug#69476] [PATCH 1/8] doc: Add documentation for x86_64-linux-gnux32., Jean-Pierre De Jesus DIAZ, 2024/02/29
- [bug#69476] [PATCH 6/8] gnu: cross-binutils: Use binutils-2.33 for ath9k., Jean-Pierre De Jesus DIAZ, 2024/02/29
- [bug#69476] [PATCH 7/8] guix: cmake-build-system: Handle unknown systems.,
Jean-Pierre De Jesus DIAZ <=
- [bug#69476] [PATCH 3/8] gnu: ath9k-htc-firmware: Remove binary blobs., Jean-Pierre De Jesus DIAZ, 2024/02/29
- [bug#69476] [PATCH 4/8] gnu: ath9k-htc-firmware: Allow using other targets., Jean-Pierre De Jesus DIAZ, 2024/02/29
- [bug#69476] [PATCH 5/8] gnu: ath9k-htc-firmware: Use xtensa-ath9k-elf., Jean-Pierre De Jesus DIAZ, 2024/02/29
- [bug#69476] [PATCH 8/8] gnu: ath9k-htc-firmware: Split package., Jean-Pierre De Jesus DIAZ, 2024/02/29
- [bug#69476] [PATCH 2/8] guix: Add xtensa-ath9k-elf platform., Jean-Pierre De Jesus DIAZ, 2024/02/29