From 72107fc39f15e3827297530dfad3c63f8e4ffcaa Mon Sep 17 00:00:00 2001 From: Adrian Herrmann Date: Fri, 11 Nov 2022 20:31:37 +0100 Subject: Fix debug build problems on Win re: limited-api There is a build error on Windows when limited-api=yes and debug where the linker does not know the right paths to look for libraries. Supporting this configuration is not desirable anyway because there are no released Python builds on Windows with this configuration. Therefore: 1. Display a warning to the user that the combination debug + limited=api=yes does not really "exist" if they choose it explicitly on Windows. 2. Have the default for debug builds be limited-api=no on Windows. Pick-to: 6.4 Change-Id: Ifed99f80abb02c9d512a1321526e949d56ff08a6 Reviewed-by: Friedemann Kleint Reviewed-by: Shyamnath Premnadh Reviewed-by: Cristian Maureira-Fredes --- build_scripts/options.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build_scripts/options.py') diff --git a/build_scripts/options.py b/build_scripts/options.py index 08a2f8b9f..b00f1a1b8 100644 --- a/build_scripts/options.py +++ b/build_scripts/options.py @@ -517,4 +517,9 @@ class CommandMixin(object): log.error("Option --jobs can only be used with jom on Windows.") return False + if sys.platform == 'win32' and OPTION["LIMITED_API"] and self.debug: + log.error("It is not possible to make a debug build of PySide6 with limited API. " + "Please select a release build or disable limited API.") + return False + return True -- cgit v1.2.3