| Index: src/main.cpp
|
| diff --git a/src/main.cpp b/src/main.cpp
|
| index e30ac7da59b4ccf9d49b61d151b0958305525ffc..9e2a6ecf32d6f5f7d31c97162d457ddc2c6816fe 100644
|
| --- a/src/main.cpp
|
| +++ b/src/main.cpp
|
| @@ -17,12 +17,16 @@
|
| #include "IceBuildDefs.h"
|
| #include "IceCompileServer.h"
|
|
|
| +/// Depending on whether we are building the compiler for the browser or
|
| +/// standalone, we will end up creating a Ice::BrowserCompileServer or
|
| +/// Ice::CLCompileServer object. Method
|
| +/// Ice::CompileServer::runAndReturnErrorCode is used for the invocation.
|
| +/// There are no real commandline arguments in the browser case. They are
|
| +/// supplied via IPC so argc, and argv are not used in that case.
|
| +/// We can only compile the Ice::BrowserCompileServer object with the PNaCl
|
| +/// compiler toolchain, when building Subzero as a sandboxed translator.
|
| int main(int argc, char **argv) {
|
| - // Start file server and "wait" for compile request.
|
| - // Can only compile the BrowserCompileServer w/ the NaCl compiler.
|
| if (Ice::BuildDefs::browser()) {
|
| - // There are no real commandline arguments in the browser case. They are
|
| - // supplied via IPC.
|
| assert(argc == 1);
|
| return Ice::BrowserCompileServer().runAndReturnErrorCode();
|
| }
|
|
|