Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tools/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import sys

WINDOWS = sys.platform.startswith('win')
MSYS2 = 'MSYSTEM' in os.environ

EXCLUDES = [os.path.normpath(x) for x in '''
test/third_party
Expand Down Expand Up @@ -66,9 +67,9 @@ def copy_emscripten(target):
excludes = EXCLUDES
# We have a few launcher scripts that are checked into git still.
# Exclude the ones not designed for the current platforms.
if WINDOWS:
if WINDOWS and not MSYS2:
excludes += [os.path.splitext(l)[0] for l in LAUNCHER_BAT_SCRIPTS]
else:
elif not MSYS2:
excludes += LAUNCHER_BAT_SCRIPTS

os.chdir(emscripten_root)
Expand Down
3 changes: 2 additions & 1 deletion tools/maint/create_entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def make_executable(filename):

def main(all_platforms):
is_windows = sys.platform.startswith('win')
do_unix = all_platforms or not is_windows
is_msys2 = 'MSYSTEM' in os.environ
do_unix = all_platforms or not is_windows or is_msys2
do_windows = all_platforms or is_windows

def generate_entry_points(cmd, path):
Expand Down