Skip to content

Commit 3d71c8b

Browse files
aheejinimpact-maker
authored andcommitted
Exclude 80-bit long double sources (emscripten-core#21657)
This is the list of files using 80-bit long double: https://github.com/llvm/llvm-project/blob/6009708b4367171ccdbf4b5905cb6a803753fe18/compiler-rt/lib/builtins/CMakeLists.txt#L279-L294 (This file is from LLVM 17.0.6, which is currently our compiler-rt version) We don't have 80-bit long doubles so it looks we can exclude them.
1 parent 795c94c commit 3d71c8b

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

tools/system_libs.py

+24-2
Original file line numberDiff line numberDiff line change
@@ -926,8 +926,30 @@ class libcompiler_rt(MTLibrary, SjLjLibrary):
926926
cflags = ['-fno-builtin', '-DNDEBUG']
927927
src_dir = 'system/lib/compiler-rt/lib/builtins'
928928
includes = ['system/lib/libc']
929-
# gcc_personality_v0.c depends on libunwind, which don't include by default.
930-
src_files = glob_in_path(src_dir, '*.c', excludes=['gcc_personality_v0.c', 'truncdfbf2.c', 'truncsfbf2.c', 'crtbegin.c', 'crtend.c'])
929+
excludes = [
930+
# gcc_personality_v0.c depends on libunwind, which don't include by default.
931+
'gcc_personality_v0.c',
932+
# bfloat16
933+
'truncdfbf2.c',
934+
'truncsfbf2.c',
935+
# We provide our own crt
936+
'crtbegin.c',
937+
'crtend.c',
938+
# 80-bit long double
939+
'divxc3.c',
940+
'fixxfdi.c',
941+
'fixxfti.c',
942+
'fixunsxfdi.c',
943+
'fixunsxfsi.c',
944+
'fixunsxfti.c',
945+
'floatdixf.c',
946+
'floattixf.c',
947+
'floatundixf.c',
948+
'floatuntixf.c',
949+
'mulxc3.c',
950+
'powixf2.c',
951+
]
952+
src_files = glob_in_path(src_dir, '*.c', excludes=excludes)
931953
src_files += files_in_path(
932954
path='system/lib/compiler-rt',
933955
filenames=[

0 commit comments

Comments
 (0)