diff options
Diffstat (limited to 'project.janet')
| -rw-r--r-- | project.janet | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/project.janet b/project.janet index 643d00d..b3cfe27 100644 --- a/project.janet +++ b/project.janet @@ -24,9 +24,10 @@ [& flags] (let [[inr inw] (os/pipe) [_ out] (os/pipe) - [_ err] (os/pipe) - _ (:write inw "int main(){}")] - (zero? (os/execute ["cc" "-" "-xc" "-o/dev/null" ;flags] + [_ err] (os/pipe)] + (:write inw "int main(){}") + (:close inw) + (zero? (os/execute ["cc" "-xc" "-" "-o/dev/null" ;flags] :p {:err err :in inr :out out})))) (def pkgconf (let [bin? |(if ((execute $) :status) $ false) |
