This is an archive of the discontinued LLVM Phabricator instance.

[Support] Implement getMainExecutable for OpenBSD
ClosedPublic

Authored by brad on Aug 29 2023, 11:02 PM.

Details

Summary

This uses just argv[0] on OpenBSD. OpenBSD does not support the /proc filesystem.

Diff Detail

Event Timeline

brad created this revision.Aug 29 2023, 11:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 11:02 PM
brad requested review of this revision.Aug 29 2023, 11:02 PM
MaskRay accepted this revision.Aug 30 2023, 12:42 PM

You may want to do more testing and study some changes in this function.
getMainExecutable is used by clang driver and libclang (C API) to find resource directories.

This revision is now accepted and ready to land.Aug 30 2023, 12:42 PM
This revision was landed with ongoing or failed builds.Sep 1 2023, 4:48 PM
This revision was automatically updated to reflect the committed changes.