Added __cxxabi_config.h includes to resolve _LIBCXXABI_ARM_EHABI and proper building the forces_unwindX.cpp tests for the ARM/EHABI targets.
Details
- Reviewers
MaskRay ldionne - Group Reviewers
Restricted Project - Commits
- rGc40b83199f01: [libc++abi] Fix forced_unwind tests failures on ARM/EHABI targets.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
ref https://reviews.llvm.org/D95200
Here is one of the failed builds for armv7 target
http://lab.llvm.org:8011/#/builders/60/builds/1950
You are right, we don't need it. I did a copy/paste from another test.
Updated diff without cxxabi.h.
The int main() {} change is unnecessary but I don't know the libc++ specific code style well.
You still need an owner's approval.
LGTM except the nitpick about how main() is declared. When testing under freestanding mode, main isn't considered special. It needs to be declared as int main(int, char**) so it mangles the right way and we can call it explicitly from the test harness. It's kind of nitpicky.
libcxxabi/test/forced_unwind1.pass.cpp | ||
---|---|---|
21 | Can you use int main(int, char**)? |
libcxxabi/test/forced_unwind1.pass.cpp | ||
---|---|---|
21 | yes, I'll update it accordingly. Should we do the same for main() of the original test? I can update it there either. |
Can you use int main(int, char**)?