Permalink
Browse files

Notify users about missing prebuilts.

  • Loading branch information...
1 parent 6ec606d commit 19608cd5e420024bf3be78b2a4590053851e5994 @brixen brixen committed Mar 7, 2012
Showing with 23 additions and 2 deletions.
  1. +1 −1 Rakefile
  2. +22 −1 configure
View
2 Rakefile
@@ -33,7 +33,7 @@ end
require config_rb
BUILD_CONFIG = Rubinius::BUILD_CONFIG
-unless BUILD_CONFIG[:config_version] == 155
+unless BUILD_CONFIG[:config_version] == 156
STDERR.puts "Your configuration is outdated, please run ./configure first"
exit 1
end
View
23 configure
@@ -71,6 +71,7 @@ class Configure
@llvm_source_dir = "llvm-3.0.src"
@llvm_source_url = "http://llvm.org/releases/3.0/llvm-3.0.tar.gz"
@llvm_asset_path = "http://asset.rubini.us/prebuilt"
+ @llvm_source_build = false
if @host == "i686-pc-linux-gnu" || @host == "x86_64-unknown-linux-gnu"
@@ -123,7 +124,7 @@ class Configure
@libversion = "2.0"
@version = "#{@libversion}.0dev"
@release_date = "yyyy-mm-dd"
- @config_version = 155
+ @config_version = 156
# TODO: add conditionals for platforms
if RbConfig::CONFIG["build_os"] =~ /darwin/
@@ -525,6 +526,7 @@ Unsupported language version requested: #{ver}. Options are #{@supported_version
if verify_llvm_source
@log.write " Code appears to be a proper tree."
+ @llvm_source_build = true
return true
end
end
@@ -1527,6 +1529,25 @@ end
check_force_clean if verify_config
print_debug if @verbose
+
+ if @llvm_source_build
+ files = prebuilt_files.map { |f| File.basename f, ".tar.bz2" }.join("\n ")
+
+ @log.write <<-EOM
+
+------------------------------------------------------------------
+Unable to find an existing binary build of LLVM for your platform.
+
+Please notify the Rubinius team at the #rubinius channel on
+irc.freenode.net and provide the following system information:
+
+ prebuilts:
+
+ #{files}
+------------------------------------------------------------------
+ EOM
+ end
+
if @install
@log.write "\nConfigured. Run 'rake install' to install Rubinius."
else

0 comments on commit 19608cd

Please sign in to comment.