Skip to content

Commit

Permalink
[std] Don't break compilation for unknown CPUs
Browse files Browse the repository at this point in the history
There's no point having a change in the final neko release like this
that breaks compilation for platforms that worked fine before. Otherwise
we'll get more PRs like #285. A warning should suffice.
  • Loading branch information
tobil4sk committed Jul 2, 2024
1 parent dd7cb94 commit 7f280c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/std/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ static value sys_is64() {
<li>[arm64]</li>
<li>[arm]</li>
<li>[riscv64]</li>
<li>[unknown]</li>
</ul>
</doc>
**/
Expand All @@ -258,7 +259,8 @@ static value sys_cpu_arch() {
#elif (defined(__riscv) && (__riscv_xlen == 64)) || defined(_M_RISCV64)
return alloc_string("riscv64");
#else
#error Unknown CPU architecture
#warning Unknown CPU architecture for sys_cpu_arch
return alloc_string("unknown");
#endif
}

Expand Down

0 comments on commit 7f280c5

Please sign in to comment.