[flang-commits] [clang] [flang] [flang] Emit target features for PPC (PR #169860)
via flang-commits
flang-commits at lists.llvm.org
Fri Nov 28 08:16:51 PST 2025
================
@@ -371,6 +434,11 @@ bool CompilerInstance::setUpTargetMachine() {
/*Reloc::Model=*/CGOpts.getRelocationModel(),
/*CodeModel::Model=*/cm, OptLevel));
assert(targetMachine && "Failed to create TargetMachine");
+
+ if (!triple.isPPC()) {
+ targetOpts.targetFeatureStr = targetMachine->getTargetFeatureString();
+ }
----------------
jeanPerier wrote:
Same here, it is odd to me that PPC is doing something different than the rest here.
https://github.com/llvm/llvm-project/pull/169860
More information about the flang-commits
mailing list