Re: How can I tell what I'm running on?
"steph.tougard via Sbcl-help" <[email protected]>
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <rXSclQFcDT9Q91d5qDlz4B_J3hGmBm29gCi5gJQ2fsSKJuS6zCXYgO_4KMoq3Q3rBCVLJDUAak6yo6mH8sSnIYBOyNfwdwj_AdOAEPyLkqc=@pm.me> |
Hi https://asdf.common-lisp.dev/uiop.html#UIOP_002fOS detect-os should do what you want here. On Wednesday, September 25th, 2024 at 7:45 AM, Blake McBride <[email protected]> wrote: > I wrote my own build system in Java and use it every day. I'd like to port it to SBCL and make it more generic. While SBCL is a complete Common Lisp and has some system interface, it seems to be somewhat weak in that area. First thing I hit was having to determine what system it was running on in code. Was it Linux, Mac, Windows, SunOS, etc.? I didn't see a very portable way of finding that out. While I'm sure I could find a way with what is there, I didn't want to get more hacky than I had to. Any suggestions? > > On another note, I hit this problem just a few lines into my code. I wonder if it makes sense for me to take a look at extending sb-ext. Does that make sense? > > Thanks! > > Blake McBride _______________________________________________ Sbcl-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-help