Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
8770f082
Commit
8770f082
authored
Dec 12, 2016
by
James Zern
Browse files
configure/cmake: force -std=c99
BUG=aomedia:111 Change-Id: I4ed7b6998023975cd2834266be9caf44e2631f2c
parent
7a266e29
Changes
2
Hide whitespace changes
Inline
Side-by-side
build/cmake/aom_configure.cmake
View file @
8770f082
...
...
@@ -31,6 +31,14 @@ if (MSVC)
add_compiler_flag_if_supported
(
"/WX"
)
endif
()
else
()
set
(
c99_flag
"-std=c99"
)
check_c_compiler_flag
(
${
c99_flag
}
C99_FLAG_SUPPORTED
)
if
(
C99_FLAG_SUPPORTED
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
c99_flag
}
"
CACHE STRING
""
FORCE
)
else
()
# report error
message
(
FATAL_ERROR
"C99 support by the compiler is required!"
)
endif
()
add_compiler_flag_if_supported
(
"-Wall"
)
add_compiler_flag_if_supported
(
"-Wdeclaration-after-statement"
)
add_compiler_flag_if_supported
(
"-Wdisabled-optimization"
)
...
...
build/make/configure.sh
View file @
8770f082
...
...
@@ -672,6 +672,8 @@ check_xcode_minimum_version() {
}
process_common_toolchain
()
{
add_cflags_only
-std
=
c99
if
[
-z
"
$toolchain
"
]
;
then
gcctarget
=
"
${
CHOST
:-
$(
gcc
-dumpmachine
2> /dev/null
)
}
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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