提交 dc42417f 编写于 作者: M Megvii Engine Team

fix(ci/build): opt macos ci and move bazel to 4.2.1

GitOrigin-RevId: d1494faf0c493675916216aea7ce6b1a9cf5467b
上级 dbb3232c
......@@ -279,7 +279,7 @@ public:
return m_mem_alloc->get_free_left_and_right(begin_ptr, end_ptr);
}
size_t get_max_block_size_available() {
size_t get_max_block_size_available() override {
activate();
return m_mem_alloc->get_max_block_size_available();
}
......
......@@ -33,7 +33,7 @@ class RNGxorshf {
uint64_t s[2];
public:
#if __cplusplus >= 201703L
#if __cplusplus >= 201703L || (defined(__APPLE__) && __cplusplus >= 201402L)
typedef uint64_t result_type;
static constexpr uint64_t min() { return 0; }
static constexpr uint64_t max() { return UINT64_MAX; }
......@@ -766,7 +766,7 @@ void SeqModifierForSublinearMemory::ActionSearcherSingleCN::search_genetic() {
}
}
m_cur_records = records;
#if __cplusplus >= 201703L
#if __cplusplus >= 201703L || (defined(__APPLE__) && __cplusplus >= 201402L)
std::shuffle(perm.begin(), perm.end(), rng);
#else
std::random_shuffle(perm.begin(), perm.end(),
......@@ -1119,4 +1119,4 @@ SeqModifierForSublinearMemory::SeqModifierForSublinearMemory(
#endif // !MGB_ENABLE_SUBLINEAR
// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}
\ No newline at end of file
// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册