diff -ur a/tools/common/target_detect.h b/tools/common/target_detect.h --- a/tools/common/target_detect.h 2024-12-17 14:27:52.560000000 +0000 +++ b/tools/common/target_detect.h 2024-12-17 14:37:17.320000000 +0000 @@ -64,6 +64,12 @@ # else # define DEFAULT_TARGET_NAME "powerpc64le-unknown-linux-musl" # endif +# elif defined(__powerpc__) && defined(__BIG_ENDIAN__) +# if defined(__USE_GNU) +# define DEFAULT_TARGET_NAME "powerpc-unknown-linux-gnu" +# else +# define DEFAULT_TARGET_NAME "powerpc-unknown-linux-musl" +# endif # elif defined(__riscv) && __riscv_xlen == 64 # if defined(__USE_GNU) # define DEFAULT_TARGET_NAME "riscv64-unknown-linux-gnu"