diff options
| author | 2023-04-16 18:31:09 -0400 | |
|---|---|---|
| committer | 2023-04-16 18:31:09 -0400 | |
| commit | 0f6523c654358fef558d24cd71660cae9fefbaa6 (patch) | |
| tree | 1d2307197ad7aa133ff65484c28da1ef48e4f03c /project.janet | |
| parent | meta: test for ability to build statically (diff) | |
meta: fix compiles?
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) |
