Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new clang aliases that omit the {vendor} #29

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion build-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,17 @@ build_llvm_clang() {
add_symlinks() {
linkdir=${1}

for triple in hexagon-unknown-linux-musl hexagon-unknown-none-elf
for triple in hexagon-unknown-linux-musl hexagon-unknown-none-elf hexagon-linux-musl hexagon-none-elf
do
ln -sf --relative ${linkdir}/llvm-size ${linkdir}/${triple}-size
ln -sf --relative ${linkdir}/llvm-strip ${linkdir}/${triple}-strip
ln -sf --relative ${linkdir}/llvm-nm ${linkdir}/${triple}-nm
ln -sf --relative ${linkdir}/llvm-ar ${linkdir}/${triple}-ar
ln -sf --relative ${linkdir}/llvm-objdump ${linkdir}/${triple}-objdump
ln -sf --relative ${linkdir}/llvm-objcopy ${linkdir}/${triple}-objcopy
ln -sf --relative ${linkdir}/llvm-readelf ${linkdir}/${triple}-readelf
ln -sf --relative ${linkdir}/llvm-ranlib ${linkdir}/${triple}-ranlib
ln -sf --relative ${linkdir}/llvm-config ${linkdir}/${triple}-llvm-config
done

# ln -sf --relative ${linkdir}/clang ${linkdir}/hexagon-unknown-none-elf-clang
Expand Down Expand Up @@ -163,6 +167,7 @@ build_musl_headers() {

cd ${HEX_SYSROOT}/..
ln -sf hexagon-unknown-linux-musl hexagon
ln -sf hexagon-unknown-linux-musl hexagon-linux-musl
}

build_musl() {
Expand Down
4 changes: 4 additions & 0 deletions hexagon-unknown-linux-musl-clang-cross.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
# a cross-toolchain targeting hexagon linux.
set(DEFAULT_SYSROOT "../target/hexagon-unknown-linux-musl/" CACHE STRING "")
set(CLANG_LINKS_TO_CREATE
hexagon-linux-musl-clang++
hexagon-linux-musl-clang
hexagon-unknown-linux-musl-clang++
hexagon-unknown-linux-musl-clang
hexagon-none-elf-clang++
hexagon-none-elf-clang
hexagon-unknown-none-elf-clang++
hexagon-unknown-none-elf-clang
CACHE STRING "")
Expand Down
Loading