Skip to content

Commit

Permalink
other macos build
Browse files Browse the repository at this point in the history
rectify apple warning
  • Loading branch information
djellemah committed May 4, 2024
1 parent f1ae4fc commit 2ce787e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,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
- target: x86_64-apple-darwin
simd-def: RAPIDJSON_SSE42
- target: arm64e-apple-darwin
runs-on: macos-latest
simd-def: RAPIDJSON_NEON

runs-on: ${{ matrix.runs-on }}
steps:
Expand All @@ -55,6 +58,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 2ce787e

Please sign in to comment.