This fixes (one aspect of) compilation of LLDB with MSVC for ARM64.
LLDB source files include intrin.h, and the MSVC intrin.h transitively includes arm64intr.h, which has an ARM64_FPSR define, which clashes with the enum declaration.
Differential D67864
[CodeView] Add pragma push/pop_macro for ARM64_FPSR to enum header mstorsjo on Sep 20 2019, 1:53 PM. Authored by
Details This fixes (one aspect of) compilation of LLDB with MSVC for ARM64. LLDB source files include intrin.h, and the MSVC intrin.h transitively includes arm64intr.h, which has an ARM64_FPSR define, which clashes with the enum declaration.
Diff Detail
Event TimelineComment Actions Thanks for catching this. Could the #pragma push and #undef be moved to the line right before CV_REGISTER(ARM64_FPSR, 220). An inline commend will also be great. Comment Actions I guess I could, but the file has a predecent for this kind of placement (for CR0) as well.
Sure, I'll add that. |