This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Don't set <PROJECT>_STANDALONE_BUILD
ClosedPublic

Authored by phosek on Feb 8 2019, 6:48 PM.

Details

Summary

We shouldn't be treating runtimes builds as standalone builds since
we have enough of the context loaded into the runtimes environment.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Feb 8 2019, 6:48 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 8 2019, 6:48 PM
Herald added subscribers: llvm-commits, Restricted Project, mgorny. · View Herald Transcript
smeenai accepted this revision.Feb 8 2019, 6:57 PM

LGTM, thanks! I think this makes more sense than before.

This revision is now accepted and ready to land.Feb 8 2019, 6:57 PM
This revision was automatically updated to reflect the committed changes.
beanz added a comment.May 23 2019, 1:20 PM

I know this is an old change, but there are actually some big problems with this. Compiler-RT in particular uses COMPILER_RT_STANDALONE_BUILD=Off to basically mean clang is a target in-tree to depend on. This completely breaks being able to run the compiler-rt tests from the runtimes directory because a bunch of the tests add dependencies on clang. See clang_compile and its uses in CompilerRTCompile.cmake.