From 1aa8107461029dd694c6aecaa2f3530c3dd88f6a Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Wed, 4 Sep 2024 12:01:53 +0100 Subject: [PATCH] [llvm-core] disable shared debug builds entirely and debug builds for linux --- recipes/llvm-core/all/conanfile.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/recipes/llvm-core/all/conanfile.py b/recipes/llvm-core/all/conanfile.py index 7aa569a9ef782..8a2954c7a22da 100644 --- a/recipes/llvm-core/all/conanfile.py +++ b/recipes/llvm-core/all/conanfile.py @@ -191,6 +191,13 @@ def validate(self): # see also https://llvm.org/docs/HowToCrossCompileLLVM.html raise ConanInvalidConfiguration("Cross compilation is not supported. Contributions are welcome!") + def validate_build(self): + if os.getenv("CONAN_CENTER_BUILD_SERVICE") and self.settings.build_type == "Debug": + if self.settings.os == "Linux": + raise ConanInvalidConfiguration("Debug build is not supported on CCI due to resource limitations") + elif self.options.shared: + raise ConanInvalidConfiguration("Shared Debug build is not supported on CCI due to resource limitations") + def source(self): get(self, **self.conan_data["sources"][self.version], strip_root=True) @@ -198,7 +205,7 @@ def _apply_resource_limits(self, cmake_definitions): if os.getenv("CONAN_CENTER_BUILD_SERVICE"): self.output.info("Applying CCI Resource Limits") default_ram_per_compile_job = 16384 - default_ram_per_link_job = 4096 + default_ram_per_link_job = 2048 else: default_ram_per_compile_job = None default_ram_per_link_job = None