summaryrefslogtreecommitdiff
path: root/build/make/configure.sh
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-03-21 14:12:04 +0200
committerMartin Storsjo <martin@martin.st>2018-03-23 13:25:35 +0200
commitb08a0b07d4debb232a2b6679c9fd2903dffb9ebe (patch)
tree914b020f603faa11bb826651600b7bed72ee1516 /build/make/configure.sh
parent2cc5c8f97c534ff5f1aedddcf5bc3267010e594e (diff)
downloadlibvpx-b08a0b07d4debb232a2b6679c9fd2903dffb9ebe.tar
libvpx-b08a0b07d4debb232a2b6679c9fd2903dffb9ebe.tar.gz
libvpx-b08a0b07d4debb232a2b6679c9fd2903dffb9ebe.tar.bz2
libvpx-b08a0b07d4debb232a2b6679c9fd2903dffb9ebe.zip
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
Diffstat (limited to 'build/make/configure.sh')
-rw-r--r--build/make/configure.sh14
1 files changed, 13 insertions, 1 deletions
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