mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
configure: Handle armcc 5.0
The first line of the "armcc --vsn" output in one version is "Product: ARM Compiler 5.04". Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
32d05934ab
commit
4936ef6492
6
configure
vendored
6
configure
vendored
@ -2766,10 +2766,10 @@ probe_cc(){
|
|||||||
_cflags_speed='-fast'
|
_cflags_speed='-fast'
|
||||||
_cflags_size='-O1'
|
_cflags_size='-O1'
|
||||||
_flags_filter=ccc_flags
|
_flags_filter=ccc_flags
|
||||||
elif $_cc --vsn 2>/dev/null | grep -q "ARM C/C++ Compiler"; then
|
elif $_cc --vsn 2>/dev/null | grep -Eq "ARM (C/C\+\+ )?Compiler"; then
|
||||||
test -d "$sysroot" || die "No valid sysroot specified."
|
test -d "$sysroot" || die "No valid sysroot specified."
|
||||||
_type=armcc
|
_type=armcc
|
||||||
_ident=$($_cc --vsn | head -n1)
|
_ident=$($_cc --vsn | head -n1 | sed 's/.*: //')
|
||||||
armcc_conf="$PWD/armcc.conf"
|
armcc_conf="$PWD/armcc.conf"
|
||||||
$_cc --arm_linux_configure \
|
$_cc --arm_linux_configure \
|
||||||
--arm_linux_config_file="$armcc_conf" \
|
--arm_linux_config_file="$armcc_conf" \
|
||||||
@ -4290,6 +4290,8 @@ elif enabled cparser; then
|
|||||||
add_cflags -Wno-missing-variable-declarations
|
add_cflags -Wno-missing-variable-declarations
|
||||||
add_cflags -Wno-empty-statement
|
add_cflags -Wno-empty-statement
|
||||||
elif enabled armcc; then
|
elif enabled armcc; then
|
||||||
|
add_cflags -W${armcc_opt},--diag_suppress=4343 # hardfp compat
|
||||||
|
add_cflags -W${armcc_opt},--diag_suppress=3036 # using . as system include dir
|
||||||
# 2523: use of inline assembler is deprecated
|
# 2523: use of inline assembler is deprecated
|
||||||
add_cflags -W${armcc_opt},--diag_suppress=2523
|
add_cflags -W${armcc_opt},--diag_suppress=2523
|
||||||
add_cflags -W${armcc_opt},--diag_suppress=1207
|
add_cflags -W${armcc_opt},--diag_suppress=1207
|
||||||
|
Loading…
Reference in New Issue
Block a user