fix(Deps/Boost): Fix build for boost 1.88. (#21952)
This commit is contained in:
committed by
GitHub
parent
0ddce17a4f
commit
7162294f1b
@@ -22,10 +22,21 @@
|
|||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
#include <boost/algorithm/string/join.hpp>
|
#include <boost/algorithm/string/join.hpp>
|
||||||
#include <boost/iostreams/copy.hpp>
|
#include <boost/iostreams/copy.hpp>
|
||||||
#include "boost/process.hpp"
|
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
|
||||||
|
#if BOOST_VERSION < 108800
|
||||||
|
#include <boost/process.hpp>
|
||||||
using namespace boost::process;
|
using namespace boost::process;
|
||||||
|
#else
|
||||||
|
#include <boost/process/v1/args.hpp>
|
||||||
|
#include <boost/process/v1/child.hpp>
|
||||||
|
#include <boost/process/v1/env.hpp>
|
||||||
|
#include <boost/process/v1/exe.hpp>
|
||||||
|
#include <boost/process/v1/io.hpp>
|
||||||
|
#include <boost/process/v1/search_path.hpp>
|
||||||
|
using namespace boost::process::v1;
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace boost::iostreams;
|
using namespace boost::iostreams;
|
||||||
|
|
||||||
namespace Acore
|
namespace Acore
|
||||||
@@ -118,7 +129,11 @@ namespace Acore
|
|||||||
exe = std::filesystem::absolute(executable).string(),
|
exe = std::filesystem::absolute(executable).string(),
|
||||||
args = argsVector,
|
args = argsVector,
|
||||||
env = environment(boost::this_process::environment()),
|
env = environment(boost::this_process::environment()),
|
||||||
|
#if BOOST_VERSION < 108800
|
||||||
std_in = boost::process::close,
|
std_in = boost::process::close,
|
||||||
|
#else
|
||||||
|
std_in = boost::process::v1::close,
|
||||||
|
#endif
|
||||||
std_out = outStream,
|
std_out = outStream,
|
||||||
std_err = errStream
|
std_err = errStream
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user