This is an archive of the discontinued LLVM Phabricator instance.

Use clang --driver-mode instead of guessing c++ compiler path
ClosedPublic

Authored by beanz on Oct 18 2016, 2:53 PM.

Details

Summary

When building the LLDB test programs, if your CC is clang it actually isn't safe to make CXX a string replace of "clang -> clang++". This falls down on unix configurations if your compiler is clang-${version}.

A safer approach is to use the "--driver-mode=g++" option to tell clang to act like clang++.

Diff Detail

Repository
rL LLVM

Event Timeline

beanz updated this revision to Diff 75078.Oct 18 2016, 2:53 PM
beanz retitled this revision from to Use clang --driver-mode instead of guessing c++ compiler path.
beanz updated this object.
beanz added reviewers: tfiala, zturner, labath.
beanz added a subscriber: lldb-commits.
tfiala accepted this revision.Oct 18 2016, 3:00 PM
tfiala edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Oct 18 2016, 3:00 PM
This revision was automatically updated to reflect the committed changes.