4 ms·
TIL. I didn't know clang supports this natively.
by kccqzy 1y ago
TIL. I didn't know clang supports this natively.
- delta_p_delta_x 1y agoClang is natively a cross-compiler. Pass in --sysroot and a corresponding valid sysroot tree for any micro architecture/platform (arm-eabi, macOS, Windows MSVC, PowerPC, Alpine Linux with musl, you name it) and Clang will happily retarget the binary to the correct target platform.
- mrpippy 1y agoApple has supported that ‘-arch’ option in their GCC/Clang since at least the PPC->Intel transition, maybe even earlier (PPC64? NeXT/OPENSTEP?)