Temporarily disable use of cretonne-codegen-meta.

Once we figure out how to publish this code, we can re-enable it.
This commit is contained in:
Dan Gohman
2018-07-23 16:53:14 -07:00
parent 6cb03a873d
commit 8904ec77c9
2 changed files with 10 additions and 7 deletions

View File

@@ -21,8 +21,9 @@ target-lexicon = { version = "0.0.3", default-features = false }
# machine code. Integration tests that need external dependencies can be # machine code. Integration tests that need external dependencies can be
# accomodated in `tests`. # accomodated in `tests`.
[build-dependencies] # Temporarily disable this while we work out how to publish this crate.
cranelift-codegen-meta = { path = "../codegen-meta", version = "0.17.0-alpha" } #[build-dependencies]
#cranelift-codegen-meta = { path = "../codegen-meta", version = "0.17.0-alpha" }
[features] [features]
# The "std" feature enables use of libstd. The "core" feature enables use # The "std" feature enables use of libstd. The "core" feature enables use

View File

@@ -18,7 +18,8 @@
// The build script expects to be run from the directory where this build.rs file lives. The // 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. // 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::env;
use std::process; use std::process;
@@ -80,10 +81,11 @@ fn main() {
// Now that the Python build process is complete, generate files that are // Now that the Python build process is complete, generate files that are
// emitted by the `cretonne_codegen_meta` crate. // emitted by the `cretonne_codegen_meta` crate.
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
if let Err(err) = meta::gen_types::generate("new_types.rs", &out_dir) { // Temporarily disable this while we work out how to publish this crate.
eprintln!("Error: {}", err); //if let Err(err) = meta::gen_types::generate("new_types.rs", &out_dir) {
process::exit(1); // eprintln!("Error: {}", err);
} // process::exit(1);
//}
} }
fn identify_python() -> &'static str { fn identify_python() -> &'static str {