diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-04-18 18:14:13 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-04-18 18:24:52 +0300 |
commit | bf5f7416dc86f8cce90bc79fe9661984450f0cd6 (patch) | |
tree | 245c3d8980bee7db9923a519b39188a0db477dd3 | |
parent | 8243fce4a55bbed296e994e6c1555e1cfab2fc33 (diff) | |
download | ydb-bf5f7416dc86f8cce90bc79fe9661984450f0cd6.tar.gz |
Pass exact versions to -Wl,-platform_version
This is to suppress
```
ld64.lld: warning: util/libyutil.a(all_memory.cpp.o) has version 13.0.0, which is newer than target minimum of 11.0
ld64.lld: warning: util/libyutil.a(all_random.cpp.o) has version 13.0.0, which is newer than target minimum of 11.0
```
when linking ios executable by the means of `ld64.lld`
1afeea0bb7f1e24f2791beaeb18b1a1bf67e5776
-rwxr-xr-x | build/ymake_conf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py index 7d733d5f594..e06439b4849 100755 --- a/build/ymake_conf.py +++ b/build/ymake_conf.py @@ -1732,9 +1732,9 @@ class LD(Linker): self.ld_sdk = select(default=None, selectors=[ # -platform_version <platform> <min_version> <sdk_version> - (target.is_macos, '-Wl,-platform_version,macos,11.0,11.0'), - (not target.is_iossim and target.is_ios, '-Wl,-platform_version,ios,11.0,13.1'), - (target.is_iossim, '-Wl,-platform_version,ios-simulator,14.0,14.5'), + (target.is_macos, '-Wl,-platform_version,macos,{MACOS_VERSION_MIN},11.0'.format(MACOS_VERSION_MIN=MACOS_VERSION_MIN)), + (not target.is_iossim and target.is_ios, '-Wl,-platform_version,ios,{IOS_VERSION_MIN},13.1'.format(IOS_VERSION_MIN=IOS_VERSION_MIN)), + (target.is_iossim, '-Wl,-platform_version,ios-simulator,{IOS_VERSION_MIN},14.5'.format(IOS_VERSION_MIN=IOS_VERSION_MIN)), ]) if self.build.profiler_type == Profiler.GProf: |