diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index 08acb5ebd..6ed90cdea 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -272,7 +272,7 @@ bool CommandLineInterface::processInput() while (!cin.eof()) { getline(cin, s); - m_sourceCodes[""].append(s); + m_sourceCodes[""].append(s + '\n'); } } else @@ -345,18 +345,11 @@ bool CommandLineInterface::processInput() void CommandLineInterface::handleAst(string const& _argStr) { string title; - string suffix; if (_argStr == g_argAstStr) - { title = "Syntax trees:"; - suffix = ".ast"; - } else if (_argStr == g_argAstJson) - { title = "JSON AST:"; - suffix = ".json"; - } else BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Illegal argStr for AST")); diff --git a/docker_emscripten/Dockerfile b/docker_emscripten/Dockerfile index b593cbf74..06467a2c5 100644 --- a/docker_emscripten/Dockerfile +++ b/docker_emscripten/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get install -qy automake libtool yasm scons RUN useradd -ms /bin/bash user USER user +ENV HOME /home/user WORKDIR /home/user # Emscripten SDK