Commit f1767e3d authored by Jeff Smits's avatar Jeff Smits

Updated include of file name generated by build.rs

Also took out the two empty primitives suites for now to keep out
warnings from rustc.
parent 183e9863
......@@ -22,10 +22,11 @@ fn gen_primitives() {
("libstratego-lib", r#"("libstratego-lib/libstratego-lib-posix-xsi.ctree", Some(&SSL))"#),
("libstratego-rtg", r#"("libstratego-rtg/libstratego-rtg.ctree", None)"#),
("libstratego-sdf", r#"("libstratego-sdf/libstratego-sdf.ctree", None)"#),
("libstratego-sglr", r#"("libstratego-sglr/libstratego-sglr.ctree", Some(&JSGLR))"#),
("libstratego-sglr", r#"("libstratego-sglr/libstratego-sglr.ctree", None)"#),//Some(&JSGLR))"#),
("libstratego-tool-doc", r#"("libstratego-tool-doc/libstratego-tool-doc.ctree", None)"#),
("libstratego-xtc", r#"("libstratego-xtc/libstratego-xtc.ctree", Some(&SSL))"#),
("libstrc", r#"("libstrc/libstrc.ctree", Some(&STRC))"#)];
("libstrc", r#"("libstrc/libstrc.ctree", None)"#),//Some(&STRC))"#)
];
let ssl = [// INT
"is_int",
......@@ -154,9 +155,9 @@ fn gen_primitives() {
// STACKTRACE
"stacktrace_get_all_frame_names"];
let jsglr = [];
// let jsglr = [];
let strc = [];
// let strc = [];
writeln!(&mut file,
"pub type Primitives = phf::Map<&'static str, (Libs, usize)>;")
......@@ -174,7 +175,7 @@ fn gen_primitives() {
writeln!(&mut file, ";").unwrap();
write_primitive_libs(&mut file,
&[("ssl", &ssl), ("jsglr", &jsglr), ("strc", &strc)])
&[("ssl", &ssl)])//, ("jsglr", &jsglr), ("strc", &strc)])
.unwrap();
}
......
......@@ -10,4 +10,4 @@ use phf;
pub mod ssl;
include!(concat!(env!("OUT_DIR"), "/codegen.rs"));
include!(concat!(env!("OUT_DIR"), "/primitives.rs"));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment