Page MenuHomePhabricator

[Clang][Driver] Recognize the AIX OBJECT_MODE environment setting

Authored by daltenty on Jun 24 2020, 9:26 AM.



AIX uses an environment variable called OBJECT_MODE to indicate to
utilities in the toolchain whether they should be operating in 32-bit or
64-bit mode. This patch makes the clang driver recognize the current
OBJECT_MODE setting when we are operating with an AIX target and adds a
custom diagnostic for invalid settings.

For more details about OBJECT_MODE on AIX see:

Diff Detail

Event Timeline

daltenty created this revision.Jun 24 2020, 9:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2020, 9:26 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jasonliu accepted this revision.Wed, Jul 8, 12:33 PM
jasonliu added a subscriber: jasonliu.


This revision is now accepted and ready to land.Wed, Jul 8, 12:33 PM
hubert.reinterpretcast marked an inline comment as done.

LGTM with minor nit.


Just a note: I guess having an AIX target is an okay proxy for being on AIX here... I don't think enabling OBJECT_MODE for other targets when building on AIX is superior.


Minor nit: Add "that" between "Check" and "setting".

daltenty marked an inline comment as done.Thu, Jul 9, 12:12 PM
This revision was automatically updated to reflect the committed changes.