From 8904ec77c965053e97f130472e25a35f3ad5fbc8 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 23 Jul 2018 16:53:14 -0700 Subject: [PATCH] Temporarily disable use of cretonne-codegen-meta. Once we figure out how to publish this code, we can re-enable it. --- lib/codegen/Cargo.toml | 5 +++-- lib/codegen/build.rs | 12 +++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/codegen/Cargo.toml b/lib/codegen/Cargo.toml index 4f3cda4cad..cd22362c63 100644 --- a/lib/codegen/Cargo.toml +++ b/lib/codegen/Cargo.toml @@ -21,8 +21,9 @@ target-lexicon = { version = "0.0.3", default-features = false } # machine code. Integration tests that need external dependencies can be # accomodated in `tests`. -[build-dependencies] -cranelift-codegen-meta = { path = "../codegen-meta", version = "0.17.0-alpha" } +# Temporarily disable this while we work out how to publish this crate. +#[build-dependencies] +#cranelift-codegen-meta = { path = "../codegen-meta", version = "0.17.0-alpha" } [features] # The "std" feature enables use of libstd. The "core" feature enables use diff --git a/lib/codegen/build.rs b/lib/codegen/build.rs index 5e9795d8d5..78a87f1ee7 100644 --- a/lib/codegen/build.rs +++ b/lib/codegen/build.rs @@ -18,7 +18,8 @@ // The build script expects to be run from the directory where this build.rs file lives. The // current directory is used to find the sources. -extern crate cranelift_codegen_meta as meta; +// Temporarily disable this while we work out how to publish this crate. +//extern crate cranelift_codegen_meta as meta; use std::env; use std::process; @@ -80,10 +81,11 @@ fn main() { // Now that the Python build process is complete, generate files that are // emitted by the `cretonne_codegen_meta` crate. // ------------------------------------------------------------------------ - if let Err(err) = meta::gen_types::generate("new_types.rs", &out_dir) { - eprintln!("Error: {}", err); - process::exit(1); - } + // Temporarily disable this while we work out how to publish this crate. + //if let Err(err) = meta::gen_types::generate("new_types.rs", &out_dir) { + // eprintln!("Error: {}", err); + // process::exit(1); + //} } fn identify_python() -> &'static str {