Skip to content

Commit

Permalink
rectify apple warning
Browse files Browse the repository at this point in the history
  • Loading branch information
djellemah committed May 4, 2024
1 parent dd313d8 commit e6d905e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ jobs:
include:
- target: x86_64-pc-windows-gnu
runs-on: windows-latest
simd-def: RAPIDJSON_SSE42
# - target: x86_64-unknown-linux-musl
# runs-on: ubuntu-latest
- target: x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
simd-def: RAPIDJSON_SSE42
- target: arm64e-apple-darwin
runs-on: macos-latest
simd-def: RAPIDJSON_NEON

runs-on: ${{ matrix.runs-on }}
steps:
Expand All @@ -56,6 +59,8 @@ jobs:
- run: rustup default nightly
- name: compile
run: cargo build --release
env:
${{ matrix.simd-def }}: true

- name: upload bin to release
if: ${{ runner.os != 'Windows' }}
Expand Down
2 changes: 1 addition & 1 deletion src/wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "jch/src/rapid.rs.h"

// turn on simd instructions
#define RAPIDJSON_SSE42
// #define RAPIDJSON_SSE42

// TODO vendor or git-submodule this into the build tree
#include "rapidjson/fwd.h"
Expand Down
4 changes: 2 additions & 2 deletions src/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include "rust/cxx.h"

class RustStream;
class RustHandler;
struct RustStream;
struct RustHandler;

void parse(RustHandler & handler, RustStream & incoming);
void from_file(rust::String filename, RustHandler & handler);

0 comments on commit e6d905e

Please sign in to comment.