mirror of
https://github.com/mesonbuild/meson.git
synced 2026-11-06 05:16:42 +00:00
Adding `rust_abi: c` automatically was broken by commit b5f61587c
("modules/python: rework extension_module method for typing"),
fix it again.
While at it, be more careful - ensure that rust_abi is only added
if the caller provided neither of rust_abi and rust_crate_type.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
12 lines
250 B
Python
Executable File
12 lines
250 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import tachyon
|
|
|
|
result = tachyon.phaserize('shoot')
|
|
|
|
if not isinstance(result, int):
|
|
raise SystemExit('Returned result not an integer.')
|
|
|
|
if result != 1:
|
|
raise SystemExit('Returned result {} is not 1.'.format(result))
|