mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 08:24:43 +01:00
Fix problem with detect libcapnp function
This commit is contained in:
parent
3411581d89
commit
4a26499586
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ def detect_version(basedir, compiler=None, **compiler_attrs):
|
|||
cc = ccompiler.new_compiler(compiler=compiler)
|
||||
cc.output_dir = basedir
|
||||
if not cc.has_function('timer_create'):
|
||||
if 'libraries' not in compiler_attrs:
|
||||
compiler_attrs['libraries'] = []
|
||||
compiler_attrs['libraries'].append('rt')
|
||||
|
||||
cc = get_compiler(compiler=compiler, **compiler_attrs)
|
||||
|
|
Loading…
Add table
Reference in a new issue