This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Build the dylib with -faligned-allocation
ClosedPublic

Authored by ldionne on Jul 23 2020, 8:10 AM.

Details

Reviewers
froydnj
dmajor
Group Reviewers
Restricted Project
Commits
rG918ba933673a: [libc++] Build the dylib with -faligned-allocation
Summary

This avoids issues when building the dylib for deployment targets that
don't support aligned allocation, where Clang normally triggers an
error to warn users their code would break at runtime when back-deployed.
Since we're building the dylib itself, which contains the aligned
allocation functions, we don't want to trigger that error.

Diff Detail

Event Timeline

ldionne created this revision.Jul 23 2020, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2020, 8:10 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

@dmajor @froydnj Can you please pull this downstream and tell me if that fixes your problem? It should.

Kicked off a run.

dmajor accepted this revision.Jul 23 2020, 10:05 AM

Our mac builds are back to green, and no complaints from the other platforms. Thank you!

This revision was not accepted when it landed; it landed in state Needs Review.Jul 23 2020, 11:04 AM
This revision was automatically updated to reflect the committed changes.