ref: b08a0b07d4debb232a2b6679c9fd2903dffb9ebe
parent: 2cc5c8f97c534ff5f1aedddcf5bc3267010e594e
author: Martin Storsjo <martin@martin.st>
date: Wed Mar 21 10:12:04 EDT 2018
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
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -941,7 +941,6 @@
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 @@
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
--- a/configure
+++ b/configure
@@ -106,6 +106,7 @@
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"