refactor
This commit is contained in:
@ -29,8 +29,8 @@
|
||||
|
||||
#if defined(PROJECT_REQUIRE_ALPINE) && !defined(PROJECT_IS_MINGW)
|
||||
#include <filesystem>
|
||||
#include <stdlib.h>
|
||||
#include <pthread.h>
|
||||
#include <stdlib.h>
|
||||
#endif // defined(PROJECT_REQUIRE_ALPINE) && !defined (PROJECT_IS_MINGW)
|
||||
|
||||
#if defined(PROJECT_ENABLE_LIBSODIUM)
|
||||
@ -44,6 +44,9 @@
|
||||
#include "spdlog/spdlog.h"
|
||||
|
||||
#include "initialize.hpp"
|
||||
#if defined(PROJECT_REQUIRE_ALPINE) && !defined(PROJECT_IS_MINGW)
|
||||
#include "utils/path.hpp"
|
||||
#endif // defined(PROJECT_REQUIRE_ALPINE) && !defined (PROJECT_IS_MINGW)
|
||||
|
||||
namespace repertory {
|
||||
auto project_initialize() -> bool {
|
||||
@ -61,11 +64,7 @@ auto project_initialize() -> bool {
|
||||
pthread_attr_setguardsize(&attr, guard_size);
|
||||
pthread_setattr_default_np(&attr);
|
||||
|
||||
const auto icu_dir =
|
||||
std::filesystem::absolute(std::filesystem::path{"./icu"})
|
||||
.lexically_normal()
|
||||
.string();
|
||||
setenv("ICU_DATA", icu_dir.c_str(), 1);
|
||||
setenv("ICU_DATA", utils::path::combine(".", {"/icu"}).c_str(), 1);
|
||||
}
|
||||
#endif // defined(PROJECT_REQUIRE_ALPINE) && !defined (PROJECT_IS_MINGW)
|
||||
|
||||
|
Reference in New Issue
Block a user