Skip to content

Commit

Permalink
[Hexagon] Add default clang symlinks to CLANG_LINKS_TO_CREATE (llvm#1…
Browse files Browse the repository at this point in the history
…23011)

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.
  • Loading branch information
androm3da authored Jan 15, 2025
1 parent feb7872 commit f325e4b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")

0 comments on commit f325e4b

Please sign in to comment.