Index: cmake/config-ix.cmake =================================================================== --- cmake/config-ix.cmake +++ cmake/config-ix.cmake @@ -184,11 +184,11 @@ # FIXME: Ideally, we would build the N32 library too. if("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "mipsel|mips64el") # regex for mipsel, mips64el - test_target_arch(mipsel "" "-mips32r2") - test_target_arch(mips64el "" "-mips64r2 -mabi=n64") + test_target_arch(mipsel "" "-mips32r2" "--target=mipsel-linux-gnu") + test_target_arch(mips64el "" "-mips64r2" "-mabi=n64") else() - test_target_arch(mips "" "-mips32r2") - test_target_arch(mips64 "" "-mips64r2 -mabi=n64") + test_target_arch(mips "" "-mips32r2" "--target=mips-linux-gnu") + test_target_arch(mips64 "" "-mips64r2" "-mabi=n64") endif() elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "arm") test_target_arch(arm "" "-march=armv7-a") @@ -219,6 +219,7 @@ if(ARCH_INDEX EQUAL -1) message(FATAL_ERROR "Unsupported architecture: ${arch}") else() + string(REPLACE ";" "\t" TARGET_${arch}_CFLAGS "${TARGET_${arch}_CFLAGS}") set(${out_var} ${TARGET_${arch}_CFLAGS} PARENT_SCOPE) endif() endfunction()