Skip to content

Commit 35e05aa

Browse files
committed
fix: CI linker error in 9.3 SDK
1 parent 7c2993e commit 35e05aa

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,6 @@ jobs:
400400
if: matrix.os == 'windows-2022'
401401
shell: cmd
402402
# reuse IDA9_Qt6_x64 target but specify 9.3 sdk
403-
env:
404-
LINK: "${{ env.IDASDK_GITHUB_V93_FOLDER }}\\src\\lib\\x64_win_vc_64_s\\int128.lib"
405403
run: |
406404
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe" ^
407405
labeless.sln /t:labeless_ida:Rebuild /p:Configuration=IDA9_Qt6_x64 /p:Platform=x64 /v:m /property:QTDIR=c:\depz\qt6.8.2_msvc2015_x64_qt_namespace\build6.8.2-x64 "/p:IDA_DIR=${{ env.IDASDK_GITHUB_V93_FOLDER }}/srs" "/p:SDK_DIR=${{ env.IDASDK_GITHUB_V93_FOLDER }}/src"

labeless_ida/types.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,13 @@ ScopedWaitBox::~ScopedWaitBox()
9494
{
9595
hide_wait_box();
9696
}
97+
98+
#if (IDA_SDK_VERSION >= 930)
99+
// fix of broken 9.3 sdk
100+
uint128 operator<<(const uint128& x, int cnt)
101+
{
102+
uint64 l = x.l << cnt;
103+
uint64 h = (x.h << cnt) | (x.l >> (64 - cnt));
104+
return uint128(l, h);
105+
}
106+
#endif // (IDA_SDK_VERSION >= 930)

0 commit comments

Comments
 (0)