forked from M-Labs/nac3
fix parallel compilation
This commit is contained in:
parent
d561450bf5
commit
8acb39f31f
@ -8,5 +8,5 @@ if [ -z "$1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
../../target/release/nac3standalone $1
|
../../target/release/nac3standalone $1
|
||||||
clang -Wall -O2 -o $1.elf demo.c $1.o
|
clang -Wall -O2 -o $1.elf demo.c module*.o
|
||||||
./$1.elf
|
./$1.elf
|
||||||
|
@ -141,7 +141,7 @@ fn main() {
|
|||||||
)
|
)
|
||||||
.expect("couldn't create target machine");
|
.expect("couldn't create target machine");
|
||||||
target_machine
|
target_machine
|
||||||
.write_to_file(module, FileType::Object, Path::new(&(demo_name.to_owned() + ".o")))
|
.write_to_file(module, FileType::Object, Path::new(&format!("{}.o", module.get_name().to_str().unwrap())))
|
||||||
.expect("couldn't write module to file");
|
.expect("couldn't write module to file");
|
||||||
|
|
||||||
// println!("IR:\n{}", module.print_to_string().to_str().unwrap());
|
// println!("IR:\n{}", module.print_to_string().to_str().unwrap());
|
||||||
|
Loading…
Reference in New Issue
Block a user