From f2238fe3e7acfdf4f2f8d26d2fd4c25038a1f622 Mon Sep 17 00:00:00 2001 From: Andrew Tonner Date: Sun, 22 Jan 2017 17:48:56 -0800 Subject: [PATCH] python build script: option to use a specific mingw path --- SheepShaver/src/Windows/build_on_msys.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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: