Skip to content

[Hexagon] Add default clang symlinks to CLANG_LINKS_TO_CREATE #123011

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

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

androm3da
Copy link
Member

Since this cache value overrides the defaults, we end up with clang linked to clang-20, and some ${triple}-clang* links, but we're missing clang++. This makes for a toolchain with inconsistent behavior when used in someone's $PATH.

We'll add the default symlinks to our list so that C and C++ programs are both built as expected when clang and clang++ are invoked.

Since this cache value overrides the defaults, we end up with
`clang` linked to `clang-20`, and some `${triple}-clang*` links,
but we're missing `clang++`.  This makes for a toolchain with
inconsistent behavior when used in someone's `$PATH`.

We'll add the default symlinks to our list so that C and C++ programs are both
built as expected when `clang` and `clang++` are invoked.
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Jan 15, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 15, 2025

@llvm/pr-subscribers-clang

Author: Brian Cain (androm3da)

Changes

Since this cache value overrides the defaults, we end up with clang linked to clang-20, and some ${triple}-clang* links, but we're missing clang++. This makes for a toolchain with inconsistent behavior when used in someone's $PATH.

We'll add the default symlinks to our list so that C and C++ programs are both built as expected when clang and clang++ are invoked.


Full diff: https://github.com/llvm/llvm-project/pull/123011.diff

1 Files Affected:

  • (modified) clang/cmake/caches/hexagon-unknown-linux-musl-clang-cross.cmake (+3)
diff --git a/clang/cmake/caches/hexagon-unknown-linux-musl-clang-cross.cmake b/clang/cmake/caches/hexagon-unknown-linux-musl-clang-cross.cmake
index 91bbe26b621054..fd2aeec819fc01 100644
--- a/clang/cmake/caches/hexagon-unknown-linux-musl-clang-cross.cmake
+++ b/clang/cmake/caches/hexagon-unknown-linux-musl-clang-cross.cmake
@@ -10,6 +10,9 @@ set(CLANG_LINKS_TO_CREATE
             hexagon-none-elf-clang
             hexagon-unknown-none-elf-clang++
             hexagon-unknown-none-elf-clang
+            clang++
+            clang-cl
+            clang-cpp
             CACHE STRING "")
 
 set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "")

@androm3da androm3da merged commit f325e4b into llvm:main Jan 15, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants