From bdd2ee1190622873f2a8494ed3cb959a1122d9a8 Mon Sep 17 00:00:00 2001 From: Andrew Tonner Date: Thu, 19 Jan 2017 21:38:37 -0800 Subject: [PATCH] python build script: do make clean if we reconfigured --- SheepShaver/src/Windows/build_on_msys.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SheepShaver/src/Windows/build_on_msys.py b/SheepShaver/src/Windows/build_on_msys.py index 1a9a8523..f913b47d 100644 --- a/SheepShaver/src/Windows/build_on_msys.py +++ b/SheepShaver/src/Windows/build_on_msys.py @@ -278,6 +278,7 @@ def install(make_args, show_build_environment, use_precompiled_dyngen, build_jit configure_macemu_env["CC"] = "gcc %s" % MACEMU_CFLAGS configure_macemu_env["CXX"] = "g++ %s" % MACEMU_CXXFLAGS + did_configure = False with dep_tracker.rebuilding_if_needed("sheepshaver_configure", ["configure", "Makefile.in"], base_dir=script_path) as needs_rebuild: if needs_rebuild: @@ -288,6 +289,10 @@ def install(make_args, show_build_environment, use_precompiled_dyngen, build_jit sheepshaver_configure_options.append("--enable-vosf=no") run([msys_bash, "./configure", "--with-gtk=no"] + sheepshaver_configure_options, cwd=script_path, env=configure_macemu_env) + did_configure = True + + if did_configure: + run([make_bin, "clean"], cwd=script_path, env=our_env) sheepshaver_make_args = list(make_args)