Skip to content
Open
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
4 changes: 4 additions & 0 deletions customization.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ _cpusched=""
# For advanced users.
_compiler=""

# [Advanced] LLVM target architecture (e.g. "x86_64-linux-gnu").
# Leave empty to use default.
_llvm_target_arch=""

# [Generic and Gentoo specific] Replace `libunwind` with `llvm-libunwind`.
# ! This is currently experimental.
# ! It can only work with the `llvm-libunwind` `USE` flag in `llvm-core/clang-common` for Gentoo.
Expand Down
2 changes: 1 addition & 1 deletion linux-tkg-config/prepare
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ _tkg_srcprep() {
fi
if [[ "$_compiler" == "llvm" ]]; then
# "native" doesn't show up in clang's list, but it's supported
if ! ( clang -mcpu=help 2>&1 | grep "$1" &> /dev/null ) ; then
if ! ( $( [[ -n "$_llvm_target_arch" ]] && echo "clang --target=$_llvm_target_arch" || echo "clang" ) -mcpu=help 2>&1 | grep "$1" &> /dev/null ) ; then
return 1
fi
fi
Expand Down