arch spec for ld
This commit is contained in:
2
main.py
2
main.py
@@ -31,7 +31,7 @@ def main():
|
|||||||
print(f"Compiled in {round(compile_time, 1)} seconds.")
|
print(f"Compiled in {round(compile_time, 1)} seconds.")
|
||||||
|
|
||||||
system(f"nasm -felf64 {out_path}.asm")
|
system(f"nasm -felf64 {out_path}.asm")
|
||||||
system(f"ld -arch elf_{arch} -o {out_path} {out_path}.o")
|
system(f"ld -m elf_{arch} -o {out_path} {out_path}.o")
|
||||||
remove(out_path + ".o")
|
remove(out_path + ".o")
|
||||||
#remove(out_path + ".asm")
|
#remove(out_path + ".asm")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user