lib/codegen-meta moved into lib/codegen. (#423)

* lib/codegen-meta moved into lib/codegen.

* Renamed codegen-meta and existing meta.
This commit is contained in:
data-pup
2018-07-31 10:56:26 -04:00
committed by Dan Gohman
parent 65a1a6bb28
commit d9d40e1cdf
89 changed files with 7 additions and 9 deletions

View File

@@ -21,9 +21,8 @@ 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`.
# Temporarily disable this while we work out how to publish this crate. [build-dependencies]
#[build-dependencies] cranelift-meta = { path = "meta", version = "0.17.0-alpha" }
#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,8 +18,7 @@
// 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.
// Temporarily disable this while we work out how to publish this crate. extern crate cranelift_meta as meta;
//extern crate cranelift_codegen_meta as meta;
use std::env; use std::env;
use std::process; use std::process;
@@ -57,8 +56,8 @@ fn main() {
crate_dir.join("build.rs").to_str().unwrap() crate_dir.join("build.rs").to_str().unwrap()
); );
// Scripts are in `$crate_dir/meta`. // Scripts are in `$crate_dir/meta-python`.
let meta_dir = crate_dir.join("meta"); let meta_dir = crate_dir.join("meta-python");
let build_script = meta_dir.join("build.py"); let build_script = meta_dir.join("build.py");
// Launch build script with Python. We'll just find python in the path. // Launch build script with Python. We'll just find python in the path.
@@ -79,7 +78,7 @@ fn main() {
// DEVELOPMENT: // DEVELOPMENT:
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
// 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 `meta` crate.
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
// Temporarily disable this while we work out how to publish this crate. // 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) { //if let Err(err) = meta::gen_types::generate("new_types.rs", &out_dir) {

View File

@@ -1,5 +1,5 @@
[package] [package]
name = "cranelift-codegen-meta" name = "cranelift-meta"
authors = ["The Cranelift Project Developers"] authors = ["The Cranelift Project Developers"]
version = "0.17.0" version = "0.17.0"
description = "Metaprogram for cranelift-codegen code generator library" description = "Metaprogram for cranelift-codegen code generator library"