From: Martin Storsjo Date: Wed, 21 Mar 2018 12:12:04 +0000 (+0200) Subject: configure: Add an armv7-win32-gcc target X-Git-Tag: v1.8.0~779^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b08a0b07d4debb232a2b6679c9fd2903dffb9ebe;p=libvpx configure: Add an armv7-win32-gcc target This builds for windows on arm, with llvm-mingw. The target triplet is named -gcc since that's how similar existing targets are named, even though it technically runs clang (via frontends named "$CROSS-gcc"). Assemble using $CC -c since there's no standalone assembler available (except perhaps llvm-mc). Change-Id: I2c9a319730afef73f811bad79f488dcdc244ab0d --- diff --git a/build/make/configure.sh b/build/make/configure.sh index 3be9d8c71..60fc36e43 100644 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -941,7 +941,6 @@ process_common_toolchain() { setup_gnu_toolchain arch_int=${tgt_isa##armv} arch_int=${arch_int%%te} - check_add_asflags --defsym ARCHITECTURE=${arch_int} tune_cflags="-mtune=" if [ ${tgt_isa} = "armv7" ] || [ ${tgt_isa} = "armv7s" ]; then if [ -z "${float_abi}" ]; then @@ -968,6 +967,19 @@ EOF enabled debug && add_asflags -g asm_conversion_cmd="${source_path}/build/make/ads2gas.pl" + + case ${tgt_os} in + win*) + asm_conversion_cmd="$asm_conversion_cmd -noelf" + AS="$CC -c" + EXE_SFX=.exe + enable_feature thumb + ;; + *) + check_add_asflags --defsym ARCHITECTURE=${arch_int} + ;; + esac + if enabled thumb; then asm_conversion_cmd="$asm_conversion_cmd -thumb" check_add_cflags -mthumb diff --git a/configure b/configure index 3ebcb2648..80198ae26 100755 --- a/configure +++ b/configure @@ -106,6 +106,7 @@ all_platforms="${all_platforms} armv7-darwin-gcc" #neon Cortex-A8 all_platforms="${all_platforms} armv7-linux-rvct" #neon Cortex-A8 all_platforms="${all_platforms} armv7-linux-gcc" #neon Cortex-A8 all_platforms="${all_platforms} armv7-none-rvct" #neon Cortex-A8 +all_platforms="${all_platforms} armv7-win32-gcc" all_platforms="${all_platforms} armv7-win32-vs11" all_platforms="${all_platforms} armv7-win32-vs12" all_platforms="${all_platforms} armv7-win32-vs14"