- added support for args in Builder trait
- added is_lib arg for compiler to produce non-main assembly outputs - updated templates to use include_str
This commit is contained in:
@@ -426,7 +426,7 @@ impl Editor {
|
||||
match path.extension().and_then(|ext| ext.to_str()) {
|
||||
Some("dsa") => {
|
||||
let mut assembler = Assembler::new(path);
|
||||
assembler.start();
|
||||
assembler.start(());
|
||||
|
||||
// Or block until done
|
||||
self.output = match assembler.output() {
|
||||
@@ -440,7 +440,9 @@ impl Editor {
|
||||
Some("dsc") => {
|
||||
let dsa_path = Path::new(path).with_extension("dsa");
|
||||
let mut compiler = Compiler::new(path);
|
||||
compiler.start();
|
||||
|
||||
let is_lib = false;
|
||||
compiler.start(is_lib);
|
||||
|
||||
if let Err(e) = compiler.write_result(&dsa_path) {
|
||||
self.error = Some(e.to_string());
|
||||
@@ -448,7 +450,7 @@ impl Editor {
|
||||
}
|
||||
|
||||
let mut assembler = Assembler::new(&dsa_path);
|
||||
assembler.start();
|
||||
assembler.start(());
|
||||
|
||||
// Or block until done
|
||||
self.output = match assembler.output() {
|
||||
|
||||
Reference in New Issue
Block a user