[libc-commits] [libc] [libc][cmake] pass -mthumb for thumb triples (PR #96550)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Jun 24 15:06:49 PDT 2024


nickdesaulniers wrote:

> why do you? bionic doesn't compile any of its syscall stubs as thumb. why should you?

When I last tried to build llvm-libc via the existing Android.bp files, I got an error that the syscall stubs didn't support `-mthumb`. So it seems that the default implicit compiler flags on android set `-mthumb`.

I don't personally care, but it seems that llvm-libc for Android is being built in thumb mode, so I thought it was important.  Should I be setting `-marm` for all of llvm-libc in the Android.bp file (for 32b arm), or just the syscalls?

> ILP32 will be completely dead to us soon anyway.)

So I've been hearing for years.

> Is that an issue in Clang?

Let me file a bug.

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


More information about the libc-commits mailing list