This is an archive of the discontinued LLVM Phabricator instance.

Fix libc++ clang-cl build, swap attribute order
ClosedPublic

Authored by rnk on Jan 15 2021, 9:00 AM.

Details

Reviewers
ldionne
mstorsjo
Group Reviewers
Restricted Project
Commits
rG4f24d0dd5386: Fix libc++ clang-cl build, swap attribute order
Summary

Clang insists that attribute attributes precede __declspec
attributes. This is a longstanding known issue:
https://llvm.org/pr24559. Re-order the visibility and deprecation macros
to fix the build.

Diff Detail

Event Timeline

rnk requested review of this revision.Jan 15 2021, 9:00 AM
rnk created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 15 2021, 9:00 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
mstorsjo accepted this revision.Jan 15 2021, 9:25 AM
mstorsjo added a subscriber: mstorsjo.

LGTM fwiw, I just looked into the same yesterday, but I guess @ldionne should ack it too.

ldionne accepted this revision.Jan 15 2021, 9:57 AM

LGTM, but we should really fix the clang bug. Please wait for CI to finish before committing.

This revision is now accepted and ready to land.Jan 15 2021, 9:57 AM
This revision was automatically updated to reflect the committed changes.