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.
19 lines
691 B
CMake
19 lines
691 B
CMake
# This file is for the llvm+clang options that are specific to building
|
|
# 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
|
|
clang++
|
|
clang-cl
|
|
clang-cpp
|
|
CACHE STRING "")
|
|
|
|
set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "")
|