fix dynamic linking with ostd::build, ostd::fs

master
Daniel Kolesa 2021-05-04 03:21:49 +02:00
parent 6d53597d9a
commit 2286235786
4 changed files with 4 additions and 4 deletions

View File

@ -198,7 +198,7 @@ private:
bool p_action = false;
};
struct make_task {
struct OSTD_EXPORT make_task {
make_task() {}
virtual ~make_task();

View File

@ -1263,7 +1263,7 @@ using file_time_t = std::chrono::time_point<std::chrono::system_clock>;
* up to two paths involved in the operation as ostd::path. Whether those
* are used depends on the operation.
*/
struct fs_error: std::system_error {
struct OSTD_EXPORT fs_error: std::system_error {
/** @brief Constructs the error without paths. */
fs_error(std::string const &warg, std::error_code ec):
std::system_error::system_error(ec, warg)

View File

@ -9,7 +9,7 @@ namespace ostd {
namespace build {
/* place the vtable in here */
make_task::~make_task() {}
OSTD_EXPORT make_task::~make_task() {}
static bool check_exec(
string_range tname, std::vector<string_range> const &deps

View File

@ -21,7 +21,7 @@ namespace ostd {
/* place the vtables in here */
path_error::~path_error() {}
OSTD_EXPORT path_error::~path_error() {}
namespace fs {
fs_error::~fs_error() {}