aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-24 13:16:08 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-24 13:16:08 +0300
commit90ff84537b44a2c7606991d87b522c0ca1eaa92e (patch)
treedf97bfdfd7664a734f1ada9fb42016245122a946
parente2da0162789e5968c504ccb8045e8ebf0c3248ea (diff)
downloadydb-90ff84537b44a2c7606991d87b522c0ca1eaa92e.tar.gz
intermediate changes
ref:3876d322ca189a9d60c6ac2f8a50dba65a2649c8
-rw-r--r--build/ymake.core.conf10
-rw-r--r--contrib/libs/cxxsupp/openmp/ya.make4
2 files changed, 12 insertions, 2 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index 7bcad869b0..e2277af876 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -398,6 +398,16 @@ when ($USE_SYSTEM_PYTHON) {
}
}
+### @usage: NO_LTO()
+###
+### Diasble any lto (link-time optimizations) for the module.
+### This will compile module source files as usual (without LTO) but will not prevent lto-enabled
+### linking of entire program if global settings say so.
+macro NO_LTO() {
+ DISABLE(USE_LTO)
+ DISABLE(USE_THINLTO)
+}
+
# tag:python-specific
YMAKE_PYTHON3_PEER=build/platform/python/ymake_python3
YMAKE_PYTHON3=$YMAKE_PYTHON3_RESOURCE_GLOBAL/python3
diff --git a/contrib/libs/cxxsupp/openmp/ya.make b/contrib/libs/cxxsupp/openmp/ya.make
index 62706f5813..e8a498faa8 100644
--- a/contrib/libs/cxxsupp/openmp/ya.make
+++ b/contrib/libs/cxxsupp/openmp/ya.make
@@ -32,12 +32,12 @@ NO_PLATFORM()
NO_UTIL()
+NO_LTO()
+
CFLAGS(
-fno-exceptions
)
-SET_APPEND(CFLAGS -fno-lto)
-
COMPILE_C_AS_CXX()
IF (SANITIZER_TYPE == thread)