diff options
author | John Hodge <tpg@mutabah.net> | 2018-01-14 14:17:07 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-01-14 14:43:17 +0800 |
commit | ae34deb892458dbb75ab5492786babf1b3f360a0 (patch) | |
tree | ac625acc1ea540ec000b40f1947927ca9915d0f7 /tools/testrunner/main.cpp | |
parent | ad9ee752049e9e853adc634df66700dae573f8b8 (diff) | |
download | mrust-ae34deb892458dbb75ab5492786babf1b3f360a0.tar.gz |
MSVC compile fixes
Diffstat (limited to 'tools/testrunner/main.cpp')
-rw-r--r-- | tools/testrunner/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testrunner/main.cpp b/tools/testrunner/main.cpp index 1751c8ff..f7e15105 100644 --- a/tools/testrunner/main.cpp +++ b/tools/testrunner/main.cpp @@ -5,6 +5,7 @@ #include <string> #include <vector> #include <fstream> +#include <cctype> // std::isblank #include "../minicargo/debug.h" #include "../minicargo/path.h" #ifdef _WIN32 @@ -216,7 +217,7 @@ int main(int argc, const char* argv[]) continue ; // TODO Parse a skewer-case ident and check against known set? - auto start = (line[2] == ' ' ? 3 : 2); + size_t start = (line[2] == ' ' ? 3 : 2); if( line.substr(start, 10) == "aux-build:" ) { @@ -296,7 +297,11 @@ int main(int argc, const char* argv[]) bool pre_build_failed = false; for(const auto& file : test.m_pre_build) { +#ifdef _WIN32 + CreateDirectoryA(depdir.str().c_str(), NULL); +#else mkdir(depdir.str().c_str(), 0755); +#endif auto infile = input_path / "auxiliary" / file; if( !run_compiler(infile, depdir, {}, depdir, true) ) { |