|
43 | 43 |
|
44 | 44 | from . import cache, config, diagnostics, filelock, tempfiles, utils |
45 | 45 | from .settings import settings |
46 | | -from .utils import bat_suffix, exit_with_error, memoize, path_from_root, safe_ensure_dirs |
| 46 | +from .utils import exe_path_from_root, exit_with_error, memoize, path_from_root, safe_ensure_dirs |
47 | 47 |
|
48 | 48 | DEBUG_SAVE = DEBUG or int(os.environ.get('EMCC_DEBUG_SAVE', '0')) |
49 | 49 | PRINT_SUBPROCS = int(os.getenv('EMCC_VERBOSE', '0')) |
@@ -451,7 +451,7 @@ def llvm_tool_path_with_suffix(tool, suffix): |
451 | 451 | if suffix: |
452 | 452 | tool += '-' + suffix |
453 | 453 | llvm_root = os.path.expanduser(config.LLVM_ROOT) |
454 | | - return os.path.join(llvm_root, utils.exe_suffix(tool)) |
| 454 | + return utils.find_exe(llvm_root, tool) |
455 | 455 |
|
456 | 456 |
|
457 | 457 | # Some distributions ship with multiple llvm versions so they add |
@@ -644,11 +644,11 @@ def init(): |
644 | 644 | LLVM_PROFDATA = llvm_tool_path('llvm-profdata') |
645 | 645 | LLVM_COV = llvm_tool_path('llvm-cov') |
646 | 646 |
|
647 | | -EMCC = bat_suffix(path_from_root('emcc')) |
648 | | -EMXX = bat_suffix(path_from_root('em++')) |
649 | | -EMAR = bat_suffix(path_from_root('emar')) |
650 | | -EMRANLIB = bat_suffix(path_from_root('emranlib')) |
651 | | -FILE_PACKAGER = bat_suffix(path_from_root('tools/file_packager')) |
| 647 | +EMCC = exe_path_from_root('emcc') |
| 648 | +EMXX = exe_path_from_root('em++') |
| 649 | +EMAR = exe_path_from_root('emar') |
| 650 | +EMRANLIB = exe_path_from_root('emranlib') |
| 651 | +FILE_PACKAGER = exe_path_from_root('tools/file_packager') |
652 | 652 | # Windows .dll suffix is not included in this list, since those are never |
653 | 653 | # linked to directly on the command line. |
654 | 654 | DYLIB_EXTENSIONS = ['.dylib', '.so'] |
|
0 commit comments