From 7b2e085e572c3a6517d8af7e1cd66e2fa0a5dfc8 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Tue, 27 Aug 2024 08:42:02 +0100 Subject: [PATCH] [llvm-core] try relaxing restrictions on cross-building --- recipes/llvm-core/all/conanfile.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/recipes/llvm-core/all/conanfile.py b/recipes/llvm-core/all/conanfile.py index abd62d46c8398..bd6d6b0d13b24 100644 --- a/recipes/llvm-core/all/conanfile.py +++ b/recipes/llvm-core/all/conanfile.py @@ -1,7 +1,7 @@ from conan import ConanFile from conan.errors import ConanInvalidConfiguration from conan.tools.apple import is_apple_os -from conan.tools.build import check_min_cppstd, can_run, cross_building +from conan.tools.build import check_min_cppstd, can_run from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout from conan.tools.env import VirtualRunEnv from conan.tools.files import ( @@ -193,12 +193,6 @@ def validate(self): if self.options.exceptions and not self.options.rtti: raise ConanInvalidConfiguration("Cannot enable exceptions without rtti support") - if cross_building(self): - # FIXME support cross compilation, at least for common cases like Apple Silicon -> X86 - # requires a host-compiled version of llvm-tablegen. - # see also https://llvm.org/docs/HowToCrossCompileLLVM.html - raise ConanInvalidConfiguration("Cross compilation is not supported. Contributions are welcome!") - def source(self): get(self, **self.conan_data["sources"][self.version], strip_root=True)