This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Add llvm-lib to Clang bootstrap dependency for LTO builds on Windows
ClosedPublic

Authored by ikudrin on Apr 19 2023, 3:25 PM.

Details

Summary

Without this dependency, it is possible that llvm-lib.exe will not be built, in which case CMake will try to use lib.exe to build libraries, but this tool cannot handle bitcode files.

Diff Detail

Event Timeline

ikudrin created this revision.Apr 19 2023, 3:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 3:25 PM
ikudrin requested review of this revision.Apr 19 2023, 3:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 3:25 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
mstorsjo added inline comments.Apr 19 2023, 9:23 PM
clang/CMakeLists.txt
619

I think I’d prefer to have the condition be MSVC, not WIN32, as we don’t want to use llvm-lib in the case of mingw.

ikudrin updated this revision to Diff 515215.Apr 19 2023, 9:44 PM
ikudrin marked an inline comment as done.
  • WIN32 -> MSVC

Thanks!

phosek accepted this revision.Apr 19 2023, 9:56 PM

LGTM

This revision is now accepted and ready to land.Apr 19 2023, 9:56 PM
This revision was landed with ongoing or failed builds.Apr 20 2023, 5:04 PM
This revision was automatically updated to reflect the committed changes.