Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions package/llvm-project/libclc/libclc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@ LIBCLC_CONF_OPTS = \
HOST_LIBCLC_CONF_OPTS = \
-DLIBCLC_TARGETS_TO_BUILD=spirv64-mesa3d-

# batocera: host-clang installs the toolchain wrapper as clang, which appends
# BR2_TARGET_OPTIMIZATION to every call; -mcpu is an error for the libclc targets
LIBCLC_CONF_OPTS += -DLLVM_CUSTOM_TOOL_clang=$(HOST_DIR)/bin/clang.br_real
HOST_LIBCLC_CONF_OPTS += -DLLVM_TOOL_clang=$(HOST_DIR)/bin/clang.br_real

$(eval $(cmake-package))
$(eval $(host-cmake-package))