https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101111
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Mosè Giordano from comment #2) > GCC uses libtool checks to set these flags: > <https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libsanitizer/configure; > h=1d9ae59be6798555b7020a66e0f622ff8bf752cc; > hb=50bc9185c2821350f0b785d6e23a6e9dcde58466#l8839>. This is a check on > `$host_cpu-$host_os`, however I'm compiling a cross-compiler (`build == host > == x86_64-linux-musl`, `target == x86_64-apple-darwin`, I may have been > inaccurate before), so shouldn't this check use `$target_cpu-$target_os` > instead? No host usage here is correct. This is a (target) library which means the host (and target) are set x86_64-apple-darwin and the build is set to x86_64-linux-musl.