build: tweak & update

disable toys & guile for now. Add some extra warnings.
This commit is contained in:
Dirk-Jan C. Binnema 2022-05-06 22:11:16 +03:00
parent 4fc05261ce
commit d873c231ee
3 changed files with 12 additions and 8 deletions

View File

@ -46,13 +46,14 @@ test-verbose-if-fail: all
@cd $(BUILDDIR); $(MESON) test || $(MESON) test --verbose @cd $(BUILDDIR); $(MESON) test || $(MESON) test --verbose
test-valgrind: $(BUILDDIR) test-valgrind: $(BUILDDIR)
@cd $(BUILDDIR); $(MESON) test \ @cd $(BUILDDIR); $(MESON) test \
--wrap='valgrind --leak-check=full --error-exitcode=1' \ --wrap='valgrind --leak-check=full --error-exitcode=1' \
--timeout-multiplier 100 --timeout-multiplier 100
test-helgrind: $(BUILDDIR) test-helgrind: $(BUILDDIR)
@cd $(BUILDDIR); $(MESON) test --wrap='valgrind --tool=helgrind --error-exitcode=1' @cd $(BUILDDIR); $(MESON) test \
--wrap='valgrind --tool=helgrind --error-exitcode=1' \
--timeout-multiplier 100
dist: $(BUILDDIR) dist: $(BUILDDIR)
@cd $(BUILDDIR); $(MESON) dist @cd $(BUILDDIR); $(MESON) dist

View File

@ -47,7 +47,7 @@ extra_flags="-Wformat-security \
-Wstack-protector-all \ -Wstack-protector-all \
-Wno-cast-function-type \ -Wno-cast-function-type \
-Wno-bad-function-cast \ -Wno-bad-function-cast \
-Wno-switch-enum" -Wno-switch-enum"
AX_CXX_COMPILE_STDCXX_17 AX_CXX_COMPILE_STDCXX_17
AX_COMPILER_FLAGS_CXXFLAGS([],[],[${extra_cflags}]) AX_COMPILER_FLAGS_CXXFLAGS([],[],[${extra_cflags}])

View File

@ -23,7 +23,7 @@ project('mu', ['c', 'cpp'],
license: 'GPL-3.0-or-later', license: 'GPL-3.0-or-later',
default_options : [ default_options : [
'buildtype=debugoptimized', 'buildtype=debugoptimized',
'warning_level=2', 'warning_level=3',
'c_std=c11', 'c_std=c11',
'cpp_std=c++17' 'cpp_std=c++17'
] ]
@ -40,6 +40,7 @@ infodir = join_paths(prefixdir, get_option('infodir'))
# compilers / flags # compilers / flags
# #
extra_flags = [ extra_flags = [
'-Wextra',
'-Wno-unused-parameter', '-Wno-unused-parameter',
'-Wno-cast-function-type', '-Wno-cast-function-type',
'-Wno-#warnings' '-Wno-#warnings'
@ -180,14 +181,16 @@ endif
if not get_option('guile').disabled() and guile_dep.found() if not get_option('guile').disabled() and guile_dep.found()
config_h_data.set('BUILD_GUILE', 1) config_h_data.set('BUILD_GUILE', 1)
config_h_data.set_quoted('GUILE_BINARY', 'guile') config_h_data.set_quoted('GUILE_BINARY', 'guile')
#3subdir('guile') message('guile is disabled for now')
#subdir('guile')
endif endif
config_h_data.set_quoted('MU_PROGRAM', mu.full_path()) config_h_data.set_quoted('MU_PROGRAM', mu.full_path())
if get_option('toys').enabled() if get_option('toys').enabled()
subdir('toys/mug') message('toys are disabled for now')
#subdir('toys/mug')
endif endif
################################################################################ ################################################################################