Skip to content

Commit 9697f04

Browse files
authored
Fix script.test_fcoverage_mapping (#24973)
This is not really the intent of what -sSTRICT was to be about, but this fixes the test at least.
1 parent 9d660b3 commit 9697f04

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

system/lib/compiler-rt/lib/profile/InstrProfilingPort.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#endif
5555

5656
#define COMPILER_RT_MAX_HOSTLEN 128
57-
#if defined(__ORBIS__) || defined(__wasi__)
57+
#if defined(__ORBIS__) || defined(__wasi__) || defined(__EMSCRIPTEN__)
5858
#define COMPILER_RT_GETHOSTNAME(Name, Len) ((void)(Name), (void)(Len), (-1))
5959
#else
6060
#define COMPILER_RT_GETHOSTNAME(Name, Len) lprofGetHostName(Name, Len)

test/code_size/test_codesize_hello_dylink_all.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"a.out.js": 246665,
3-
"a.out.nodebug.wasm": 597809,
4-
"total": 844474,
3+
"a.out.nodebug.wasm": 597720,
4+
"total": 844385,
55
"sent": [
66
"IMG_Init",
77
"IMG_Load",

tools/system_libs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ class libcompiler_rt(MTLibrary, SjLjLibrary):
942942
# restriction soon: https://reviews.llvm.org/D71738
943943
force_object_files = True
944944

945-
cflags = ['-fno-builtin', '-DNDEBUG', '-DCOMPILER_RT_HAS_UNAME=1', '-DCOMPILER_RT_HAS_ATOMICS=1']
945+
cflags = ['-fno-builtin', '-DNDEBUG', '-DCOMPILER_RT_HAS_ATOMICS=1']
946946
src_dir = 'system/lib/compiler-rt/lib/builtins'
947947
profile_src_dir = 'system/lib/compiler-rt/lib/profile'
948948
includes = ['system/lib/libc', 'system/lib/compiler-rt/include']

0 commit comments

Comments
 (0)