This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -65,23 +65,23 @@ template("gcc_like_toolchain") {
65
65
66
66
tool (" cc" ) {
67
67
depfile = " {{output}}.d"
68
- command = " $cc_wrapper $cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} -DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=1 --bind - fno-stack-protector ${ external_cflags } -c {{source}} -o {{output}}"
68
+ command = " $cc_wrapper $cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} -DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=1 -fno-stack-protector ${ external_cflags } -c {{source}} -o {{output}}"
69
69
depsformat = " gcc"
70
70
outputs = [ " $object_subdir /{{source_name_part}}.o" ]
71
71
description = " compile {{source}}"
72
72
}
73
73
74
74
tool (" cxx" ) {
75
75
depfile = " {{output}}.d"
76
- command = " $cc_wrapper $cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=1 --bind - fno-stack-protector ${ external_cflags } ${ external_cxxflags } -c {{source}} -o {{output}}"
76
+ command = " $cc_wrapper $cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=1 -fno-stack-protector ${ external_cflags } ${ external_cxxflags } -c {{source}} -o {{output}}"
77
77
depsformat = " gcc"
78
78
outputs = [ " $object_subdir /{{source_name_part}}.o" ]
79
79
description = " compile {{source}}"
80
80
}
81
81
82
82
tool (" asm" ) {
83
83
depfile = " {{output}}.d"
84
- command = " $cc_wrapper $cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}} -DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=1 --bind - fno-stack-protector -c {{source}} -o {{output}}"
84
+ command = " $cc_wrapper $cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}} -DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=1 -fno-stack-protector -c {{source}} -o {{output}}"
85
85
depsformat = " gcc"
86
86
outputs = [ " $object_subdir /{{source_name_part}}.o" ]
87
87
description = " assemble {{source}}"
@@ -175,6 +175,6 @@ gcc_like_toolchain("wasm") {
175
175
os = host_os
176
176
ar = " $emsdk_dir /emscripten/emar --em-config $em_config "
177
177
cc = " $emsdk_dir /emscripten/emcc --em-config $em_config -pthread"
178
- cxx = " $emsdk_dir /emscripten/em++ --em-config $em_config --bind - pthread"
178
+ cxx = " $emsdk_dir /emscripten/em++ --em-config $em_config -pthread"
179
179
strip = " "
180
180
}
Original file line number Diff line number Diff line change @@ -72,23 +72,23 @@ template("wasm_lib") {
72
72
" -s" ,
73
73
" EXPORT_ES6=1" ,
74
74
75
+ " --bind" ,
76
+
75
77
# "-fno-stack-protector",
76
78
77
79
# This is to prevent that two different wasm modules end up generating
78
80
# JS that overrides the same global variable (var Module = ...)
79
81
# "-s",
80
82
# "EXPORT_NAME=${target_name}",
81
83
82
- " -lworkerfs.js" , # For FS.filesystems.WORKERFS
83
-
84
- " --bind" ,
84
+ # "-lworkerfs.js", # For FS.filesystems.WORKERFS
85
85
86
86
" -s" ,
87
- " PTHREAD_POOL_SIZE=5" ,
87
+ " PTHREAD_POOL_SIZE=8" ,
88
+ " -s" ,
89
+ " ALLOW_BLOCKING_ON_MAIN_THREAD=0" ,
88
90
89
91
" -pthread" ,
90
-
91
- " --source-map-base" ,
92
92
]
93
93
if (is_debug ) {
94
94
_target_ldflags += [
@@ -98,8 +98,10 @@ template("wasm_lib") {
98
98
# "SAFE_HEAP=1",
99
99
# "-s",
100
100
# "STACK_OVERFLOW_CHECK=1",
101
- # "-gsource-map",
102
- # "-O0",
101
+ " -O0" ,
102
+ " -gsource-map" ,
103
+ " --source-map-base" ,
104
+ " http://jianjunz-nuc-ubuntu.sh.intel.com:9900/out/wasm/" ,
103
105
]
104
106
} else {
105
107
_target_ldflags += [
You can’t perform that action at this time.
0 commit comments