This is an archive of the discontinued LLVM Phabricator instance.

build: add clang-cl and clang++ symlinks in the build tree
AbandonedPublic

Authored by compnerd on Oct 18 2019, 1:59 PM.

Details

Summary

This adds the clang-cl and clang++ symlinks. Since there are no targets to depend on for this, we cannot force the creation of the symlinks. Furthermore, the current build only installs the symbolic links in the install tree, not the build tree. This enables the use of the clang driver without having adjust the C/C++ flags to add --driver=... to switch between driver modes. Usage of this is present in Swift and there is some usage in lldb.

Diff Detail

Repository
rC Clang

Event Timeline

compnerd created this revision.Oct 18 2019, 1:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 18 2019, 1:59 PM
Herald added a subscriber: mgorny. · View Herald Transcript

Furthermore, the current build only installs the symbolic links in the install tree, not the build tree

This isn't right ... if I look at my LLVM build tree, I have clang, clang++ and clang-cl symlinks, all pointing to the actual clang-10 binary.

Where are you seeing this?

compnerd abandoned this revision.Oct 19 2019, 5:23 PM

I think I must have had something else in my tree, cause a clean build does build them.