[qtbase] Fix qt.toolchain.cmake corruption for Emscripten builds (#49429)

This commit is contained in:
Michael Schmuki 2026-03-03 16:03:52 +01:00 committed by GitHub
parent 39a6cc0e44
commit cae8f584b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 3 deletions

View File

@ -434,7 +434,7 @@ endforeach()
set(qttoolchain "${CURRENT_PACKAGES_DIR}/share/Qt6/qt.toolchain.cmake")
file(READ "${qttoolchain}" toolchain_contents)
string(REGEX REPLACE "set\\\(__qt_initially_configured_toolchain_file [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}")
string(REGEX REPLACE "set\\\(__qt_chainload_toolchain_file [^\\\n]+\\\n" "set(__qt_chainload_toolchain_file \"\${VCPKG_CHAINLOAD_TOOLCHAIN_FILE}\n\")" toolchain_contents "${toolchain_contents}")
string(REGEX REPLACE "set\\\(__qt_chainload_toolchain_file [^\\\n]+\\\n" "set(__qt_chainload_toolchain_file \"\${VCPKG_CHAINLOAD_TOOLCHAIN_FILE}\")\n" toolchain_contents "${toolchain_contents}")
string(REGEX REPLACE "set\\\(VCPKG_CHAINLOAD_TOOLCHAIN_FILE [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}")
string(REGEX REPLACE "set\\\(__qt_initial_c_compiler [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}")
string(REGEX REPLACE "set\\\(__qt_initial_cxx_compiler [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}")

View File

@ -1,7 +1,7 @@
{
"name": "qtbase",
"version": "6.10.0",
"port-version": 1,
"port-version": 2,
"description": "Qt Base (Core, Gui, Widgets, Network, ...)",
"homepage": "https://www.qt.io/",
"license": null,

View File

@ -8210,7 +8210,7 @@
},
"qtbase": {
"baseline": "6.10.0",
"port-version": 1
"port-version": 2
},
"qtcharts": {
"baseline": "6.10.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0eb3ac9082926e0f4ed4a185be0f10cd81047665",
"version": "6.10.0",
"port-version": 2
},
{
"git-tree": "1ab7c7c7654ecd1fa22b8c05c9cfc3c3e91aadc8",
"version": "6.10.0",