(bindir)
| 1211 | |
| 1212 | |
| 1213 | def check_binaryen(bindir): |
| 1214 | output = get_binaryen_version(bindir) |
| 1215 | if output: |
| 1216 | output = output.splitlines()[0] |
| 1217 | try: |
| 1218 | version = output.split()[2] |
| 1219 | version = int(version) |
| 1220 | except (IndexError, ValueError): |
| 1221 | exit_with_error(f'error parsing binaryen version ({output}). Please check your binaryen installation') |
| 1222 | |
| 1223 | # Allow the expected version or the following one in order avoid needing to update both |
| 1224 | # emscripten and binaryen in lock step in emscripten-releases. |
| 1225 | if version not in {EXPECTED_BINARYEN_VERSION, EXPECTED_BINARYEN_VERSION + 1}: |
| 1226 | diagnostics.warning('version-check', 'unexpected binaryen version: %s (expected %s)', version, EXPECTED_BINARYEN_VERSION) |
| 1227 | |
| 1228 | |
| 1229 | def get_binaryen_bin(): |
no test coverage detected