Skip to content

Commit

Permalink
Fix recent bugs with shim/third-party
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-singer committed Aug 24, 2024
1 parent 9beff40 commit 5530e07
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/actions/setup_reindeer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ runs:
- name: Install Reindeer
run: |-
cargo install --locked --git https://github.com/facebookincubator/reindeer reindeer
# Remove any dirty BUCK and Cargo.lock files
rm -f shim/third-party/rust/Cargo.lock shim/third-party/rust/BUCK
reindeer --third-party-dir shim/third-party/rust buckify
shell: bash
8 changes: 8 additions & 0 deletions shim/third-party/rust/fixups/serde_json/fixups.toml
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
buildscript = []

[platform_fixup.'cfg(any(target_arch = "aarch64", target_arch = "loongarch64", target_arch = "mips64", target_arch = "powerpc64", target_arch = "wasm32", target_arch = "x86_64"))']
buildscript = []
rustc_flags = ['--cfg=fast_arithmetic="64"']

[platform_fixup.'cfg(not(any(target_arch = "aarch64", target_arch = "loongarch64", target_arch = "mips64", target_arch = "powerpc64", target_arch = "wasm32", target_arch = "x86_64")))']
buildscript = []
rustc_flags = ['--cfg=fast_arithmetic="32"']
8 changes: 6 additions & 2 deletions shim/third-party/rust/fixups/zstd-sys/fixups.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ srcs = [
headers = [
"zdict.h",
"zstd.h",
"zstd/lib/common/allocations.h",
"zstd/lib/common/bits.h",
"zstd/lib/common/bitstream.h",
"zstd/lib/common/compiler.h",
"zstd/lib/common/cpu.h",
Expand All @@ -32,7 +34,7 @@ headers = [
"zstd/lib/common/pool.h",
"zstd/lib/common/portability_macros.h",
"zstd/lib/common/threading.h",
#"zstd/lib/common/xxhash.h",
"zstd/lib/common/xxhash.h",
"zstd/lib/common/zstd_deps.h",
"zstd/lib/common/zstd_internal.h",
"zstd/lib/common/zstd_trace.h",
Expand Down Expand Up @@ -78,6 +80,8 @@ srcs = [
headers = [
"zdict.h",
"zstd.h",
"zstd/lib/common/allocations.h",
"zstd/lib/common/bits.h",
"zstd/lib/common/bitstream.h",
"zstd/lib/common/compiler.h",
"zstd/lib/common/cpu.h",
Expand All @@ -89,7 +93,7 @@ headers = [
"zstd/lib/common/pool.h",
"zstd/lib/common/portability_macros.h",
"zstd/lib/common/threading.h",
#"zstd/lib/common/xxhash.h",
"zstd/lib/common/xxhash.h",
"zstd/lib/common/zstd_deps.h",
"zstd/lib/common/zstd_internal.h",
"zstd/lib/common/zstd_trace.h",
Expand Down

0 comments on commit 5530e07

Please sign in to comment.