This is an archive of the discontinued LLVM Phabricator instance.

[clang][Tooling] Infer target and mode from argv[0] when using JSONCompilationDatabase
ClosedPublic

Authored by kadircet on Jun 25 2019, 12:55 AM.

Details

Summary

Wraps JSON compilation database with a target and mode adding database
wrapper. So that driver can correctly figure out which toolchain to use.

Note that clients that wants to make use of this target discovery mechanism
needs to link in TargetsInfos and initialize them at startup.

Diff Detail

Repository
rL LLVM

Event Timeline

kadircet created this revision.Jun 25 2019, 12:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2019, 12:55 AM
This revision is now accepted and ready to land.Jun 25 2019, 1:13 AM
kadircet updated this revision to Diff 206386.Jun 25 2019, 1:14 AM
  • Rename file
  • Fix tests
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2019, 12:39 AM