aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'build_scripts/options.py')
-rw-r--r--build_scripts/options.py5
1 files changed, 5 insertions, 0 deletions
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