Browse Source

Reapply lld+pgo
d962e7458e3bcd1119f97bba97294949474eb103

mikhnenko 7 months ago
parent
commit
0ba3062c6d

+ 8 - 0
build/mapping.conf.json

@@ -84,6 +84,10 @@
         "5709310220": "https://devtools-registry.s3.yandex.net/5709310220",
         "5709435327": "https://devtools-registry.s3.yandex.net/5709435327",
         "5758120203": "https://devtools-registry.s3.yandex.net/5758120203",
+        "6657744758": "https://devtools-registry.s3.yandex.net/6657744758",
+        "6657746696": "https://devtools-registry.s3.yandex.net/6657746696",
+        "6657765589": "https://devtools-registry.s3.yandex.net/6657765589",
+        "6657758332": "https://devtools-registry.s3.yandex.net/6657758332",
         "360916612": "https://devtools-registry.s3.yandex.net/360916612",
         "4312064267": "https://devtools-registry.s3.yandex.net/4312064267",
         "4312063561": "https://devtools-registry.s3.yandex.net/4312063561",
@@ -727,6 +731,10 @@
         "5709310220": "bin-gdb-reloc-ya-linux-x86_64-70970b31ef83c56b51291cd8fe4f24449b582b59",
         "5709435327": "bin-gdb-reloc-ya-linux-x86_64-70970b31ef83c56b51291cd8fe4f24449b582b59",
         "5758120203": "bin-gdb-reloc-ya-linux-x86_64-b544ce3aae71e89238d6b1b85032a6b6f6412369",
+        "6657744758": "bin-lld-16-optimized-darwin-arm64-6fcb1f9a0ea89cca05d938ce61f89490b56940c4",
+        "6657746696": "bin-lld-16-optimized-darwin-x86_64-6fcb1f9a0ea89cca05d938ce61f89490b56940c4",
+        "6657765589": "bin-lld-16-optimized-linux-aarch64-6fcb1f9a0ea89cca05d938ce61f89490b56940c4",
+        "6657758332": "bin-lld-16-optimized-linux-x86_64-6fcb1f9a0ea89cca05d938ce61f89490b56940c4",
         "360916612": "binutils 2.26 for linux_ubuntu_10.04_lucid",
         "4312064267": "black_linter for linux",
         "4312063561": "black_linter for linux-aarch64",

+ 4 - 4
build/platform/lld/lld14.json

@@ -1,16 +1,16 @@
 {
     "by_platform": {
         "darwin-arm64": {
-            "uri": "sbr:4588370003"
+            "uri": "sbr:6683655545"
         },
         "darwin-x86_64": {
-            "uri": "sbr:4588378868"
+            "uri": "sbr:6683694178"
         },
         "linux-aarch64": {
-            "uri": "sbr:4588389789"
+            "uri": "sbr:6683720769"
         },
         "linux-x86_64": {
-            "uri": "sbr:4588396480"
+            "uri": "sbr:6683733162"
         }
     }
 }

+ 4 - 5
build/platform/lld/lld16.json

@@ -1,17 +1,16 @@
 {
     "by_platform": {
         "darwin-arm64": {
-            "uri": "sbr:5465946272"
+            "uri": "sbr:6657744758"
         },
         "darwin-x86_64": {
-            "uri": "sbr:5453803895"
+            "uri": "sbr:6657746696"
         },
         "linux-aarch64": {
-            "uri": "sbr:5458408674"
+            "uri": "sbr:6657765589"
         },
         "linux-x86_64": {
-            "uri": "sbr:5463300202"
+            "uri": "sbr:6657758332"
         }
     }
 }
-

+ 4 - 4
build/platform/lld/ya.make

@@ -39,7 +39,7 @@ IF (OS_ANDROID)
 ELSEIF (OS_LINUX)
     LDFLAGS(
         -fuse-ld=lld
-        --ld-path=${LLD_ROOT_RESOURCE_GLOBAL}/ld.lld
+        --ld-path=${LLD_ROOT_RESOURCE_GLOBAL}/bin/ld.lld
 
         # dynlinker on auld ubuntu versions can not handle .rodata stored in standalone segment [citation needed]
         -Wl,--no-rosegment
@@ -49,21 +49,21 @@ ELSEIF (OS_LINUX)
 ELSEIF (OS_DARWIN OR OS_IOS)
     IF (MAPSMOBI_BUILD_TARGET AND XCODE)
         LDFLAGS(
-            -fuse-ld=${LLD_ROOT_RESOURCE_GLOBAL}/ld64.lld
+            -fuse-ld=${LLD_ROOT_RESOURCE_GLOBAL}/bin/ld64.lld
         )
     ELSEIF (XCODE)
         LDFLAGS(-DYA_XCODE)
     ELSE()
         LDFLAGS(
             -fuse-ld=lld
-            --ld-path=${LLD_ROOT_RESOURCE_GLOBAL}/ld64.lld
+            --ld-path=${LLD_ROOT_RESOURCE_GLOBAL}/bin/ld64.lld
             # FIXME: Remove fake linker version flag when clang 16 version arrives
             -mlinker-version=705
         )
     ENDIF()
 ELSEIF (OS_EMSCRIPTEN)
     LDFLAGS(
-        -fuse-ld=${LLD_ROOT_RESOURCE_GLOBAL}/wasm-ld
+        -fuse-ld=${LLD_ROOT_RESOURCE_GLOBAL}/bin/wasm-ld
         # FIXME: Linker does not capture "ld-path" and therefore it can not find "wasm-ld"
     )
 ENDIF()

+ 1 - 1
build/ymake.core.conf

@@ -4815,7 +4815,7 @@ when($OS_LINUX) {
 ### Emit eBPF bytecode from .c file.
 ### Note: Output name is used as is, no extension added.
 macro BPF_STATIC(Input, Output, Opts...) {
-    .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS ${CLANG_RESOURCE_GLOBAL}/bin/clang ${pre=-I:_C__INCLUDE} $C_FLAGS_PLATFORM -target bpf -c ${input:Input} -o ${noauto;output:Output} $Opts ${hide;kv:"p BP"} ${hide;kv:"pc light-green"} && ${cwd:BINDIR} $LLD_ROOT_RESOURCE_GLOBAL/$LD_BINARY_NAME -r -b binary -m elf_x86_64 -o ${noauto;output;suf=.bpf.o:Input} ${noauto;nopath:Output}
+    .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS ${CLANG_RESOURCE_GLOBAL}/bin/clang ${pre=-I:_C__INCLUDE} $C_FLAGS_PLATFORM -target bpf -c ${input:Input} -o ${noauto;output:Output} $Opts ${hide;kv:"p BP"} ${hide;kv:"pc light-green"} && ${cwd:BINDIR} $LLD_ROOT_RESOURCE_GLOBAL/bin/$LD_BINARY_NAME -r -b binary -m elf_x86_64 -o ${noauto;output;suf=.bpf.o:Input} ${noauto;nopath:Output}
     PEERDIR(build/platform/clang build/platform/lld)
 }