Skip to content

Commit

Permalink
[llvm-core] try relaxing restrictions on cross-building
Browse files Browse the repository at this point in the history
  • Loading branch information
planetmarshall committed Aug 27, 2024
1 parent 9f54096 commit 7b2e085
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions recipes/llvm-core/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 7b2e085

Please sign in to comment.