I am cross compiling using arm-none-eabi-gcc on MacOS (M1) with rosetta x86. It does not make sense to have
-arch x86_64b compilation flag as it gives error. v12 of arm-none-eabi-gcc (latest from brew) does not support -arch flag. cmake should not add this flag for eabi.
How do you remove this flag?
I get this error:
arm-none-eabi-gcc: error: unrecognized command-line option ‘-arch’; did you mean ‘-march=’?
(I see that pico-sdk compiles somehow remove this flag. There has to be some settable parameter. I looked but nothing obvious stood out.)