Skip to content

Commit

Permalink
Fix for top-of-tree LLVM (halide#7798)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson authored and ardier committed Mar 3, 2024
1 parent 1a3755e commit 4ff5003
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/LLVM_Output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,11 @@ void create_static_library(const std::vector<std::string> &src_files_in, const T
return;
}

#if LLVM_VERSION >= 180
const llvm::SymtabWritingMode write_symtab = llvm::SymtabWritingMode::NormalSymtab;
#else
const bool write_symtab = true;
#endif
const auto kind = Internal::get_triple_for_target(target).isOSDarwin() ? llvm::object::Archive::K_BSD : llvm::object::Archive::K_GNU;
const bool thin = false;
auto result = llvm::writeArchive(dst_file, new_members,
Expand Down

0 comments on commit 4ff5003

Please sign in to comment.