[libc-commits] [libc] libc: Remove `extern "C"` from main declarations (PR #102825)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Aug 12 06:05:07 PDT 2024


jhuber6 wrote:

> Yeah - beats me. Hopefulyl someone on libc can look into this, turn off the warning, or whatnot.
> 
> Maybe one of these files puts "main" in a namespace by accident and the `extern "C"` works around this?

It's because we compile everything with `-ffreestanding`.

https://github.com/llvm/llvm-project/pull/102825


More information about the libc-commits mailing list