tighter compilation

This commit is contained in:
Miguel M 2023-04-27 16:28:45 +01:00
parent 7346b90d76
commit 13c6d00ff6
1 changed files with 5 additions and 9 deletions

14
make.py
View File

@ -6,11 +6,14 @@ from glob import glob
from sane import *
COMPILER = 'gcc'
COMPILE_FLAGS = ['-std=c99',
COMPILE_FLAGS = ['-std=c11',
'-g',
'-O0',
'-Wall',
'-Wextra',
'-Werror',
'-Wpedantic',
'-pedantic-errors',
'-fopenmp']
LINK_FLAGS = []
OBJ_DIR = 'obj'
@ -80,11 +83,4 @@ def link():
def clean():
shutil.rmtree(OBJ_DIR)
@recipe(recipe_deps=[link],
conditions=[lambda: True],
info='Runs the main executable with the test matrix as input.')
def run():
with open(os.path.join(ROOT, 'data', 'test_mat.txt'), 'r') as test_input:
sp.run(os.path.join(ROOT, EXE_NAME), stdin=test_input)
sane_run(run)
sane_run(link)