diff --git a/python/sconstruct_helper.py b/python/sconstruct_helper.py index 6f29375..1d3c28d 100644 --- a/python/sconstruct_helper.py +++ b/python/sconstruct_helper.py @@ -136,7 +136,8 @@ def libPath(mu2eOpts): def mergeFlags(mu2eOpts): build = mu2eOpts['build'] flags = ['-std=c++17','-Wall','-Wno-unused-local-typedefs','-g', - '-Werror','-Wl,--no-undefined','-gdwarf-2', '-Wl,--as-needed', + '-Werror','-Werror=pedantic', + '-Wl,--no-undefined','-gdwarf-2', '-Wl,--as-needed', '-Werror=return-type','-Winit-self','-Woverloaded-virtual' ] if build == 'prof': flags = flags + [ '-O3', '-fno-omit-frame-pointer', '-DNDEBUG' ]