# HG changeset patch # User Jan Vrany # Date 1535619965 -3600 # Node ID 70c9861ad62f589239fe3be52315095b49b50433 # Parent 86db3827692288c5f924e97ec145bacafbe0aaeb# Parent 3747e4b3256b719457a27f0e396465e3c51579c6 Merge diff -r 86db38276922 -r 70c9861ad62f rakelib/setup.rake --- a/rakelib/setup.rake Fri Aug 24 13:34:05 2018 +0100 +++ b/rakelib/setup.rake Thu Aug 30 10:06:05 2018 +0100 @@ -14,11 +14,21 @@ # Guess the value of BUILD_TARGET for system on which we're currently # running in form of GNU target triplet, such as `x86_64-pc-linux-gnu`. # Essentially a wrapper for config.guess used with autotools. -def build_target_guess() - return `./config.guess`.chop() +def build_target_guess + target = `sh config.guess`.chop + # Workaround for MSYS2 / MINGW environment. When using MSYS2 environment to build + # Smalltalk/X, GNU config.guess reports `x86_64-pc-msys` rather than `i686-pc-mingw32` + # or `x86_64-w64-mingw32` which are the values used by CI and/or third-party libraries. + # Therefore we unify the value here (at least for now). + case target + when 'x86_64-pc-msys' + target = 'x86_64-w64-mingw32' + end + # /Workaround + return target end -unless defined? BUILD_TARGET; BUILD_TARGET = ENV['BUILD_TARGET'] || build_target_guess(); end +unless defined? BUILD_TARGET; BUILD_TARGET = ENV['BUILD_TARGET'] || build_target_guess; end # "Guess" the current "branch". def build_branch_guess() diff -r 86db38276922 -r 70c9861ad62f rakelib/test.rake --- a/rakelib/test.rake Fri Aug 24 13:34:05 2018 +0100 +++ b/rakelib/test.rake Thu Aug 30 10:06:05 2018 +0100 @@ -5,9 +5,9 @@ # A helper class to keep a summary of a test report class TestReportSummary SUMMARIES = [] - PATTERN = /tests=\"(?\d+)\".+failures=\"(?\d+)\" errors=\"(?\d+)\" skipped=\"(?\d+)\"/ + PATTERN = /tests="(?\d+)".+failures="(?\d+)" errors="(?\d+)" skipped="(?\d+)" time="(?