Skip to content

Commit 3552af2

Browse files
committed
fix: disable Qt removed_api feature to prevent symbol conflicts
Qt was compiling removed_api.cpp which defined symbols like QLocale::QLocale, QReadWriteLock, etc. These were conflicting with the same symbols defined in qBittorrent itself and other libraries. Adding -no-feature-removed_api to the Qt configure step prevents Qt from building these deprecated APIs, eliminating the linker conflicts.
1 parent 3fa9fea commit 3552af2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci_windows_arm64_native.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
-static -static-runtime -release -xplatform win32-arm64-msvc `
131131
-prefix "${{ env.qt_target_root }}" `
132132
-qt-host-path "C:/Qt/${{ env.qt_version }}/msvc2022_64" `
133-
-system-zlib -schannel -no-openssl -qt-sqlite -sql-sqlite -no-sql-mysql -no-sql-odbc -no-sql-psql -c++std c++20 -- `
133+
-system-zlib -schannel -no-openssl -no-feature-removed_api -qt-sqlite -sql-sqlite -no-sql-mysql -no-sql-odbc -no-sql-psql -c++std c++20 -- `
134134
-DCMAKE_PREFIX_PATH="$vcpkgRoot/installed/${{ env.vcpkg_triplet }}" `
135135
-DCMAKE_TOOLCHAIN_FILE="$vcpkgRoot/scripts/buildsystems/vcpkg.cmake" `
136136
-DVCPKG_TARGET_TRIPLET=${{ env.vcpkg_triplet }}

0 commit comments

Comments
 (0)