arch spec for ld

This commit is contained in:
SpookyDervish
2025-09-02 16:01:11 +10:00
parent 91fa1577ab
commit aac6608311

View File

@@ -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")