mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 22:12:21 +00:00
65cd040d15
Note, that this is just a syntastic change, that should not makes any difference (well the only difference is that now it supports gold and other links, since the option is handled by the plugin itself instead of the linker). Refs: https://reviews.llvm.org/D133092 Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
18 lines
521 B
Bash
Executable File
18 lines
521 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This is a workaround for bug in llvm/clang,
|
|
# that does not produce .debug_aranges with LTO
|
|
#
|
|
# NOTE: this is a temporary solution, that should be removed after upgrading to
|
|
# clang-16/llvm-16.
|
|
#
|
|
# Refs: https://reviews.llvm.org/D133092
|
|
|
|
# NOTE: only -flto=thin is supported.
|
|
# NOTE: it is not possible to check was there -gdwarf-aranges initially or not.
|
|
if [[ "$*" =~ -plugin-opt=thinlto ]]; then
|
|
exec "@LLD_PATH@" -plugin-opt=-generate-arange-section "$@"
|
|
else
|
|
exec "@LLD_PATH@" "$@"
|
|
fi
|