Skip to content

Commit

Permalink
Release lld16 #1
Browse files Browse the repository at this point in the history
https://github.com/yandex/toolchain-registry/releases/tag/lld16-v1

Если этот pr вам что-то сломал - смело откатывайте
1e3ff1754d81d2e09aff40ac0b9ca78c5e3f481b
  • Loading branch information
robot-brewer committed Jul 12, 2024
1 parent afa2ad4 commit fef5d8c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
8 changes: 8 additions & 0 deletions build/mapping.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -719,6 +723,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",
Expand Down
9 changes: 4 additions & 5 deletions build/platform/lld/lld16.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

8 changes: 4 additions & 4 deletions build/platform/lld/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion build/ymake.core.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit fef5d8c

Please sign in to comment.