Add cc65 artifacts to repo for now
Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Failing after 38s
Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Failing after 38s
This commit is contained in:
21
build.rs
21
build.rs
@@ -42,17 +42,18 @@ fn main() {
|
||||
let file = file.expect("test");
|
||||
let file_name = file.file_name();
|
||||
let file_name = file_name.to_str().unwrap();
|
||||
if let Some(file_name) = file_name.strip_suffix(".asm") {
|
||||
run(
|
||||
format_args!("asm6f {file_name}"),
|
||||
Command::new("./asm6f")
|
||||
.arg(file.file_name())
|
||||
.arg(format!("{name}/{file_name}.nes")),
|
||||
);
|
||||
} else if let Some(file_name) = file_name.strip_suffix(".s") {
|
||||
// if let Some(file_name) = file_name.strip_suffix(".asm") {
|
||||
// run(
|
||||
// format_args!("asm6f {file_name}"),
|
||||
// Command::new("./asm6f")
|
||||
// .arg(file.file_name())
|
||||
// .arg(format!("{name}/{file_name}.nes")),
|
||||
// );
|
||||
// } else
|
||||
if let Some(file_name) = file_name.strip_suffix(".s") {
|
||||
run(
|
||||
format_args!("ca65 {file_name}"),
|
||||
Command::new("/home/matthew/cc65/bin/ca65")
|
||||
Command::new("../../cc65/bin/ca65")
|
||||
.arg("-I")
|
||||
.arg("common")
|
||||
.arg("-o")
|
||||
@@ -61,7 +62,7 @@ fn main() {
|
||||
);
|
||||
run(
|
||||
format_args!("ld65 {file_name}"),
|
||||
Command::new("/home/matthew/cc65/bin/ld65")
|
||||
Command::new("../../cc65/bin/ld65")
|
||||
.arg("-C")
|
||||
.arg("nes.cfg")
|
||||
.arg("-o")
|
||||
|
||||
Reference in New Issue
Block a user