exaloop / codon

A high-performance, zero-overhead, extensible Python compiler using LLVM
https://docs.exaloop.io/codon
Other
13.96k stars 498 forks source link

Codon compiler overwrites the source file with binary executable #465

Closed marioroy closed 9 months ago

marioroy commented 10 months ago

Steps to reproduce:

  1. Create a source file named hello.codonn (accidental typo)
  2. Compile with codon build -release hello.codonn
  3. The source file is overwritten
$ file hello.codonn
hello.codonn: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=f6ee9be78fa75aeb29112cb55e95bc9396065672, for GNU/Linux 3.10.0, with debug_info, not stripped
marioroy commented 9 months ago

From testing, Codon does not overwrite the source file using extensions .py or .codon.