aboutsummaryrefslogtreecommitdiffstats
path: root/util/ya.make
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-25 00:23:54 +0300
committerthegeorg <thegeorg@yandex-team.ru>2022-02-25 00:23:54 +0300
commit207b28a6021793cec36893b859eb01c76434e6b1 (patch)
tree406ddff6e841c13450a4c798f68e4fbebb57c3b4 /util/ya.make
parent9e08dc29988aa927698e62abd83d0930c730c464 (diff)
downloadydb-207b28a6021793cec36893b859eb01c76434e6b1.tar.gz
Implement SRC_CPP_NO_LTO and use it util/
`-flto` / `-fno-lto` is not available in clang-cl, so we should not use it in order to prevent `-Wunknown-argument` from being triggered Raw CFLAGS are not user-friendly, we should define a better macro for thi (somewhat popular) case. ref:6f969138dc8b6fe4c420eb2ef4c0e50c2503d184
Diffstat (limited to 'util/ya.make')
-rw-r--r--util/ya.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ya.make b/util/ya.make
index ab34124774..523c80a17d 100644
--- a/util/ya.make
+++ b/util/ya.make
@@ -329,7 +329,7 @@ JOIN_SRCS(
system/yield.cpp
)
-SRC(system/compiler.cpp -fno-lto)
+SRC_CPP_NO_LTO(system/compiler.cpp)
IF (OS_WINDOWS)
SRCS(