Skip to content
Snippets Groups Projects
Unverified Commit 79828b6a authored by peelz's avatar peelz Committed by GitHub
Browse files

Move -std=c99 to meson default_options (#466)

parent b17e4de0
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ project( ...@@ -5,6 +5,7 @@ project(
default_options: [ default_options: [
'buildtype=debugoptimized', 'buildtype=debugoptimized',
'prefix=/usr', 'prefix=/usr',
'c_std=c99',
'cpp_std=c++17', 'cpp_std=c++17',
], ],
meson_version: '>= 0.63.0', meson_version: '>= 0.63.0',
...@@ -97,12 +98,7 @@ foreach func: check_functions ...@@ -97,12 +98,7 @@ foreach func: check_functions
endforeach endforeach
compiler_common_flags = [] compiler_common_flags = []
compiler_c_flags = [ compiler_c_flags = []
# FIXME: this should go as 'c_std=c99' in project's default_options.
# https://github.com/mesonbuild/meson/issues/1889
# https://github.com/mesonbuild/meson/pull/6729
'-std=c99',
]
compiler_cpp_flags = [] compiler_cpp_flags = []
if get_option('buildtype').contains('debug') if get_option('buildtype').contains('debug')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment