Guess include and lib directory using capnp executable

This commit is contained in:
Yann Diorcet
2017-05-18 11:47:51 +02:00
committed by Jacob Alexander
parent a7efe4e3f8
commit 722579d671
2 changed files with 10 additions and 3 deletions

View File

@@ -148,7 +148,7 @@ def detect_version(basedir, compiler=None, **compiler_attrs):
return props
def test_build():
def test_build(**compiler_attrs):
"""do a test build of libcapnp"""
tmp_dir = tempfile.mkdtemp()
@@ -156,7 +156,7 @@ def test_build():
# info("Configure: Autodetecting Cap'n Proto settings...")
# info(" Custom Cap'n Proto dir: %s" % prefix)
try:
detected = detect_version(tmp_dir)
detected = detect_version(tmp_dir, None, **compiler_attrs)
finally:
erase_dir(tmp_dir)