diff options
| author | gingerBill <bill@gingerbill.org> | 2022-05-28 15:41:11 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-05-28 15:41:11 +0100 |
| commit | d7eaf0f87b7677e84bf1f65c34305801748c39ee (patch) | |
| tree | 21fe8f1ea895bf2fdec7e551adfcaccea7f099c2 /src/build_settings.cpp | |
| parent | 618d3bf62fbcfa6ca7f827ad4090143b8535b4a2 (diff) | |
Add `intrinsics.x86_cpuid` and `intrinsics.x86_xgetbv`
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index b458d8308..27e09a0db 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -629,6 +629,15 @@ bool is_arch_wasm(void) { return false; } +bool is_arch_x86(void) { + switch (build_context.metrics.arch) { + case TargetArch_i386: + case TargetArch_amd64: + return true; + } + return false; +} + bool allow_check_foreign_filepath(void) { switch (build_context.metrics.arch) { case TargetArch_wasm32: |