From 52d5f59b72219ca61e0fbcc9c237a745edc1dd0d Mon Sep 17 00:00:00 2001 From: Michael Brockus <55331536+michaelbrockus@users.noreply.github.com> Date: Wed, 5 Aug 2020 21:13:06 -0700 Subject: [PATCH] Update meson.build --- meson.build | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/meson.build b/meson.build index 968e5b1..f5c5cfa 100644 --- a/meson.build +++ b/meson.build @@ -7,42 +7,8 @@ project('unity', 'c', license: 'MIT', meson_version: '>=0.53.0', - default_options: ['layout=flat', 'warning_level=3', 'werror=true', 'c_std=c11'] + default_options: ['werror=true', 'c_std=c11'] ) -lang = 'c' -cc = meson.get_compiler(lang) -# -# Meson: Add compiler flags -if cc.get_id() == 'clang' - add_project_arguments(cc.get_supported_arguments( - [ - '-Wexit-time-destructors', - '-Wglobal-constructors', - '-Wmissing-prototypes', - '-Wmissing-noreturn', - '-Wno-missing-braces', - '-Wold-style-cast', '-Wpointer-arith', '-Wweak-vtables', - '-Wcast-align', '-Wconversion', '-Wcast-qual', '-Wshadow' - ] - ), language: lang) -endif - -if cc.get_argument_syntax() == 'gcc' - add_project_arguments(cc.get_supported_arguments( - [ - '-Wformat', '-Waddress', '-Winit-self', '-Wno-multichar', - '-Wpointer-arith' , '-Wwrite-strings' , - '-Wno-parentheses' , '-Wno-type-limits' , - '-Wformat-security' , '-Wunreachable-code' , - '-Waggregate-return' , '-Wformat-nonliteral' , - '-Wmissing-declarations', '-Wmissing-include-dirs' , - '-Wno-unused-parameter' - ] - ), language: lang) -endif - -# -# Sub directory to project source code subdir('src') unity_dep = declare_dependency(link_with: unity_lib, include_directories: unity_dir)