feat(build): added more flags for better error and warnings
parent
dc4762b047
commit
c024c45214
|
@ -12,6 +12,12 @@ def glob_recurse(dir):
|
||||||
|
|
||||||
sources = glob_recurse(Path('src/'))
|
sources = glob_recurse(Path('src/'))
|
||||||
|
|
||||||
env = Environment(CCFLAGS=['--std=c++20', '-Wall', '-O0', '-g3', '-DPROJECTNAME=\\\"'+project+'\\\"', '-Isrc'])
|
env = Environment(CCFLAGS=[
|
||||||
|
'--std=c++23',
|
||||||
|
'-fno-exceptions',
|
||||||
|
'-Wall', '-Wpedantic', '-Wextra', '-Werror',
|
||||||
|
'-O0', '-g3', '-Isrc',
|
||||||
|
'-DPROJECTNAME=\\\"'+project+'\\\"'
|
||||||
|
])
|
||||||
env.ParseConfig('sdl2-config --static-libs')
|
env.ParseConfig('sdl2-config --static-libs')
|
||||||
env.Program(project, sources)
|
env.Program(project, sources)
|
||||||
|
|
Loading…
Reference in New Issue