mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
fix cfg for target-wasm32 cli tests
This commit is contained in:
parent
53a1edb03a
commit
f28ddea805
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue