Re: How can I tell what I'm running on?

Vasily Postnicov <[email protected]>
Newsgroups gmane.lisp.steel-bank.general
Message-ID <CADnZ6B=3HhVSC1AK7a+r=GvwYgPW+710MneagR1ww52-1A+nhQ@mail.gmail.com>
Check *FEATURES*. For example, I have :X86-64, :OS-UNIX, :BSD, :FREEBSD in
that list. Also MACHINE-TYPE returns your architecture as a string.
Finally, MACHINE-INSTANCE can return the hostname.

ср, 25 сент. 2024 г. в 00:47, Blake McBride <[email protected]>:

> 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
>

_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.