Improve cosmocc / cosmoc++ toolchains

They'll now automatically create empty static archives for system
libraries that are provided by Cosmopolitan Libc. This helps make
configure scripts less confused. Musl does the same thing.
This commit is contained in:
Justine Tunney 2022-11-14 13:45:57 -08:00
parent a277170c9a
commit b850b14300
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
4 changed files with 78 additions and 8 deletions

View file

@ -172,6 +172,16 @@
"uint128_t"
"axdx_t"))
(linux
'("i8"
"u8"
"i16"
"u16"
"i32"
"u32"
"i64"
"u64"))
(x86intrin
'("__v8hu"
"__v16qi"
@ -218,6 +228,7 @@
gnu
cxx17
cosmo
linux
x86intrin))
"\\_>")))

View file

@ -148,7 +148,7 @@
;; M-4 C-c C-c Compile w/ MODE=dbg
;; M-5 C-c C-c Compile w/ MODE=""
;; M-7 C-c C-c Compile w/ MODE=tinylinux
;; M-8 C-c C-c Compile w/ llvm
;; M-8 C-c C-c Compile w/ clang tsan
;; M-9 C-c C-c Compile w/ chibicc
(defun cosmo-intest (&optional file-name)
@ -166,7 +166,7 @@
((eq arg 5) "")
((eq arg 6) "optlinux")
((eq arg 7) "tinylinux")
((eq arg 8) "llvm")
((eq arg 8) "tsan")
(default default)
((cosmo-intest) "dbg")
(t "fastbuild")))