Skip to content

Commit

Permalink
package/llvm-project/llvm: add llvm dump support
Browse files Browse the repository at this point in the history
LLVM_ENABLE_DUMP required by mesa3d rusticl:

https://docs.mesa3d.org/rusticl.html

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Acked-by: Daniel Lang <dalang@gmx.at>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  • Loading branch information
RomainNaour authored and tpetazzoni committed Oct 1, 2023
1 parent 19372d5 commit 43da0b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/llvm-project/llvm/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ config BR2_PACKAGE_LLVM_BPF
Build BPF target. Select this option if you are going
to install bcc on the target.

config BR2_PACKAGE_LLVM_DUMP
bool "enable dump"
help
Build LLVM with dump functions even when assertions are
disabled.

endif

comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 7, dynamic library, host gcc >= 7"
Expand Down
7 changes: 7 additions & 0 deletions package/llvm-project/llvm/llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_RTTI=OFF
LLVM_CONF_OPTS += -DLLVM_ENABLE_RTTI=OFF
endif

HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_DUMP=OFF
ifeq ($(BR2_PACKAGE_LLVM_DUMP),y)
LLVM_CONF_OPTS += -DLLVM_ENABLE_DUMP=ON
else
LLVM_CONF_OPTS += -DLLVM_ENABLE_DUMP=OFF
endif

# Compiler-rt not in the source tree.
# llvm runtime libraries are not in the source tree.
# Polly is not in the source tree.
Expand Down

0 comments on commit 43da0b8

Please sign in to comment.