From 3c5337b0b1fb472a5ec0663362a411192f22363a Mon Sep 17 00:00:00 2001 From: anakinxc Date: Sat, 21 Sep 2024 17:42:26 +0800 Subject: [PATCH] Fix --- .bazelrc | 2 +- CONTRIBUTING.md | 2 +- libspu/compiler/front_end/fe.cc | 1 + libspu/mpc/semi2k/beaver/beaver_impl/beaver_ttp.cc | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.bazelrc b/.bazelrc index 2157ce73..7ba09399 100644 --- a/.bazelrc +++ b/.bazelrc @@ -43,7 +43,7 @@ build --copt=-fstack-protector-strong build:linux --copt=-Wl,-z,noexecstack build:macos --copt=-Wa,--noexecstack -test --keep_going +build --keep_going test --test_output=errors build:benchmark --copt -O3 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0aaf7287..9701c407 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -72,7 +72,7 @@ python3 -m pip install -r requirements-dev.txt #### macOS ```sh -# macOS >= 12.0, Xcode >= 14.0 +# macOS >= 13.0, Xcode >= 15.0 # Install Xcode https://apps.apple.com/us/app/xcode/id497799835?mt=12 diff --git a/libspu/compiler/front_end/fe.cc b/libspu/compiler/front_end/fe.cc index 5bcb693f..7f9529e5 100644 --- a/libspu/compiler/front_end/fe.cc +++ b/libspu/compiler/front_end/fe.cc @@ -14,6 +14,7 @@ #include "libspu/compiler/front_end/fe.h" +#include "fmt/ranges.h" #include "mlir/Dialect/Func/Extensions/InlinerExtension.h" #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/IR/BuiltinOps.h" diff --git a/libspu/mpc/semi2k/beaver/beaver_impl/beaver_ttp.cc b/libspu/mpc/semi2k/beaver/beaver_impl/beaver_ttp.cc index cca2c571..85f15fe0 100644 --- a/libspu/mpc/semi2k/beaver/beaver_impl/beaver_ttp.cc +++ b/libspu/mpc/semi2k/beaver/beaver_impl/beaver_ttp.cc @@ -17,7 +17,7 @@ #include #include -#include "yacl/crypto/pke/asymmetric_sm2_crypto.h" +#include "yacl/crypto/pke/sm2_enc.h" #include "yacl/crypto/rand/rand.h" #include "yacl/link/algorithm/allgather.h" @@ -179,7 +179,7 @@ BeaverTtp::BeaverTtp(std::shared_ptr lctx, Options ops) yacl::Buffer encrypted_seed; { - std::unique_ptr encryptor; + std::unique_ptr encryptor; auto lower_schema = absl::AsciiStrToLower(options_.asym_crypto_schema); if (lower_schema == "sm2") { encryptor = std::make_unique(