Page MenuHomePhabricator

[clang][Driver] Default to loading clang.cfg if config file not specified
Needs ReviewPublic

Authored by asymptotically on Sep 10 2021, 11:45 AM.

Details

Reviewers
rsmith
sepavloff
Summary

If a configuration file is not supplied (either via the driver name or through the --config parameter), default to using clang.cfg so that distributions can easily provide default options.

Diff Detail

Event Timeline

asymptotically requested review of this revision.Sep 10 2021, 11:45 AM
asymptotically created this revision.
asymptotically edited the summary of this revision. (Show Details)Sep 10 2021, 11:47 AM
Arfrever added inline comments.
clang/docs/UsersManual.rst
878–879

This says armv7l.cfg...

clang/lib/Driver/Driver.cpp
1030

But this says armv7l-clang.cfg.
Could you also fix this inconsistency?

Updated users' manual following Arfrever's feedback.

Herald added a project: Restricted Project. · View Herald TranscriptJun 18 2022, 12:50 AM
Herald added a subscriber: MaskRay. · View Herald Transcript