Skip to content

Commit f325e4b

Browse files
authored
[Hexagon] Add default clang symlinks to CLANG_LINKS_TO_CREATE (#123011)
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.
1 parent feb7872 commit f325e4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/cmake/caches/hexagon-unknown-linux-musl-clang-cross.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ set(CLANG_LINKS_TO_CREATE
1010
hexagon-none-elf-clang
1111
hexagon-unknown-none-elf-clang++
1212
hexagon-unknown-none-elf-clang
13+
clang++
14+
clang-cl
15+
clang-cpp
1316
CACHE STRING "")
1417

1518
set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "")

0 commit comments

Comments
 (0)