Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Notify users about missing prebuilts.

  • Loading branch information...
commit 19608cd5e420024bf3be78b2a4590053851e5994 1 parent 6ec606d
Brian Shirai brixen authored

Showing 2 changed files with 23 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  Rakefile
  2. +22 1 configure
2  Rakefile
@@ -33,7 +33,7 @@ end
33 33 require config_rb
34 34 BUILD_CONFIG = Rubinius::BUILD_CONFIG
35 35
36   -unless BUILD_CONFIG[:config_version] == 155
  36 +unless BUILD_CONFIG[:config_version] == 156
37 37 STDERR.puts "Your configuration is outdated, please run ./configure first"
38 38 exit 1
39 39 end
23 configure
@@ -71,6 +71,7 @@ class Configure
71 71 @llvm_source_dir = "llvm-3.0.src"
72 72 @llvm_source_url = "http://llvm.org/releases/3.0/llvm-3.0.tar.gz"
73 73 @llvm_asset_path = "http://asset.rubini.us/prebuilt"
  74 + @llvm_source_build = false
74 75
75 76
76 77 if @host == "i686-pc-linux-gnu" || @host == "x86_64-unknown-linux-gnu"
@@ -123,7 +124,7 @@ class Configure
123 124 @libversion = "2.0"
124 125 @version = "#{@libversion}.0dev"
125 126 @release_date = "yyyy-mm-dd"
126   - @config_version = 155
  127 + @config_version = 156
127 128
128 129 # TODO: add conditionals for platforms
129 130 if RbConfig::CONFIG["build_os"] =~ /darwin/
@@ -525,6 +526,7 @@ Unsupported language version requested: #{ver}. Options are #{@supported_version
525 526
526 527 if verify_llvm_source
527 528 @log.write " Code appears to be a proper tree."
  529 + @llvm_source_build = true
528 530 return true
529 531 end
530 532 end
@@ -1527,6 +1529,25 @@ end
1527 1529 check_force_clean if verify_config
1528 1530
1529 1531 print_debug if @verbose
  1532 +
  1533 + if @llvm_source_build
  1534 + files = prebuilt_files.map { |f| File.basename f, ".tar.bz2" }.join("\n ")
  1535 +
  1536 + @log.write <<-EOM
  1537 +
  1538 +------------------------------------------------------------------
  1539 +Unable to find an existing binary build of LLVM for your platform.
  1540 +
  1541 +Please notify the Rubinius team at the #rubinius channel on
  1542 +irc.freenode.net and provide the following system information:
  1543 +
  1544 + prebuilts:
  1545 +
  1546 + #{files}
  1547 +------------------------------------------------------------------
  1548 + EOM
  1549 + end
  1550 +
1530 1551 if @install
1531 1552 @log.write "\nConfigured. Run 'rake install' to install Rubinius."
1532 1553 else

0 comments on commit 19608cd

Please sign in to comment.
Something went wrong with that request. Please try again.