Compare commits
5 Commits
61ab4d8d58
...
7705432820
Author | SHA1 | Date | |
---|---|---|---|
7705432820 | |||
f150832676 | |||
80c9375d65 | |||
48ddff9e85 | |||
6f64fe02d5 |
@ -242,6 +242,7 @@ usermount
|
|||||||
userprofile
|
userprofile
|
||||||
utimens
|
utimens
|
||||||
utimensat
|
utimensat
|
||||||
|
waggressive
|
||||||
wcast
|
wcast
|
||||||
wconversion
|
wconversion
|
||||||
wdouble
|
wdouble
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
// clang-format off
|
// clang-format off
|
||||||
#define REPERTORY_IGNORE_WARNINGS_ENABLE() \
|
#define REPERTORY_IGNORE_WARNINGS_ENABLE() \
|
||||||
_Pragma("GCC diagnostic push") \
|
_Pragma("GCC diagnostic push") \
|
||||||
|
_Pragma("GCC diagnostic ignored \"-Waggressive-loop-optimizations\"") \
|
||||||
_Pragma("GCC diagnostic ignored \"-Wconversion\"") \
|
_Pragma("GCC diagnostic ignored \"-Wconversion\"") \
|
||||||
_Pragma("GCC diagnostic ignored \"-Wdouble-promotion\"") \
|
_Pragma("GCC diagnostic ignored \"-Wdouble-promotion\"") \
|
||||||
_Pragma("GCC diagnostic ignored \"-Wduplicated-branches\"") \
|
_Pragma("GCC diagnostic ignored \"-Wduplicated-branches\"") \
|
||||||
@ -121,6 +122,7 @@ template <typename data_type>
|
|||||||
#include <boost/archive/text_iarchive.hpp>
|
#include <boost/archive/text_iarchive.hpp>
|
||||||
#include <boost/archive/text_oarchive.hpp>
|
#include <boost/archive/text_oarchive.hpp>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
|
#include <boost/asio/io_context.hpp>
|
||||||
#include <boost/bind/bind.hpp>
|
#include <boost/bind/bind.hpp>
|
||||||
#include <boost/dynamic_bitset.hpp>
|
#include <boost/dynamic_bitset.hpp>
|
||||||
#include <boost/dynamic_bitset/serialization.hpp>
|
#include <boost/dynamic_bitset/serialization.hpp>
|
||||||
|
@ -5,6 +5,10 @@ BUILD_CLEAN=$2
|
|||||||
IS_MINGW=$3
|
IS_MINGW=$3
|
||||||
IS_WIN32=$4
|
IS_WIN32=$4
|
||||||
|
|
||||||
|
if [ "${BUILD_TYPE}" == "" ]; then
|
||||||
|
BUILD_TYPE=Release
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${IS_MINGW}" == "1" ] || [ "${IS_WIN32}" == "1" ]; then
|
if [ "${IS_MINGW}" == "1" ] || [ "${IS_WIN32}" == "1" ]; then
|
||||||
BUILD_ROOT=build2
|
BUILD_ROOT=build2
|
||||||
else
|
else
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pushd "$(dirname "$0")/.."
|
pushd "$(dirname "$0")/.."
|
||||||
scripts/make_common.sh ${1} "${2}" 1
|
scripts/make_common.sh "${1}" "${2}" 1
|
||||||
popd
|
popd
|
||||||
|
@ -11,6 +11,9 @@ NAME=alpine
|
|||||||
if [ -z "${BUILD_ARCH}" ]; then
|
if [ -z "${BUILD_ARCH}" ]; then
|
||||||
BUILD_ARCH=64_bit
|
BUILD_ARCH=64_bit
|
||||||
fi
|
fi
|
||||||
|
if [ -z "${BUILD_TYPE}" ]; then
|
||||||
|
BUILD_TYPE=Release
|
||||||
|
fi
|
||||||
|
|
||||||
ln -sf ${SOURCE_DIR}/build/compile_commands.json ${SOURCE_DIR}/compile_commands.json
|
ln -sf ${SOURCE_DIR}/build/compile_commands.json ${SOURCE_DIR}/compile_commands.json
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
pushd "%~dp0%.."
|
pushd "%~dp0%.."
|
||||||
mingw64 scripts/make_common.sh %1 "%2" 0 1
|
mingw64 scripts/make_common.sh "%1" "%2" 0 1
|
||||||
popd
|
popd
|
||||||
|
@ -7,5 +7,4 @@ pacman -Sqyuu --noconfirm &&
|
|||||||
mingw64/mingw-w64-x86_64-make \
|
mingw64/mingw-w64-x86_64-make \
|
||||||
mingw64/mingw-w64-x86_64-toolchain \
|
mingw64/mingw-w64-x86_64-toolchain \
|
||||||
msys/git \
|
msys/git \
|
||||||
msys/mercurial \
|
|
||||||
make
|
make
|
||||||
|
@ -53,8 +53,9 @@ auto eviction::check_minimum_requirements(const std::string &file_path)
|
|||||||
const auto now = std::chrono::system_clock::now();
|
const auto now = std::chrono::system_clock::now();
|
||||||
const auto delay =
|
const auto delay =
|
||||||
std::chrono::minutes(config_.get_eviction_delay_mins());
|
std::chrono::minutes(config_.get_eviction_delay_mins());
|
||||||
ret = ((std::chrono::system_clock::from_time_t(reference_time) + delay) <=
|
ret = ((std::chrono::system_clock::from_time_t(
|
||||||
now);
|
static_cast<time_t>(reference_time)) +
|
||||||
|
delay) <= now);
|
||||||
#else
|
#else
|
||||||
const auto now = utils::get_time_now();
|
const auto now = utils::get_time_now();
|
||||||
const auto delay =
|
const auto delay =
|
||||||
|
Reference in New Issue
Block a user