wasm: force single threaded
This commit is contained in:
parent
68d7e4a1b6
commit
0f1d92e2cf
|
@ -921,6 +921,10 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
}
|
||||
|
||||
if (target_is_single_threaded(&target)) {
|
||||
is_single_threaded = true;
|
||||
}
|
||||
|
||||
if (output_dir != nullptr && enable_cache == CacheOptOn) {
|
||||
fprintf(stderr, "`--output-dir` is incompatible with --cache on.\n");
|
||||
return print_error_usage(arg0);
|
||||
|
|
|
@ -1371,6 +1371,10 @@ bool target_is_wasm(const ZigTarget *target) {
|
|||
return target->arch == ZigLLVM_wasm32 || target->arch == ZigLLVM_wasm64;
|
||||
}
|
||||
|
||||
bool target_is_single_threaded(const ZigTarget *target) {
|
||||
return target_is_wasm(target);
|
||||
}
|
||||
|
||||
ZigLLVM_EnvironmentType target_default_abi(ZigLLVM_ArchType arch, Os os) {
|
||||
switch (os) {
|
||||
case OsFreestanding:
|
||||
|
|
|
@ -171,6 +171,7 @@ bool target_abi_is_musl(ZigLLVM_EnvironmentType abi);
|
|||
bool target_is_glibc(const ZigTarget *target);
|
||||
bool target_is_musl(const ZigTarget *target);
|
||||
bool target_is_wasm(const ZigTarget *target);
|
||||
bool target_is_single_threaded(const ZigTarget *target);
|
||||
|
||||
uint32_t target_arch_pointer_bit_width(ZigLLVM_ArchType arch);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user