summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/minicargo/manifest.cpp1
-rw-r--r--tools/testrunner/main.cpp7
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/minicargo/manifest.cpp b/tools/minicargo/manifest.cpp
index fa20cec7..e7228ed7 100644
--- a/tools/minicargo/manifest.cpp
+++ b/tools/minicargo/manifest.cpp
@@ -6,6 +6,7 @@
#include "path.h"
#include <cassert>
#include <algorithm>
+#include <cctype> // toupper
#include "repository.h"
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) )
{