Merge commit 'e5d45e028cf4193b562075897e55091779e49f15'
* commit 'e5d45e028cf4193b562075897e55091779e49f15': build: Support cparser Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
2be92abac7
22
configure
vendored
22
configure
vendored
@ -2708,6 +2708,18 @@ ccc_flags(){
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cparser_flags(){
|
||||||
|
for flag; do
|
||||||
|
case $flag in
|
||||||
|
-Wno-switch) echo -Wno-switch-enum ;;
|
||||||
|
-Wno-format-zero-length) ;;
|
||||||
|
-Wdisabled-optimization) ;;
|
||||||
|
-Wno-pointer-sign) echo -Wno-other ;;
|
||||||
|
*) echo $flag ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
msvc_common_flags(){
|
msvc_common_flags(){
|
||||||
for flag; do
|
for flag; do
|
||||||
case $flag in
|
case $flag in
|
||||||
@ -3000,6 +3012,13 @@ probe_cc(){
|
|||||||
if [ $pfx = hostcc ]; then
|
if [ $pfx = hostcc ]; then
|
||||||
append _cflags -Dsnprintf=_snprintf
|
append _cflags -Dsnprintf=_snprintf
|
||||||
fi
|
fi
|
||||||
|
elif $_cc --version 2>/dev/null | grep -q ^cparser; then
|
||||||
|
_type=cparser
|
||||||
|
_ident=$($_cc --version | head -n1)
|
||||||
|
_depflags='-MMD'
|
||||||
|
_cflags_speed='-O4'
|
||||||
|
_cflags_size='-O2'
|
||||||
|
_flags_filter=cparser_flags
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval ${pfx}_type=\$_type
|
eval ${pfx}_type=\$_type
|
||||||
@ -4495,6 +4514,9 @@ elif enabled clang; then
|
|||||||
check_cflags -Werror=implicit-function-declaration
|
check_cflags -Werror=implicit-function-declaration
|
||||||
check_cflags -Werror=missing-prototypes
|
check_cflags -Werror=missing-prototypes
|
||||||
check_cflags -Werror=return-type
|
check_cflags -Werror=return-type
|
||||||
|
elif enabled cparser; then
|
||||||
|
add_cflags -Wno-missing-variable-declarations
|
||||||
|
add_cflags -Wno-empty-statement
|
||||||
elif enabled armcc; then
|
elif enabled armcc; then
|
||||||
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user