jfecher / ante

A safe, easy systems language
http://antelang.org
MIT License
1.9k stars 80 forks source link

Fix linker bug where input and output are the same path #107

Closed 0b01 closed 2 years ago

0b01 commented 2 years ago

This PR fixes a bug so cranelift backend works again. Previosuly, the input and output are the same path.

jfecher commented 2 years ago

Hmm, what was the command where this was failing for you?

0b01 commented 2 years ago
root@codespaces-22b8ef:/workspaces/ante# cargo run -- --build examples/codegen/mutability.an 
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/ante --build examples/codegen/mutability.an`
gcc: fatal error: input file 'examples/codegen/mutability' is the same as output file
compilation terminated.
jfecher commented 2 years ago

Thanks, the --build flag is unimplemented for AArch64 on cranelift so it isn't tested as frequently