improve uname for windows

This commit is contained in:
SANO Masatoshi 2021-06-07 13:10:33 +09:00
parent 519751aa04
commit 351157c0e3
2 changed files with 8 additions and 1 deletions

View file

@ -203,7 +203,9 @@ install_roswell () {
fi
}
install_sbcl_bin () {}
install_sbcl_bin () {
true
}
install_lisp_dependency () {
case "$USE_LISP" in

View file

@ -18,6 +18,11 @@ char* uname_s(void) {
}
char* uname_m(void) {
char* carch=getenv("MSYSTEM_CARCH");
if(carch && strcmp(carch,"x86_64")==0)
return q("x86-64");
if(carch && strcmp(carch,"i686")==0)
return q("x86");
char* msystem=getenv("MSYSTEM");
if(msystem && strcmp(msystem,"MINGW64")==0)
return q("x86-64");