We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b19fdd commit 157c45bCopy full SHA for 157c45b
src/processor.cpp
@@ -978,7 +978,12 @@ static std::string jl_get_cpu_name_llvm(void)
978
979
static std::string jl_get_cpu_features_llvm(void)
980
{
981
+#if JL_LLVM_VERSION >= 190000
982
auto HostFeatures = llvm::sys::getHostCPUFeatures();
983
+#else
984
+ llvm::StringMap<bool> HostFeatures;
985
+ llvm::sys::getHostCPUFeatures(HostFeatures);
986
+#endif
987
std::string attr;
988
for (auto &ele: HostFeatures) {
989
if (ele.getValue()) {
0 commit comments