diff --git a/SheepShaver/src/Windows/build_on_msys.py b/SheepShaver/src/Windows/build_on_msys.py index 592f523b..72bef3c3 100644 --- a/SheepShaver/src/Windows/build_on_msys.py +++ b/SheepShaver/src/Windows/build_on_msys.py @@ -72,6 +72,10 @@ def parse_args(): parser.add_argument("--build", default=None, help="Build platform to pass to configure scripts") + parser.add_argument("--alt-mingw-path", + dest="alt_mingw_path", + default=None, + help="Path to use for mingw install") return parser.parse_args() @@ -618,8 +622,12 @@ class BuildDepTracker(object): def main(): + global MINGW_EXTRACT_PATH options = parse_args() + if options.alt_mingw_path: + MINGW_EXTRACT_PATH = options.alt_mingw_path + if options.run_shell: run_shell() elif options.run_shell_command is not None: