Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoblon committed Feb 25, 2020
1 parent d0272ee commit a67e557
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rudder-lang/src/compile.rs
Expand Up @@ -67,6 +67,7 @@ pub fn compile_file(source: &Path, dest: &Path, technique: bool) -> Result<()> {
// read and add files
let oses = Path::new(oslib);
let corelib = Path::new("libs/corelib.rl");
let cfenginecore = Path::new("libs/cfengine_core.rl");
let stdlib = Path::new("libs/stdlib.rl");
let input_filename = source.to_string_lossy();
let output_filename = dest.to_string_lossy();
Expand All @@ -81,6 +82,7 @@ pub fn compile_file(source: &Path, dest: &Path, technique: bool) -> Result<()> {
// data
let mut past = PAST::new();
add_file(&mut past, &sources, corelib, "corelib.rl")?;
add_file(&mut past, &sources, cfenginecore, "cfengine_core.rl")?;
add_file(&mut past, &sources, stdlib, "stdlib.rl")?;
add_file(&mut past, &sources, oses, "oslib.rl")?;
add_file(&mut past, &sources, source, &input_filename)?;
Expand Down

0 comments on commit a67e557

Please sign in to comment.