tighter compilation
This commit is contained in:
parent
7346b90d76
commit
13c6d00ff6
14
make.py
14
make.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue