Skip to content

Commit 8b3352e

Browse files
author
pg
committed
Untitled commit
commit_hash:113638be759279dc1f00cbf6ee35992179a16bbc
1 parent febc5cd commit 8b3352e

File tree

398 files changed

+21571
-10399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

398 files changed

+21571
-10399
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{% extends '//builtin/bag.ym' %}
2+
3+
{% block current_version %}16.0.6{% endblock %}
4+
5+
{% block current_url %}
6+
https://github.com/llvm/llvm-project/releases/download/llvmorg-{{self.version().strip()}}/compiler-rt-{{self.version().strip()}}.src.tar.xz
7+
{% endblock %}
8+
9+
{% block patch_source %}
10+
(
11+
cd lib/builtins
12+
rm CMakeLists.txt
13+
rm aarch64/lse.S
14+
sed -e 's|.*zircon/features.h.*||' -i cpu_model.c
15+
sed -e 's|.*sys/byteorder.h.*||' -i int_endianness.h
16+
)
17+
{% endblock %}
18+
19+
{% block ya_make %}
20+
SUBSCRIBER(
21+
pg
22+
somov
23+
g:contrib
24+
g:cpp-contrib
25+
)
26+
27+
# Check MUSL before NO_PLATFORM() disables it.
28+
IF (MUSL)
29+
# We use C headers despite NO_PLATFORM, but we do not propagate
30+
# them with ADDINCL GLOBAL because we do not have an API, and we
31+
# can not propagate them because libcxx has to put its own
32+
# includes before musl includes for its include_next to work.
33+
IF (ARCH_X86_64)
34+
ADDINCL(
35+
contrib/libs/musl/arch/x86_64
36+
)
37+
ENDIF()
38+
39+
IF (ARCH_AARCH64)
40+
ADDINCL(
41+
contrib/libs/musl/arch/aarch64
42+
)
43+
ENDIF()
44+
45+
ADDINCL(
46+
contrib/libs/musl/arch/generic
47+
contrib/libs/musl/include
48+
contrib/libs/musl/extra
49+
)
50+
ENDIF()
51+
52+
NO_UTIL()
53+
54+
NO_RUNTIME()
55+
56+
NO_PLATFORM()
57+
58+
NO_COMPILER_WARNINGS()
59+
60+
IF (GCC OR CLANG)
61+
# Clang (maybe GCC too) LTO code generator leaves the builtin calls unresolved
62+
# even if they are available. After the code generation pass is done
63+
# a linker is forced to select original object files from this library again
64+
# as they contain unresolved symbols. But code generation is already done,
65+
# object files actually are not ELFs but an LLVM bytecode and we get
66+
# "member at xxxxx is not an ELF object" errors from the linker.
67+
# Just generate native code from the beginning.
68+
NO_LTO()
69+
ENDIF()
70+
{% endblock %}
71+
72+
{% block gen_ya_make %}
73+
(
74+
cd lib/builtins
75+
echo 'SRCS('
76+
ls *.c | sort
77+
echo ')'
78+
echo 'IF (ARCH_AARCH64)'
79+
echo 'SRCS('
80+
ls aarch64/*.c | sort
81+
ls aarch64/*.S | sort
82+
echo ')'
83+
echo 'ENDIF()'
84+
echo 'IF (ARCH_X86_64)'
85+
echo 'SRCS('
86+
ls x86_64/*.c | sort
87+
ls x86_64/*.S | sort
88+
echo ')'
89+
echo 'ENDIF()'
90+
) >> ya.make
91+
{% endblock %}
92+
93+
{% block move_to_output %}
94+
{{super()}}
95+
cp -R lib/builtins/* ${OUTPUT}/
96+
{% endblock %}

contrib/libs/cxxsupp/builtins/.yandex_meta/devtools.copyrights.report

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,21 @@
2929
# FILE_INCLUDE - include all file data into licenses text file
3030
# =======================
3131

32-
KEEP COPYRIGHT_SERVICE_LABEL 6abb44b35108cb004d9a12213d837344
33-
BELONGS ya.make
34-
License text:
35-
Copyright (c) 2009-2018 by the contributors listed in CREDITS.TXT
36-
Scancode info:
37-
Original SPDX id: COPYRIGHT_SERVICE_LABEL
38-
Score : 100.00
39-
Match type : COPYRIGHT
40-
Files with this license:
41-
LICENSE.os_version_check.c.txt [17:17]
42-
4332
KEEP COPYRIGHT_SERVICE_LABEL debfce3edcb19585edc08c5b1d986c0b
4433
BELONGS ya.make
34+
FILE_INCLUDE CREDITS.TXT found in files: LICENSE.TXT at line 293
4535
License text:
4636
Copyright (c) 2009-2015 by the contributors listed in CREDITS.TXT
4737
Scancode info:
4838
Original SPDX id: COPYRIGHT_SERVICE_LABEL
4939
Score : 100.00
5040
Match type : COPYRIGHT
5141
Files with this license:
52-
LICENSE.os_version_check.c.patch.txt [293:293]
53-
LICENSE.os_version_check.c.txt [58:58]
54-
LICENSE.txt [17:17]
55-
LICENSE.txt [58:58]
42+
LICENSE.TXT [293:293]
5643

5744
KEEP COPYRIGHT_SERVICE_LABEL ebc015cad7377d32e7b2fc0ae5293aa1
5845
BELONGS ya.make
46+
FILE_INCLUDE CREDITS.TXT found in files: LICENSE.TXT at line 252
5947
# libcxxabi/CREDITS.TXT included in libcxxabi
6048
License text:
6149
Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT
@@ -64,4 +52,4 @@ BELONGS ya.make
6452
Score : 100.00
6553
Match type : COPYRIGHT
6654
Files with this license:
67-
LICENSE.os_version_check.c.patch.txt [252:252]
55+
LICENSE.TXT [252:252]

0 commit comments

Comments
 (0)