diff options
author | dmfedin <dmfedin@yandex-team.com> | 2023-08-05 16:16:05 +0300 |
---|---|---|
committer | dmfedin <dmfedin@yandex-team.com> | 2023-08-05 18:28:42 +0300 |
commit | 09fd1688d71e3837ef009a776464bd4cdbff2dfc (patch) | |
tree | 6155a97caa1e27ed14a078c294334bbefe89fa28 | |
parent | 37b891d807b6ae0d13861085d68bf67661175a72 (diff) | |
download | ydb-09fd1688d71e3837ef009a776464bd4cdbff2dfc.tar.gz |
remove ios check for ffunction-sections
-rwxr-xr-x | build/ymake_conf.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py index d3e5f2fecd..53647142c9 100755 --- a/build/ymake_conf.py +++ b/build/ymake_conf.py @@ -1389,6 +1389,10 @@ class GnuCompiler(Compiler): # Enable standard-conforming behavior and generate duplicate symbol error in case of duplicated global constants. # See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85678#c0 '-fno-common', + + # Split all functions and data into separate sections for DCE and ICF linker passes + '-ffunction-sections', + '-fdata-sections' ] if self.tc.is_clang and self.target.is_linux: @@ -1512,11 +1516,6 @@ class GnuCompiler(Compiler): self.c_foptions.append('-fno-delete-null-pointer-checks') self.c_foptions.append('-fabi-version=8') - # Split all functions and data into separate sections for DCE and ICF linker passes - # NOTE: iOS build uses -fembed-bitcode which conflicts with -ffunction-sections (only relevant for ELF targets) - if not self.target.is_ios: - self.c_foptions.extend(['-ffunction-sections', '-fdata-sections']) - def configure_build_type(self): if self.build.is_valgrind: self.c_defines.append('-DWITH_VALGRIND=1') |