summaryrefslogtreecommitdiff
path: root/guix/build/dune-build-system.scm
diff options
context:
space:
mode:
authorpukkamustard <pukkamustard@posteo.net>2021-09-07 13:41:12 +0200
committerJulien Lepiller <julien@lepiller.eu>2021-09-08 13:39:27 +0200
commitf8f94cc5446753b37ab3ddd23e21919efd006769 (patch)
treec069489b0e3c8b3354b435373bb875c408b5efc3 /guix/build/dune-build-system.scm
parent5c5e9d4e50af20042947b6b55e462a25b9d8cfc7 (diff)
downloadguix-patches-f8f94cc5446753b37ab3ddd23e21919efd006769.tar
guix-patches-f8f94cc5446753b37ab3ddd23e21919efd006769.tar.gz
guix: dune-build-system: Put dune into a reproducible release mode.
* guix/build/dune-build-system.scm (build,check): Replace the profile parameter with the appropriate release flags. * guix/build-system/dune.scm: Remove the profile parameter. * doc/guix.texi: Remove paragraph on profile parameter. Signed-off-by: Julien Lepiller <julien@lepiller.eu>
Diffstat (limited to 'guix/build/dune-build-system.scm')
-rw-r--r--guix/build/dune-build-system.scm15
1 files changed, 9 insertions, 6 deletions
diff --git a/guix/build/dune-build-system.scm b/guix/build/dune-build-system.scm
index 6a0c2593ac..e9ccc71057 100644
--- a/guix/build/dune-build-system.scm
+++ b/guix/build/dune-build-system.scm
@@ -32,23 +32,26 @@
;; Code:
(define* (build #:key (build-flags '()) (jbuild? #f)
- (use-make? #f) (package #f)
- (profile "release") #:allow-other-keys)
+ (use-make? #f) (package #f) (dune-release-flags '())
+ #:allow-other-keys)
"Build the given package."
(let ((program (if jbuild? "jbuilder" "dune")))
(apply invoke program "build" "@install"
- (append (if package (list "-p" package) '())
- `("--profile" ,profile)
+ (append (if package (list "-p" package)
+ dune-release-flags)
build-flags)))
#t)
(define* (check #:key (test-flags '()) (test-target "test") tests?
- (jbuild? #f) (package #f) #:allow-other-keys)
+ (jbuild? #f) (package #f) (dune-release-flags '())
+ #:allow-other-keys)
"Test the given package."
(when tests?
(let ((program (if jbuild? "jbuilder" "dune")))
(apply invoke program "runtest" test-target
- (append (if package (list "-p" package) '()) test-flags))))
+ (append (if package (list "-p" package)
+ dune-release-flags)
+ test-flags))))
#t)
(define* (install #:key outputs (install-target "install") (jbuild? #f)