This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Change CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL to affect driver default instead of cc1 default
ClosedPublic

Authored by MaskRay on Apr 13 2022, 4:34 PM.

Details

Summary

The current cc1 CLANG_ENABLE_OPAQUE_POINTERS=on default difference is not ideal
in that people contribute %clang_cc1 tests may assume the default ON behavior,
which will cause failures on systems set to OFF.

cc1 option default dependent on CMake options should be used prudently
(generally avoided). We prefer to limit target differences to Driver.

Change the CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL mechanism introduced in D123122
to use a driver default instead. This is similar to the mechanism used for the
-flegacy-pass-manager transition to new PM transition.

Diff Detail

Event Timeline

MaskRay created this revision.Apr 13 2022, 4:34 PM
Herald added a reviewer: ctetreau. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: StephenFan. · View Herald Transcript
MaskRay requested review of this revision.Apr 13 2022, 4:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 13 2022, 4:34 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aeubanks accepted this revision.Apr 13 2022, 4:38 PM
This revision is now accepted and ready to land.Apr 13 2022, 4:38 PM
rsmith accepted this revision.Apr 13 2022, 4:46 PM
MaskRay updated this revision to Diff 422692.Apr 13 2022, 4:53 PM
MaskRay edited the summary of this revision. (Show Details)

Add tests

This revision was landed with ongoing or failed builds.Apr 13 2022, 4:58 PM
This revision was automatically updated to reflect the committed changes.