Skip to content

Commit

Permalink
IGC: Requires building lld and sources to libunwind from LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Jul 12, 2024
1 parent 1d07166 commit 98cc36c
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cross/intel-opencl-clang-140/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ PKG_DIR = $(PKG_NAME)-$(PKG_GIT_HASH)
REQUIRED_MIN_DSM = 7
UNSUPPORTED_ARCHS = $(ARM_ARCHS) $(PPC_ARCHS) $(i686_ARCHS)

BUILD_DEPENDS = cross/llvm-140.src cross/clang-140.src
BUILD_DEPENDS += cross/SPIRV-LLVM-Translator-140.src
BUILD_DEPENDS += cross/SPIRV-Headers.src
BUILD_DEPENDS = cross/llvm-140.src cross/clang-140.src cross/lld-140.src cross/libunwind-140.src
BUILD_DEPENDS += cross/SPIRV-LLVM-Translator-140.src cross/SPIRV-Headers.src
DEPENDS += cross/SPIRV-Tools

HOMEPAGE = https://github.com/intel/opencl-clang
Expand Down Expand Up @@ -89,7 +88,7 @@ include ../../mk/spksrc.common.mk
#
ifeq ($(findstring $(ARCH),$(x64_ARCHS)),$(ARCH))
CMAKE_ARGS += -DLLVM_TARGETS_TO_BUILD=X86
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang'
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang;lld'
CMAKE_ARGS += -DLLVM_SOURCE_DIR=$(WORK_DIR)/llvm
CMAKE_ARGS += -DLLVM_EXTERNAL_PROJECTS='llvm-spirv;opencl-clang'
CMAKE_ARGS += -DLLVM_EXTERNAL_CLANG_SOURCE_DIR=$(WORK_DIR)/clang
Expand Down
21 changes: 21 additions & 0 deletions cross/libunwind-140.src/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
PKG_NAME = libunwind
PKG_VERS = 14.0.5
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).src.$(PKG_EXT)
PKG_DIST_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(PKG_VERS)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS).src

HOMEPAGE = https://llvm.org/
COMMENT = The LLVM Project is a collection of modular and reusable compiler and toolchain technologies
LICENSE = Apache v2.0 with LLVM Exceptions

POST_EXTRACT_TARGET = llvm_post_extract_target
CONFIGURE_TARGET = nop
COMPILE_TARGET = nop
INSTALL_TARGET = nop

include ../../mk/spksrc.cross-cmake.mk

.PHONY: llvm_post_extract_target
llvm_post_extract_target:
@cd $(WORK_DIR) && ln -s $(PKG_DIR) $(PKG_NAME)
3 changes: 3 additions & 0 deletions cross/libunwind-140.src/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
libunwind-14.0.5.src.tar.xz SHA1 2dfcc92ed5aed4c0ef1b2be029bdb258236943b5
libunwind-14.0.5.src.tar.xz SHA256 81828d3318d4f6596c5b3625832d4b5e216c9a1fd3f53ceca561ac569aa07a3a
libunwind-14.0.5.src.tar.xz MD5 f96c8986e1b2e288ab1a373fbaa09352
21 changes: 21 additions & 0 deletions cross/lld-140.src/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
PKG_NAME = lld
PKG_VERS = 14.0.5
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).src.$(PKG_EXT)
PKG_DIST_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(PKG_VERS)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS).src

HOMEPAGE = https://llvm.org/
COMMENT = The LLVM Project is a collection of modular and reusable compiler and toolchain technologies
LICENSE = Apache v2.0 with LLVM Exceptions

POST_EXTRACT_TARGET = llvm_post_extract_target
CONFIGURE_TARGET = nop
COMPILE_TARGET = nop
INSTALL_TARGET = nop

include ../../mk/spksrc.cross-cmake.mk

.PHONY: llvm_post_extract_target
llvm_post_extract_target:
@cd $(WORK_DIR) && ln -s $(PKG_DIR) $(PKG_NAME)
3 changes: 3 additions & 0 deletions cross/lld-140.src/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lld-14.0.5.src.tar.xz SHA1 54963ee6465197be6912a3793b4464182062a613
lld-14.0.5.src.tar.xz SHA256 8aa7be03500a37d8a1ff838f27c801648e2cb41828e7a8bc436d8d6e404224d8
lld-14.0.5.src.tar.xz MD5 53c61cd4ea4dbdaba2efbaca9e583f0d

0 comments on commit 98cc36c

Please sign in to comment.