Merge pull request #1199 from Skgland/do_not_gen_in_src
Generate into $OUT_DIR instead of src/
This commit is contained in:
@@ -21,7 +21,7 @@ pub struct Atom {
|
||||
|
||||
const_assert!(mem::size_of::<Atom>() == 8);
|
||||
|
||||
include!("./static_atoms.rs");
|
||||
include!(concat!(env!("OUT_DIR"), "/static_atoms.rs"));
|
||||
|
||||
impl<'a> From<&'a Atom> for Atom {
|
||||
#[inline]
|
||||
|
||||
@@ -21,7 +21,9 @@ mod heap_iter;
|
||||
pub mod heap_print;
|
||||
mod indexing;
|
||||
#[macro_use]
|
||||
pub mod instructions;
|
||||
pub mod instructions {
|
||||
include!(concat!(env!("OUT_DIR"), "/instructions.rs"));
|
||||
}
|
||||
mod iterators;
|
||||
pub mod machine;
|
||||
mod raw_block;
|
||||
@@ -29,3 +31,5 @@ pub mod read;
|
||||
mod targets;
|
||||
pub mod types;
|
||||
pub mod write;
|
||||
|
||||
use instructions::instr;
|
||||
|
||||
Reference in New Issue
Block a user