jart / cosmopolitan

build-once run-anywhere c library
ISC License
18.43k stars 637 forks source link

Bug: unsupported -v option by cosmocc #1316

Open ivmai opened 1 month ago

ivmai commented 1 month ago

Contact Details

https://github.com/ivmai/bdwgc/issues/666

What happened?

Hello, cosmocc does not recognize "-v" option (extended version info). Such information could be used during configure of 3rd-party packages (e.g. bdwgc), e.g. to determine threads API, e.g. like this. Not a bug, but a kind of missing functionality compared to gcc/clang.

Both gcc and clang output such info at least: compiler version, target and thread model, e.g.:

clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix

Version

cosmocc (GCC) 14.1.0

What operating system are you seeing the problem on?

Linux

Relevant log output

cosmocc: fatal error: precompiled headers only supported with ARCH-unknown-cosmo-cc compilers compilation terminated.