From 74f8ea9c08f077a4f1cdac4cb5fe92194f761c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Thu, 13 Jun 2024 18:13:38 +0200 Subject: [PATCH] Change prebuilt URL for PyQt and Python when build-type is debug. --- src/tasks/pyqt.cpp | 4 +++- src/tasks/python.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tasks/pyqt.cpp b/src/tasks/pyqt.cpp index 0c02041..9f86bb3 100644 --- a/src/tasks/pyqt.cpp +++ b/src/tasks/pyqt.cpp @@ -47,7 +47,9 @@ namespace mob::tasks { url prebuilt_url() { - return make_prebuilt_url("PyQt6_gpl-prebuilt-" + pyqt::version() + ".7z"); + return make_prebuilt_url( + "PyQt6_gpl-prebuilt-" + pyqt::version() + + (pyqt::build_type() == config::debug ? "-debug" : "") + ".7z"); } // file created by sip-module.exe diff --git a/src/tasks/python.cpp b/src/tasks/python.cpp index 2aa636f..b70d804 100644 --- a/src/tasks/python.cpp +++ b/src/tasks/python.cpp @@ -30,7 +30,9 @@ namespace mob::tasks { url prebuilt_url() { - return make_prebuilt_url("python-prebuilt-" + version_without_v() + ".7z"); + return make_prebuilt_url( + "python-prebuilt-" + version_without_v() + + (python::build_type() == config::debug ? "-debug" : "") + ".7z"); } fs::path solution_file()