--- a/rakelib/setup.rake Thu Jun 21 08:07:41 2018 +0000
+++ b/rakelib/setup.rake Tue Jun 26 21:50:57 2018 +0100
@@ -11,17 +11,15 @@
-# Guess the value of BUILD_TARGET for system on which we're currently running.
-# Think of this as of `config.guess` script used in autotools.
-# Returns the BUiLD_TARGET in form of GNU target triplet, such as
-# `x86_64-pc-linux-gnu`
+# 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()
- RbConfig::CONFIG['target'] # Can't believe it's so easy...
+ return `./config.guess`.chop()
end
unless defined? BUILD_TARGET; BUILD_TARGET = ENV['BUILD_TARGET'] || build_target_guess(); end
-
unless defined? TOOLCHAIN
if ENV.has_key? 'TOOLCHAIN'
TOOLCHAIN = ENV['TOOLCHAIN']