This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Add support for building LLVM on SerenityOS
Needs ReviewPublic

Authored by ADKaster on Jul 3 2023, 6:54 PM.
This revision needs review, but there are no reviewers specified.



Adds SerenityOS #ifdefs for platform-specific code.

We stub out wait4, as SerenityOS doesn't support querying a child
process's resource usage information.

POSIX shm is not supported by SerenityOS yet, so disable it in Orc.

Serenity gives each thread a default of 1MiB of stack. Increase the
default stack size for llvm applications when running on SerenityOS.

Depends on D154399

Co-Authored-By: sin-ack <>
Co-Authored-By: Tim Schumacher <>

Diff Detail

Event Timeline

ADKaster created this revision.Jul 3 2023, 6:54 PM
ADKaster requested review of this revision.Jul 3 2023, 6:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2023, 6:54 PM
brad added a subscriber: brad.Fri, Nov 24, 12:53 AM
brad added inline comments.

You will want to add an entry here. If you don't have any such API then at the bare minimum add Serenity next to OpenBSD.