fix cfg for target-wasm32 cli tests

This commit is contained in:
Luke Boswell 2024-08-05 10:16:36 +10:00
parent 53a1edb03a
commit f28ddea805
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ comptime {
const Unit = extern struct {};
pub export fn main() u8 {
pub fn main() u8 {
const stderr = std.io.getStdErr().writer();
// The size might be zero; if so, make it at least 8 so that we don't have a nullptr

View file

@ -76,7 +76,7 @@ pub fn arch_str(target: Target) -> &'static str {
roc_target::Architecture::X86_32 if cfg!(feature = "target-x86") => "x86",
roc_target::Architecture::Aarch64 if cfg!(feature = "target-aarch64") => "aarch64",
roc_target::Architecture::Aarch32 if cfg!(feature = "target-arm") => "arm",
roc_target::Architecture::Wasm32 if cfg!(feature = "target-webassembly") => "wasm32",
roc_target::Architecture::Wasm32 if cfg!(feature = "target-wasm32") => "wasm32",
_ => internal_error!(
"TODO gracefully handle unsupported target architecture: {:?}",
target.architecture()