Fix problem with detect libcapnp function
This commit is contained in:
@@ -120,6 +120,8 @@ def detect_version(basedir, compiler=None, **compiler_attrs):
|
|||||||
cc = ccompiler.new_compiler(compiler=compiler)
|
cc = ccompiler.new_compiler(compiler=compiler)
|
||||||
cc.output_dir = basedir
|
cc.output_dir = basedir
|
||||||
if not cc.has_function('timer_create'):
|
if not cc.has_function('timer_create'):
|
||||||
|
if 'libraries' not in compiler_attrs:
|
||||||
|
compiler_attrs['libraries'] = []
|
||||||
compiler_attrs['libraries'].append('rt')
|
compiler_attrs['libraries'].append('rt')
|
||||||
|
|
||||||
cc = get_compiler(compiler=compiler, **compiler_attrs)
|
cc = get_compiler(compiler=compiler, **compiler_attrs)
|
||||||
|
|||||||
Reference in New Issue
Block a user