mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
fix conditional compilation
This commit is contained in:
parent
381f188409
commit
970b2c94f2
1 changed files with 6 additions and 3 deletions
|
@ -254,8 +254,8 @@ fn fast_eat_spaces(state: &State) -> FastSpaceState {
|
|||
index += 1;
|
||||
|
||||
// try to use SIMD instructions explicitly
|
||||
if cfg!(target_arch = "x86_64") {
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
{
|
||||
use std::arch::x86_64::*;
|
||||
|
||||
// a bytestring with the three characters we're looking for (the rest is ignored)
|
||||
|
@ -285,7 +285,10 @@ fn fast_eat_spaces(state: &State) -> FastSpaceState {
|
|||
continue 'outer;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "x86_64"))]
|
||||
{
|
||||
while index < length {
|
||||
match bytes[index] {
|
||||
b'\n' | b'\t' | b'\r' => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue