Compiling esp clang tools

MikeColeGuru
Posts: 1
Joined: Thu Jun 27, 2024 5:55 am

Compiling esp clang tools

Postby MikeColeGuru » Thu Jun 27, 2024 6:11 am

Hi,

I am trying to compile a newer version of the esp-clang package for the platforms.

For example for version esp-17.0.1_20240419, the binary packages are here:
https://github.com/espressif/llvm-proje ... 1_20240419

I have compiled llvm/clang from the repo successfully.
Repo: https://github.com/espressif/llvm-project

However, I might be configuring llvm build wrong as the output does not include all the files included in the release.

For example these files and several others:

Code: Select all

xtensa-esp32-elf-clang-as
xtensa-esp32-elf-clang-ld
xtensa-esp32-elf-clang-objcopy
xtensa-esp32-elf-clang-objdump
xtensa-esp32s2-elf-clang-as
xtensa-esp32s2-elf-clang-ld
xtensa-esp32s2-elf-clang-objcopy
xtensa-esp32s2-elf-clang-objdump
xtensa-esp32s3-elf-clang-as
xtensa-esp32s3-elf-clang-ld
xtensa-esp32s3-elf-clang-objcopy
xtensa-esp32s3-elf-clang-objdump
Is there a script somewhere (or instructions) that builds all of the releases for all of the platforms?

Thanks!

dkovar
Posts: 3
Joined: Wed Sep 11, 2024 2:49 pm

Re: Compiling esp clang tools

Postby dkovar » Wed Sep 11, 2024 2:51 pm

If I understand your question correctly, you need to hand this to cmake:
-DLLVM_ENABLE_PROJECTS='bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libclc;lld;lldb;mlir;openmp;polly;pstl

Who is online

Users browsing this forum: Baidu [Spider], Gaston1980 and 135 guests