aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project.janet13
1 files changed, 7 insertions, 6 deletions
diff --git a/project.janet b/project.janet
index e4d530e..f0c7f83 100644
--- a/project.janet
+++ b/project.janet
@@ -35,12 +35,13 @@
(fn pkgconf
[defval & args]
(if bin
- (->> (-> bin
- (execute ;args)
- (get :out)
- string/trim)
- (string/split " ")
- (filter |(< 0 (length $))))
+ (or (-?>> (-?> bin
+ (execute ;args)
+ (get :out)
+ string/trim)
+ (string/split " ")
+ (filter |(< 0 (length $))))
+ defval)
defval))))
(def {:cflags curl-cflags
:ldflags curl-ldflags}