Closed hanhlinux closed 2 years ago
just make CC different from HOSTCC. since both target different archs, they need to be different anyway.
e.g. make CC="clang --target-arch=mips" HOSTCC="clang --target-arch=x86_64"
. replace --target-arch
with whatever the right switch is.
I see that cross-compile will be detected when
CC
is different fromHOSTCC
. So how can I work withclang
?