diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2025-02-27 22:45:34 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2025-02-27 22:45:34 +0100 |
| commit | 94152ca701929d877d0ca94f922ba29fbafd46f3 (patch) | |
| tree | 7d756c81ad54b17b12baf45c544fa4e4e6cee06c /misc | |
| parent | 882186f4dacc6471e86588bbf410bf12fb807d14 (diff) | |
misc/featuregen: fix script
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/featuregen/featuregen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/featuregen/featuregen.py b/misc/featuregen/featuregen.py index ecc47f70c..534934b87 100644 --- a/misc/featuregen/featuregen.py +++ b/misc/featuregen/featuregen.py @@ -21,7 +21,7 @@ with tempfile.NamedTemporaryFile(suffix=".odin", delete=True) as temp_file: 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 @@ with tempfile.NamedTemporaryFile(suffix=".odin", delete=True) as temp_file: 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] |