mirror of
https://github.com/notwa/rc
synced 2025-03-18 15:45:38 -07:00
disable a couple flags for any clang
This commit is contained in:
parent
d6cb7ea4dc
commit
72b0136367
1 changed files with 7 additions and 4 deletions
11
sh/compile
11
sh/compile
|
@ -200,11 +200,14 @@ compile() {
|
|||
warnings+=(-wd4711 -wd4505 -wd4514 -wd4625 -wd4626)
|
||||
fi
|
||||
else
|
||||
if [ $clang_msvc -eq 1 ]; then
|
||||
if [ $CC = clang ]; then
|
||||
if [ $flag = "-findirect-inlining" ] \
|
||||
|| [ $flag = "-finline-small-functions" ] \
|
||||
|| [ $flag = "-finline-small-functions" ] \
|
||||
|| [ $flag = "-Wl,--gc-sections" ] \
|
||||
|| [ $flag = "-finline-small-functions" ]; then
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
if [ $clang_msvc -eq 1 ]; then
|
||||
if [ $flag = "-Wl,--gc-sections" ] \
|
||||
|| [ $flag = "-s" ]; then
|
||||
continue
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue