25 run(executable, {executable},
"", tmp_file_out(), tmp_file_err());
32 std::ifstream in(tmp_file_err());
35 if(std::getline(in, line))
44 if(split.back() ==
"x86" || split.back() ==
"80x86")
46 else if(split.back() ==
"x64")
48 else if(split.back() ==
"ARM")
53 auto split_v =
split_string(split[split.size() - 3],
'.');
55 if(split_v.size() >= 2)
void get(const std::string &executable)
enum ms_cl_versiont::targett target
bool is_at_least(unsigned v_major, unsigned v_minor=0) const
std::ostream & operator<<(std::ostream &out, const ms_cl_versiont &v)
int run(const std::string &what, const std::vector< std::string > &argv)
unsigned safe_string2unsigned(const std::string &str, int base)
void split_string(const std::string &s, char delim, std::vector< std::string > &result, bool strip, bool remove_empty)