1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/sdc/avoid-builder-specific-cpu-features.patch
Celeste bfe658f739 testing/sdc: avoid builder specific cpu name too
it seems some features may be detected through the name

had to run the file-to-patch through `sdfmt` to prevent `make check` from failing
2025-06-22 16:35:26 +00:00

23 lines
678 B
Diff

Prevent instructions that are unsupported by older CPUs from being used
Run backend.d through `sdfmt`, to prevent `make check` from failing
--- a/src/d/llvm/backend.d
+++ b/src/d/llvm/backend.d
@@ -41,14 +41,8 @@ public:
}
targetMachine = LLVMCreateTargetMachine(
- LLVMGetFirstTarget(),
- LLVMGetDefaultTargetTriple(),
- LLVMGetHostCPUName(),
- LLVMGetHostCPUFeatures(),
- LLVMCodeGenOptLevel.Default,
- Reloc,
- LLVMCodeModel.Default,
- );
+ LLVMGetFirstTarget(), LLVMGetDefaultTargetTriple(), "x86-64", "",
+ LLVMCodeGenOptLevel.Default, Reloc, LLVMCodeModel.Default, );
pass = new CodeGen(sema, main, targetMachine, config.debugBuild);
}