gnu: cppdap: Fix build on riscv64-linux.

* gnu/packages/debug.scm (cppdap)[arguments]: When building for
riscv64-linux add a configure-flag to link with latomic.

Change-Id: I1ff388ac5551270b8c12fa6a62231a86200e024a
This commit is contained in:
Efraim Flashner 2025-05-30 11:15:54 +03:00 committed by John Kehayias
parent d0c1c5b9ac
commit c072428ed7
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015, 2016, 2017, 2019-2022 Eric Bavier <bavier@posteo.net>
;;; Copyright © 2016, 2017, 2018, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016-2018, 2020, 2021, 2025 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2019 Rutger Helling <rhelling@mykolab.com>
;;; Copyright © 2019 Pkill -9 <pkill9@runbox.com>
@ -220,7 +220,10 @@ tools that process C/C++ code.")
;; Only one of the following three can be enabled at the same time
;; "-DCPPDAP_USE_EXTERNAL_RAPIDJSON_PACKAGE=ON"
;; "-DCPPDAP_USE_EXTERNAL_JSONCPP_PACKAGE=ON"
"-DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON")))
"-DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON"
#$@(if (target-riscv64?)
'("-DCMAKE_EXE_LINKER_FLAGS=-latomic")
'()))))
(native-inputs
(list googletest))
;; see lib/cmake/cppdap/cppdapConfig.cmake