(bindir)
| 1201 | |
| 1202 | |
| 1203 | def get_binaryen_version(bindir): |
| 1204 | opt = utils.find_exe(bindir, 'wasm-opt') |
| 1205 | if not os.path.exists(opt): |
| 1206 | exit_with_error('binaryen executable not found (%s). Please check your binaryen installation' % opt) |
| 1207 | try: |
| 1208 | return run_process([opt, '--version'], stdout=PIPE).stdout |
| 1209 | except subprocess.CalledProcessError: |
| 1210 | exit_with_error('error running binaryen executable (%s). Please check your binaryen installation' % opt) |
| 1211 | |
| 1212 | |
| 1213 | def check_binaryen(bindir): |
no test coverage detected