Skip to content

Commit 27a5e21

Browse files
committed
Release clang18 #3
https://github.com/yandex/toolchain-registry/releases/tag/clang18-v3 commit_hash:242ab0166e0b3ae29fd381117df005246a4e4eb9
1 parent aa2573e commit 27a5e21

File tree

23 files changed

+2326
-75
lines changed

23 files changed

+2326
-75
lines changed

build/conf/compilers/gnu_compiler.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ when ($CLANG16 == "yes") {
6868
CFLAGS+=-Wno-array-parameter -Wno-deprecate-lax-vec-conv-all -Wno-unqualified-std-cast-call -Wno-unused-but-set-parameter -Wno-implicit-function-declaration -Wno-int-conversion -Wno-incompatible-function-pointer-types -Wno-address-of-packed-member
6969
}
7070

71+
when ($CLANG18 == "yes") {
72+
CFLAGS+=-Wno-array-parameter -Wno-deprecate-lax-vec-conv-all -Wno-unqualified-std-cast-call -Wno-unused-but-set-parameter -Wno-implicit-function-declaration -Wno-int-conversion -Wno-incompatible-function-pointer-types -Wno-address-of-packed-member
73+
CFLAGS+=-Wno-deprecated-this-capture -Wno-c++11-narrowing-const-reference -Wno-missing-field-initializers \
74+
-Wno-packed-non-pod -Wno-format -Wno-vla-cxx-extension -Wno-invalid-offsetof -Wno-exceptions \
75+
-Wno-include-angled-in-module-purview -Wno-unused-parameter
76+
when ($MAPSMOBI_BUILD_TARGET == "yes") {
77+
CFLAGS+=-Wno-deprecated-declarations
78+
}
79+
}
80+
7181
when ($MSAN_TRACK_ORIGIN == "yes") {
7282
CFLAGS+=-fsanitize-memory-track-origins=2
7383
}

build/mapping.conf.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@
142142
"7421180051": "https://devtools-registry.s3.yandex.net/7421180051",
143143
"7421207790": "https://devtools-registry.s3.yandex.net/7421207790",
144144
"7421606584": "https://devtools-registry.s3.yandex.net/7421606584",
145+
"7412448309": "https://devtools-registry.s3.yandex.net/7412448309",
146+
"7412319411": "https://devtools-registry.s3.yandex.net/7412319411",
147+
"7412751020": "https://devtools-registry.s3.yandex.net/7412751020",
148+
"7412874863": "https://devtools-registry.s3.yandex.net/7412874863",
145149
"360916612": "https://devtools-registry.s3.yandex.net/360916612",
146150
"4312064267": "https://devtools-registry.s3.yandex.net/4312064267",
147151
"4312063561": "https://devtools-registry.s3.yandex.net/4312063561",
@@ -886,6 +890,9 @@
886890
"7193803465": "https://devtools-registry.s3.yandex.net/7193803465",
887891
"7324464594": "https://devtools-registry.s3.yandex.net/7324464594",
888892
"7414146467": "https://devtools-registry.s3.yandex.net/7414146467",
893+
"7406675906": "https://devtools-registry.s3.yandex.net/7406675906",
894+
"7406663741": "https://devtools-registry.s3.yandex.net/7406663741",
895+
"7406665335": "https://devtools-registry.s3.yandex.net/7406665335",
889896
"7193800506": "https://devtools-registry.s3.yandex.net/7193800506",
890897
"7324461714": "https://devtools-registry.s3.yandex.net/7324461714",
891898
"7193813071": "https://devtools-registry.s3.yandex.net/7193813071",
@@ -992,6 +999,11 @@
992999
"7336031045": "https://devtools-registry.s3.yandex.net/7336031045",
9931000
"7320257970": "https://devtools-registry.s3.yandex.net/7320257970",
9941001
"7336062757": "https://devtools-registry.s3.yandex.net/7336062757",
1002+
"7406874438": "https://devtools-registry.s3.yandex.net/7406874438",
1003+
"7407124272": "https://devtools-registry.s3.yandex.net/7407124272",
1004+
"7406983705": "https://devtools-registry.s3.yandex.net/7406983705",
1005+
"7407028815": "https://devtools-registry.s3.yandex.net/7407028815",
1006+
"7407150115": "https://devtools-registry.s3.yandex.net/7407150115",
9951007
"6048579718": "https://devtools-registry.s3.yandex.net/6048579718",
9961008
"2980468199": "https://devtools-registry.s3.yandex.net/2980468199",
9971009
"5562224408": "https://devtools-registry.s3.yandex.net/5562224408"
@@ -1138,6 +1150,10 @@
11381150
"7421180051": "bin-mold-darwin-x86_64-9ed8f351aa52a09a3d6ab1d977afb583bf69d8d5",
11391151
"7421207790": "bin-mold-linux-aarch64-9ed8f351aa52a09a3d6ab1d977afb583bf69d8d5",
11401152
"7421606584": "bin-mold-linux-x86_64-9ed8f351aa52a09a3d6ab1d977afb583bf69d8d5",
1153+
"7412448309": "bin-lld-18-darwin-arm64-9ed8f351aa52a09a3d6ab1d977afb583bf69d8d5",
1154+
"7412319411": "bin-lld-18-darwin-x86_64-9ed8f351aa52a09a3d6ab1d977afb583bf69d8d5",
1155+
"7412751020": "bin-lld-18-linux-aarch64-9ed8f351aa52a09a3d6ab1d977afb583bf69d8d5",
1156+
"7412874863": "bin-lld-18-linux-x86_64-9ed8f351aa52a09a3d6ab1d977afb583bf69d8d5",
11411157
"360916612": "binutils 2.26 for linux_ubuntu_10.04_lucid",
11421158
"4312064267": "black_linter for linux",
11431159
"4312063561": "black_linter for linux-aarch64",
@@ -1882,6 +1898,9 @@
18821898
"7193803465": "none-none-none-service_resources/TASKLET_EXECUTABLE/backup/17df2ad2-24bc-49e8-8909-b58685dac393/yfm-docs.tar",
18831899
"7324464594": "none-none-none-service_resources/TASKLET_EXECUTABLE/backup/32cc8c74-decd-44a8-bc8c-f8f0d7edfffe/yfm-docs.tar",
18841900
"7414146467": "none-none-none-service_resources/TASKLET_EXECUTABLE/backup/66167d72-07fa-444c-8493-dea0a39d034e/yfm-docs.tar",
1901+
"7406675906": "none-none-none-service_resources/TASKLET_EXECUTABLE/backup/6bba4fa0-ac5e-4a8a-89df-ce9e09573567/yfm-docs.tar",
1902+
"7406663741": "none-none-none-service_resources/TASKLET_EXECUTABLE/backup/6f3d31a2-e730-48d5-92b4-024148b5768a/yfm-docs.tar",
1903+
"7406665335": "none-none-none-service_resources/TASKLET_EXECUTABLE/backup/895e2cbd-d4a8-4a5c-9cf5-5666e796f17a/yfm-docs.tar",
18851904
"7193800506": "none-none-none-service_resources/TASKLET_EXECUTABLE/backup/9be8ed55-d7f8-4029-a7fd-fbfa072b896f/yfm-docs.tar",
18861905
"7324461714": "none-none-none-service_resources/TASKLET_EXECUTABLE/backup/b3543418-58d4-4e1c-b2be-43b55b035e91/yfm-docs.tar",
18871906
"7193813071": "none-none-none-service_resources/TASKLET_EXECUTABLE/backup/b6531a79-b803-4672-a9e9-f9f348009f5f/yfm-docs.tar",
@@ -1988,10 +2007,15 @@
19882007
"7336031045": "ynd-bin-frozen-python3-linux-x86_64-eacbfe8057414a218b407c837c9dcd8f2162f810",
19892008
"7320257970": "ynd-bin-frozen-python3-mingw-w64-x86_64-e139f4d2038ecfbb34fbbd77f84c4b63ddcb613b",
19902009
"7336062757": "ynd-bin-frozen-python3-mingw-w64-x86_64-eacbfe8057414a218b407c837c9dcd8f2162f810",
2010+
"7406874438": "ynd-clang-18-optimized-darwin-arm64-56872a411472c7ec2b09f2c8372ea4c67d069a5b",
2011+
"7407124272": "ynd-clang-18-optimized-darwin-x86_64-56872a411472c7ec2b09f2c8372ea4c67d069a5b",
2012+
"7406983705": "ynd-clang-18-optimized-linux-aarch64-56872a411472c7ec2b09f2c8372ea4c67d069a5b",
2013+
"7407028815": "ynd-clang-18-optimized-linux-x86_64-56872a411472c7ec2b09f2c8372ea4c67d069a5b",
2014+
"7407150115": "ynd-clang-18-optimized-mingw-w64-x86_64-56872a411472c7ec2b09f2c8372ea4c67d069a5b",
19912015
"6048579718": "yt/go/ytrecipe/cmd/ytexec for linux",
19922016
"2980468199": "ytexec for linux",
19932017
"5562224408": "ytexec for linux"
19942018
},
19952019
"resources_info": {},
19962020
"tasks": {}
1997-
}
2021+
}

build/platform/clang/clang18.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"by_platform": {
3+
"darwin-arm64": {
4+
"uri": "sbr:7406874438"
5+
},
6+
"darwin-x86_64": {
7+
"uri": "sbr:7407124272"
8+
},
9+
"linux-aarch64": {
10+
"uri": "sbr:7406983705"
11+
},
12+
"linux-x86_64": {
13+
"uri": "sbr:7407028815"
14+
},
15+
"win32-x86_64": {
16+
"uri": "sbr:7407150115"
17+
}
18+
}
19+
}

build/platform/clang/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ RESOURCES_LIBRARY()
22

33
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(CLANG14 clang14.json)
44
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(CLANG16 clang16.json)
5+
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(CLANG18 clang18.json)
56

67
# This is the default clang to be used in llvm-version-independent cases
78
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(CLANG clang14.json)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"by_platform": {
33
"darwin-arm64": {
4-
"uri": "sbr:6782946027"
4+
"uri": "sbr:7412448309"
55
},
66
"darwin-x86_64": {
7-
"uri": "sbr:6782783684"
7+
"uri": "sbr:7412319411"
88
},
99
"linux-aarch64": {
10-
"uri": "sbr:6782721573"
10+
"uri": "sbr:7412751020"
1111
},
1212
"linux-x86_64": {
13-
"uri": "sbr:6782718840"
13+
"uri": "sbr:7412874863"
1414
}
1515
}
1616
}

build/platform/lld/ya.make

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ DEFAULT(LLD_VERSION ${CLANG_VER})
55
TOOLCHAIN(lld)
66
VERSION(${LLD_VERSION})
77

8-
# lld16 is the only supported version at the time
9-
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(LLD_ROOT lld16.json)
8+
# There is no backward compatibility between LLVM IR versions 16 and 18.
9+
# So, we need to select lld18 when using clang18 to compile src in LTO mode.
10+
IF (LLD_VERSION == 18)
11+
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(LLD_ROOT lld18.json)
12+
ELSEIF (LLD_VERSION == 16)
13+
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE_BY_JSON(LLD_ROOT lld16.json)
14+
ENDIF()
1015

1116
IF (OS_ANDROID)
1217
# Use LLD shipped with Android NDK.

build/scripts/copy_clang_profile_rt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# List is a temporary thing to ensure that nothing breaks before and after switching to newer clang
1111
# Remove after DTCC-1902
12-
CLANG_RT_VERSIONS = [14, 16]
12+
CLANG_RT_VERSIONS = [14, 16, 18]
1313

1414

1515
def copy_clang_rt_profile(cmd, build_root, arch):

0 commit comments

Comments
 (0)