Skip to content

Commit

Permalink
Move lalrpop generated code to OUT_DIR
Browse files Browse the repository at this point in the history
Closes: aptos-labs#1064
Approved by: bmwill
  • Loading branch information
Tristan Debrunner authored and bors-libra committed Sep 25, 2019
1 parent 5653212 commit 7f6d31b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
# Ignore wallet mnemonic files used for deterministic key derivation
*.mnemonic

# Generated Parser File by LALRPOP
language/compiler/ir_to_bytecode/syntax/src/syntax.rs
# Older locations for this file.
language/compiler/ir_to_bytecode/src/parser/syntax.rs
language/move_ir/

# GDB related
**/.gdb_history

Expand Down
2 changes: 1 addition & 1 deletion language/compiler/ir_to_bytecode/syntax/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

fn main() {
lalrpop::Configuration::new()
.generate_in_source_tree()
.use_cargo_dir_conventions()
.process()
.unwrap();
}
1 change: 1 addition & 0 deletions language/compiler/ir_to_bytecode/syntax/src/syntax.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include!(concat!(env!("OUT_DIR"), "/syntax.rs"));

0 comments on commit 7f6d31b

Please sign in to comment.