Archived
1
0
Fork 0

build: cargo-build-system: Find more pregenerated files.

* guix/build/cargo-build-system.scm (check-for-pregenerated-files): Also
search for MacOS dynamic libraries.
This commit is contained in:
Efraim Flashner 2023-10-08 20:09:17 +03:00
parent 5fcd7836d6
commit 0058ed81b0
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -114,7 +114,7 @@ Cargo.toml file present at its root."
(define* (check-for-pregenerated-files #:rest _) (define* (check-for-pregenerated-files #:rest _)
"Check the source code for files which are known to generally be bundled "Check the source code for files which are known to generally be bundled
libraries or executables." libraries or executables."
(let ((pregenerated-files (find-files "." "\\.(a|dll|exe|lib)$"))) (let ((pregenerated-files (find-files "." "\\.(a|dll|dylib|exe|lib)$")))
(when (not (null-list? pregenerated-files)) (when (not (null-list? pregenerated-files))
(error "Possible pre-generated files found:" pregenerated-files)))) (error "Possible pre-generated files found:" pregenerated-files))))