Skip to content

Commit

Permalink
Fix for top-of-tree LLVM (#7798)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson committed Aug 23, 2023
1 parent acc9413 commit e8df5cf
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 e8df5cf

Please sign in to comment.