Skip to content

Commit

Permalink
misc/featuregen: fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Feb 27, 2025
1 parent 882186f commit 94152ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/featuregen/featuregen.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
temp_file.write(b"package main\n")

for arch, target, triple, cpus, features in archs:
cmd = ["odin", "build", temp_file.name, "-file", "-build-mode:llvm", "-out:temp", "-target-features:\"help\"", f"-target:\"{target}\""]
cmd = ["odin", "build", temp_file.name, "-file", "-use-single-module", "-build-mode:asm", "-out:temp", "-target-features:\"help\"", f"-target:\"{target}\""]
process = subprocess.Popen(cmd, stderr=subprocess.PIPE, text=True)

state = SEEKING_CPUS
Expand Down Expand Up @@ -59,7 +59,7 @@
print(f"odin build returned with non-zero exit code {process.returncode}")
sys.exit(1)

os.remove("temp.ll")
os.remove("temp.S")

def print_default_features(triple, microarch):
cmd = ["./featuregen", triple, microarch]
Expand Down

0 comments on commit 94152ca

Please sign in to comment.