================
@@ -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();
+ }
----------------
kkwli wrote:
We want to use the list (returned from
`llvm::PPC::getPPCDefaultTargetFeatures`) preserved. For PPC,
`targetMacine->getTargetFeatureString()` returns a longer list.
https://github.com/llvm/llvm-project/pull/169860
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits