This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Include ZLIB_ROOT in LLVMConfig.cmake
ClosedPublic

Authored by Jake-Egan on Dec 23 2021, 12:44 PM.

Details

Summary

Include the value of ZLIB_ROOT in LLVMConfig.cmake so FindZLIB can pick it up. This fixes an issue where ZLIB is not found on AIX runtimes despite specifying -DZLIB_ROOT.

Diff Detail

Event Timeline

Jake-Egan created this revision.Dec 23 2021, 12:44 PM
Jake-Egan requested review of this revision.Dec 23 2021, 12:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 23 2021, 12:44 PM
Jake-Egan edited the summary of this revision. (Show Details)Dec 23 2021, 12:47 PM
Jake-Egan added a reviewer: daltenty.
daltenty accepted this revision.Jan 5 2022, 8:25 AM

LGTM, if the user is setting the ZLIB_ROOT at configure time we should pass it on to the other build stages (e.g compiler-rt)

This revision is now accepted and ready to land.Jan 5 2022, 8:25 AM
This revision was landed with ongoing or failed builds.Jan 6 2022, 8:25 AM
This revision was automatically updated to reflect the committed changes.