hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

Need a new way to get rlibc #231

Closed bharrisau closed 9 years ago

bharrisau commented 9 years ago

Removed from Rust tree as of rust-lang/rust#18625.

0xc0170 commented 9 years ago

So as I understand it, they pull out some libs along with rlibc.

So this it's my update so far:

Rakefile:

# cross-compiled librlibc
compile_rust :rlibc_crate, {
  source:  'thirdparty/librlibc/src/lib.rs'.in_root,
  produce: 'thirdparty/librlibc/src/lib.rs'.in_root.as_rlib.in_build,
  out_dir: true,
  recompile_on: :triple,
}

rake

  Rake::FileTask.define_task 'thirdparty/librlibc'.in_root do |t|
    sh "git clone --single-branch --depth 1 https://github.com/rust-lang/rlibc.git #{t.name}"
  end.invoke

Is that it? Nah, the version is a bit different, so it requires more than just those changes above.

bharrisau commented 9 years ago

You only need the master for rlibc. It doesn't change.

I'll hook up a bot to create a similar repo for libcore (the nightly-linux buildbot has the needed info and I can listen on IRC for build notifications) and it should solve the issues with revision commits and also speed up the build a little.

farcaller commented 9 years ago

I'm building libcore/ribc as part of rustc bootstrap in zinci so this isn't going to be a problem when we move off travis.

0xc0170 commented 9 years ago

@farcaller When we can see any result?

Moving off travis? Can you share more?

bharrisau commented 9 years ago

Updated the rakefile.

farcaller commented 9 years ago

@0xc0170 it's now live at http://beta.ci.zinc.rs/builds/ for a trial run.