| author | |
| committer | |
| log | 0f1d92e2cfda7ac633cc66fdf2b0e5e27cdf0f98 |
| tree | b23e55357b41fdacaf61fd2ce88a8faadb87d459 |
| parent | 68d7e4a1b60a52b59bc148a81458a89b9b739ab1 |
3 files changed, 9 insertions(+), 0 deletions(-)
src/main.cpp+4| ... | ... | @@ -921,6 +921,10 @@ int main(int argc, char **argv) { |
| 921 | 921 | } |
| 922 | 922 | } |
| 923 | 923 | |
| 924 | if (target_is_single_threaded(&target)) { | |
| 925 | is_single_threaded = true; | |
| 926 | } | |
| 927 | ||
| 924 | 928 | if (output_dir != nullptr && enable_cache == CacheOptOn) { |
| 925 | 929 | fprintf(stderr, "`--output-dir` is incompatible with --cache on.\n"); |
| 926 | 930 | return print_error_usage(arg0); |
src/target.cpp+4| ... | ... | @@ -1371,6 +1371,10 @@ bool target_is_wasm(const ZigTarget *target) { |
| 1371 | 1371 | return target->arch == ZigLLVM_wasm32 || target->arch == ZigLLVM_wasm64; |
| 1372 | 1372 | } |
| 1373 | 1373 | |
| 1374 | bool target_is_single_threaded(const ZigTarget *target) { | |
| 1375 | return target_is_wasm(target); | |
| 1376 | } | |
| 1377 | ||
| 1374 | 1378 | ZigLLVM_EnvironmentType target_default_abi(ZigLLVM_ArchType arch, Os os) { |
| 1375 | 1379 | switch (os) { |
| 1376 | 1380 | case OsFreestanding: |
src/target.hpp+1| ... | ... | @@ -171,6 +171,7 @@ bool target_abi_is_musl(ZigLLVM_EnvironmentType abi); |
| 171 | 171 | bool target_is_glibc(const ZigTarget *target); |
| 172 | 172 | bool target_is_musl(const ZigTarget *target); |
| 173 | 173 | bool target_is_wasm(const ZigTarget *target); |
| 174 | bool target_is_single_threaded(const ZigTarget *target); | |
| 174 | 175 | |
| 175 | 176 | uint32_t target_arch_pointer_bit_width(ZigLLVM_ArchType arch); |
| 176 | 177 |