This is an archive of the discontinued LLVM Phabricator instance.

[CMake][runtimes] Set default directory for runtime libraries
AbandonedPublic

Authored by Hahnfeld on May 2 2017, 12:28 AM.

Details

Summary

This will put libraries into the build root's lib/ directory by default.

Diff Detail

Event Timeline

Hahnfeld created this revision.May 2 2017, 12:28 AM
beanz edited edge metadata.May 8 2017, 1:24 PM

What is the problem you're trying to solve here? This seems odd to me.

What is the problem you're trying to solve here? This seems odd to me.

If the runtime libraries are needed to run the tests, the just-built compiler won't find them unless they are in lib/.

beanz added a subscriber: phosek.

Sorry for the delay, I've been out of town. I want to loop @phosek into this. I don't think this patch is correct. When I build on Darwin the sanitizer libraries are put in the build directory under lib/clang/$version/darwin/lib (which is correct), and the other runtimes are built under /lib/. This all seems right to me, so I don't understand the problem you're experiencing.

@phosek has been doing a lot of work on the runtimes build lately, so he might have a better understanding of what is going on.

Hahnfeld abandoned this revision.Feb 1 2018, 5:50 AM

Not interested anymore for my use case.