aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorhiddenpath <hiddenpath@yandex-team.com>2023-03-21 15:02:08 +0300
committerhiddenpath <hiddenpath@yandex-team.com>2023-03-21 15:02:08 +0300
commit1accd195372e8d076a81864bbde9356028d58667 (patch)
treecbda4acb95c63d266d9fee2e23bf20132a7f6620 /build
parent53871f3cefea89d32812e8a68bcd0b803d658fbd (diff)
downloadydb-1accd195372e8d076a81864bbde9356028d58667.tar.gz
Switch to llvm-ar instead of cctools-ar on darwin target platform
Diffstat (limited to 'build')
-rwxr-xr-xbuild/ymake_conf.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index 3516a6f2ed..07810289c0 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -1625,10 +1625,7 @@ class LD(Linker):
self.musl = Setting('MUSL', convert=to_bool)
if self.ar is None:
- if target.is_apple:
- # Use libtool. cctools ar does not understand -M needed for archive merging
- self.ar = '${CCTOOLS_ROOT_RESOURCE_GLOBAL}/bin/libtool'
- elif self.tc.is_from_arcadia:
+ if self.tc.is_from_arcadia:
if self.tc.is_clang:
self.ar = '{}/bin/llvm-ar'.format(self.tc.name_marker)
if self.tc.is_gcc:
@@ -1639,9 +1636,7 @@ class LD(Linker):
self.ar_type = 'GNU_AR'
self.llvm_ar_format = 'None'
- if 'libtool' in self.ar:
- self.ar_type = 'LIBTOOL'
- elif 'llvm-ar' in self.ar:
+ if 'llvm-ar' in self.ar:
self.ar_type = 'LLVM_AR'
if target.is_apple:
self.llvm_ar_format="darwin"