mirror of
https://abf.rosa.ru/djam/llvm12.git
synced 2025-02-23 23:32:50 +00:00
Merge branch 'rosa2016.1' into rosa2019.1
This commit is contained in:
commit
cae158dd11
1 changed files with 14 additions and 10 deletions
|
@ -2,20 +2,24 @@
|
|||
# Author: mikhailnov
|
||||
# Clean flags that clang does not know to fix building QtWebEngine with clang
|
||||
|
||||
echo_err() {
|
||||
echo "$@" 1>&2
|
||||
}
|
||||
|
||||
# _CLANG_ must be changed to /usr/bin/clang++ and then to /usr/bin/clang in another copy of this wrapper
|
||||
if echo "$@" | grep -qE 'fvar-tracking-assignments|frecord-gcc-switches'
|
||||
then
|
||||
echo "DEBUG: clang-wrapper: arguements will be cut-out!"
|
||||
echo "DEBUG: arguements were: "
|
||||
echo "========================="
|
||||
echo "$@"
|
||||
echo "========================="
|
||||
echo_err "DEBUG: clang-wrapper: arguements will be cut-out!"
|
||||
echo_err "DEBUG: arguements were: "
|
||||
echo_err "========================="
|
||||
echo_err "$@"
|
||||
echo_err "========================="
|
||||
new_args="$(echo "$@" | sed -e 's/-fvar-tracking-assignments//g' -e 's/-frecord-gcc-switches//g')"
|
||||
echo "DEBUG: new arguements are with and without expansion: "
|
||||
echo "========================="
|
||||
echo ${new_args}
|
||||
echo "========================="
|
||||
echo "${new_args}"
|
||||
echo_err "DEBUG: new arguements are with and without expansion: "
|
||||
echo_err "========================="
|
||||
echo_err ${new_args}
|
||||
echo_err "========================="
|
||||
echo_err "${new_args}"
|
||||
# https://stackoverflow.com/a/37141139 (??)
|
||||
_CLANG_ ${new_args} || _CLANG_ "${new_args}"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue