Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e5d45e02
Commit
e5d45e02
authored
Sep 12, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Support cparser
parent
d8798276
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
configure
configure
+22
-0
No files found.
configure
View file @
e5d45e02
...
...
@@ -2372,6 +2372,18 @@ ccc_flags(){
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
(){
for
flag
;
do
case
$flag
in
...
...
@@ -2661,6 +2673,13 @@ probe_cc(){
if
[
$pfx
=
hostcc
]
;
then
append _cflags
-Dsnprintf
=
_snprintf
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
eval
${
pfx
}
_type
=
\$
_type
...
...
@@ -3981,6 +4000,9 @@ elif enabled clang; then
check_cflags
-Werror
=
implicit-function-declaration
check_cflags
-Werror
=
missing-prototypes
check_cflags
-Werror
=
return
-type
elif
enabled cparser
;
then
add_cflags
-Wno-missing-variable-declarations
add_cflags
-Wno-empty-statement
elif
enabled armcc
;
then
# 2523: use of inline assembler is deprecated
add_cflags
-W
${
armcc_opt
}
,--diag_suppress
=
2523
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment