Skip to content

Commit

Permalink
refs #27: Fix references to object files when building tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Jan 20, 2016
1 parent a7f142e commit 89add9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ for case in _test_cases:
includes = [f for f in compilelib.get_includes(fmt('tests/test_{case}.cc'), 'include')]
requires = [joinpath(OBJ_DIR, f) for f in compilelib.get_requires(fmt('tests/test_{case}.cc'), 'src')]
rule:
input: fmt('tests/test_{case}.cc'), includes, requires
input: fmt('tests/test_{case}.cc'), includes, req=requires
output: fmt('tests/test_{case}')
shell: '{CXX} {CXXFLAGS} -o {output} {input[0]} {input[2]} {LIBS}'
shell: '{CXX} {CXXFLAGS} -o {output} {input[0]} {input.req} {LIBS}'

for srcfile in SOURCE_FILES:
# We generate build rules dynamically depending on the actual header
Expand Down

0 comments on commit 89add9c

Please sign in to comment.