guix-commits
[Top][All Lists]
Advanced

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

01/01: build: dub-build-system: Don't use "dub run" at all.


From: Danny Milosavljevic
Subject: 01/01: build: dub-build-system: Don't use "dub run" at all.
Date: Tue, 14 Feb 2017 04:18:48 -0500 (EST)

dannym pushed a commit to branch master
in repository guix.

commit 80345600faae388f508822818adfc990b1ebac66
Author: Danny Milosavljevic <address@hidden>
Date:   Mon Feb 13 14:20:03 2017 +0100

    build: dub-build-system: Don't use "dub run" at all.
    
    It doesn't make sense to run non-test executables (which is what "dub run"
    would do).
    
    The "check" function already invokes "dub test" and that's enough.
    
    * guix/build/dub-build-system.scm (build): Remove "dub run" invocation.
---
 guix/build/dub-build-system.scm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/guix/build/dub-build-system.scm b/guix/build/dub-build-system.scm
index 7c7cd88..b2cb02e 100644
--- a/guix/build/dub-build-system.scm
+++ b/guix/build/dub-build-system.scm
@@ -91,9 +91,7 @@
           (grep* "sourceLibrary" "dub.sdl") ; note: format is different!
           (grep* "sourceLibrary" "dub.json"))
     #t
-    (let ((status (zero? (apply system* `("dub" "build" ,@dub-build-flags)))))
-      (system* "dub" "run") ; might fail for "targetType": "library"
-      status)))
+    (zero? (apply system* `("dub" "build" ,@dub-build-flags)))))
 
 (define* (check #:key tests? #:allow-other-keys)
   (if tests?



reply via email to

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