Page MenuHomePhabricator

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

Authored by kadircet on Tue, Jun 25, 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.Tue, Jun 25, 12:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptTue, Jun 25, 12:55 AM
This revision is now accepted and ready to land.Tue, Jun 25, 1:13 AM
kadircet updated this revision to Diff 206386.Tue, Jun 25, 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 TranscriptWed, Jun 26, 12:39 AM