Browse Source

Drop support for older xcode versions
commit_hash:f714e6d32ed3ecff18519fa5ca123ca92b17a269

thegeorg 5 months ago
parent
commit
6d72638d46
2 changed files with 1 additions and 8 deletions
  1. 0 2
      build/platform/lld/ya.make
  2. 1 6
      build/scripts/link_fat_obj.py

+ 0 - 2
build/platform/lld/ya.make

@@ -48,8 +48,6 @@ ELSEIF (OS_DARWIN OR OS_IOS)
         LDFLAGS(
             -fuse-ld=${LLD_ROOT_RESOURCE_GLOBAL}/bin/ld64.lld
         )
-    ELSEIF (XCODE)
-        LDFLAGS(-DYA_XCODE)
     ELSE()
         LDFLAGS(
             -fuse-ld=lld

+ 1 - 6
build/scripts/link_fat_obj.py

@@ -76,13 +76,8 @@ def main():
     linker = groups['linker']
     archiver = groups['archiver']
 
-    if 'YA_XCODE' in str(sys.argv):
-        no_pie = '-Wl,-no_pie'
-    else:
-        no_pie = '-Wl,-no-pie'
-
     do_link = (
-        linker + ['-o', obj_output, '-Wl,-r', '-nodefaultlibs', '-nostartfiles', no_pie] + global_srcs + auto_input
+        linker + ['-o', obj_output, '-Wl,-r', '-nodefaultlibs', '-nostartfiles', '-Wl,-no-pie'] + global_srcs + auto_input
     )
     do_archive = archiver + [lib_output] + peers
     do_globals = None