This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix wrappergen_test.cpp on runtimes build
ClosedPublic

Authored by jhuber6 on Dec 5 2022, 10:49 AM.

Details

Summary

The tools directory depends on llvm_gtest which is not immediately
availible with a runtimes build. This patch builds the llvm_gtest
target if it isn't present. Additionally, we use the CMake binary
directory to find the tool binary, which is different when using a
runtimes build. Using the LLVM binary directory should match both build
conditions.

Diff Detail

Event Timeline

jhuber6 created this revision.Dec 5 2022, 10:49 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 5 2022, 10:49 AM
jhuber6 requested review of this revision.Dec 5 2022, 10:49 AM
lntue accepted this revision.Dec 5 2022, 2:22 PM
This revision is now accepted and ready to land.Dec 5 2022, 2:22 PM
This revision was automatically updated to reflect the committed changes.