[winpr,utils] fix undefined unwind symbols

on arm some reason codes are not defined.
This commit is contained in:
akallabeth 2024-10-08 10:08:52 +02:00
parent 0c0a5f4234
commit 1952cd0e66
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
2 changed files with 3 additions and 4 deletions

View File

@ -97,7 +97,6 @@ jobs:
-DCMAKE_INSTALL_PREFIX=/tmp/ci-test \
-DCMAKE_C_COMPILER=/usr/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-DUSE_UNWIND=OFF \
-DUSE_EXECINFO=OFF \
-DWITH_SANITIZE_ADDRESS=OFF
cmake --build ci-build --parallel $(nproc) --target install

View File

@ -70,15 +70,15 @@ static const char* unwind_reason_str(_Unwind_Reason_Code code)
#else
case _URC_NO_REASON:
return "_URC_NO_REASON";
#endif
case _URC_FOREIGN_EXCEPTION_CAUGHT:
return "_URC_FOREIGN_EXCEPTION_CAUGHT";
case _URC_FATAL_PHASE2_ERROR:
return "_URC_FATAL_PHASE2_ERROR";
case _URC_FATAL_PHASE1_ERROR:
return "_URC_FATAL_PHASE1_ERROR";
case _URC_NORMAL_STOP:
return "_URC_NORMAL_STOP";
#endif
case _URC_FOREIGN_EXCEPTION_CAUGHT:
return "_URC_FOREIGN_EXCEPTION_CAUGHT";
case _URC_END_OF_STACK:
return "_URC_END_OF_STACK";
case _URC_HANDLER_FOUND: