mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
6365db964b
`oxc_lexer` has 2 implementations: 1\. SIMD-based on x86_64 with AVX2. 2\. Scalar/SWAR fallback which works on all platforms. Both produce the same output. This PR enables running the lexer conformance on either implementation. Which implementation is tested depends on what build flags are passed to `cargo coverage`. It turns out that it's possible to test the SIMD implementation on Mac by compiling as x86_64, and running it under Rosetta 2. This PR also adds `just` recipes to run tests and conformance on either implementation: - `just test-lexer` - `just test-lexer-simd` - `just conformance-lexer` - `just conformance-lexer-simd` These commands should work correctly on any of Linux x86, Windows x86, Mac aarch64.