Skip to content

Commit

Permalink
premake: alpha15 does not support cross-building
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Mar 27, 2024
1 parent f3b33ca commit fced9ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipes/premake/5.x/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os

from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os
from conan.tools.build import cross_building
from conan.tools.files import apply_conandata_patches, chdir, copy, export_conandata_patches, get, replace_in_file, rmdir, save
Expand Down Expand Up @@ -55,6 +54,10 @@ def requirements(self):
self.requires("util-linux-libuuid/2.39.2")
# Lua sources are required during the build and cannot be unvendored

def validate(self):
if self.version == "5.0.0-alpha15" and cross_building(self):
raise Exception("Cross-building is not supported for Premake 5.0.0-alpha15")

def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)

Expand Down Expand Up @@ -172,9 +175,6 @@ def package_info(self):
self.cpp_info.resdirs = []
self.cpp_info.includedirs = []

# https://github.com/premake/premake-core/blob/v5.0.0-beta2/premake5.lua#L232-L271


# TODO: Legacy, to be removed on Conan 2.0
bindir = os.path.join(self.package_folder, "bin")
self.env_info.PATH.append(bindir)

0 comments on commit fced9ce

Please sign in to comment.