mirror of
https://github.com/idris-lang/Idris2.git
synced 2025-01-03 00:55:00 +03:00
Merge pull request #103 from keram/gambit-blodwen-os
Define blodwen-os in Gambit support.scm
This commit is contained in:
commit
7be54ef849
@ -1,3 +1,12 @@
|
||||
;; Inspired by:
|
||||
;; https://github.com/gambit/gambit/blob/master/gsc/_t-x86.scm#L1106 #L1160
|
||||
(define (blodwen-os)
|
||||
(cond
|
||||
[(memq (cadr (system-type)) '(apple)) "darwin"]
|
||||
[(memq (caddr (system-type)) '(linux-gnu)) "unix"]
|
||||
[(memq (caddr (system-type)) '(mingw32 mingw64)) "windows"]
|
||||
[else "unknown"]))
|
||||
|
||||
;; TODO Convert to macro
|
||||
(define (blodwen-read-args desc)
|
||||
(if (fx= (vector-ref desc 0) 0)
|
||||
|
Loading…
Reference in New Issue
Block a user