From 94152ca701929d877d0ca94f922ba29fbafd46f3 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Thu, 27 Feb 2025 22:45:34 +0100 Subject: [PATCH] misc/featuregen: fix script --- misc/featuregen/featuregen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/featuregen/featuregen.py b/misc/featuregen/featuregen.py index ecc47f70cb1..534934b874f 100644 --- a/misc/featuregen/featuregen.py +++ b/misc/featuregen/featuregen.py @@ -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 @@ -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]