Skip to content

Commit 157c45b

Browse files
committed
Another version guard
1 parent 0b19fdd commit 157c45b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/processor.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,12 @@ static std::string jl_get_cpu_name_llvm(void)
978978

979979
static std::string jl_get_cpu_features_llvm(void)
980980
{
981+
#if JL_LLVM_VERSION >= 190000
981982
auto HostFeatures = llvm::sys::getHostCPUFeatures();
983+
#else
984+
llvm::StringMap<bool> HostFeatures;
985+
llvm::sys::getHostCPUFeatures(HostFeatures);
986+
#endif
982987
std::string attr;
983988
for (auto &ele: HostFeatures) {
984989
if (ele.getValue()) {

0 commit comments

Comments
 (0)