File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 77 "a.wasm.gz" : 1040 ,
88 "total" : 3314 ,
99 "total_gz" : 1938
10- }
10+ }
Original file line number Diff line number Diff line change @@ -982,7 +982,6 @@ def get_libcall_files(self):
982982 filenames = ['emscripten_memcpy.c' , 'emscripten_memset.c' ,
983983 'emscripten_scan_stack.c' ,
984984 'emscripten_get_heap_size.c' , # needed by malloc
985- 'sbrk.c' , # needed by malloc
986985 'emscripten_memmove.c' ])
987986 # Calls to iprintf can be generated during codegen. Ideally we wouldn't
988987 # compile these with -O2 like we do the rest of compiler-rt since its
@@ -1220,7 +1219,6 @@ def get_files(self):
12201219 'sigaction.c' ,
12211220 'sigtimedwait.c' ,
12221221 'wasi-helpers.c' ,
1223- 'sbrk.c' ,
12241222 ])
12251223
12261224 if settings .RELOCATABLE :
@@ -1627,7 +1625,9 @@ def get_files(self):
16271625 malloc = utils .path_from_root ('system/lib' , {
16281626 'dlmalloc' : 'dlmalloc.c' , 'emmalloc' : 'emmalloc.c' ,
16291627 }[malloc_base ])
1630- return [malloc ]
1628+ # Include sbrk.c in libc, it uses tracing and libc itself doesn't have a tracing variant.
1629+ sbrk = utils .path_from_root ('system/lib/libc/sbrk.c' )
1630+ return [malloc , sbrk ]
16311631
16321632 def get_cflags (self ):
16331633 cflags = super ().get_cflags ()
You can’t perform that action at this time.
0 commit comments