aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDan Gohman <sunfish@google.com>2014-02-24 08:50:27 -0800
committerDan Gohman <sunfish@google.com>2014-02-24 17:32:55 -0800
commit632c823b8bfd3fd5a4b77628eddd6161c5d8367e (patch)
tree8c07815492b50f5b13c7b2426fac176610e2cebb /lib/Driver/Driver.cpp
parentf6e2fddff6294c1c2ec2f9602c30ff680359ed19 (diff)
Define an Emscripten toolchain.
This is pretty minimal right now; eventually this may subsume code currently in the emscripten wrapper scripts.
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 1dbbc9a342..6d0ac5733a 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1759,6 +1759,9 @@ const ToolChain &Driver::getToolChain(const ArgList &Args,
case llvm::Triple::Win32:
TC = new toolchains::Windows(*this, Target, Args);
break;
+ case llvm::Triple::Emscripten:
+ TC = new toolchains::EmscriptenToolChain(*this, Target, Args);
+ break;
case llvm::Triple::MinGW32:
// FIXME: We need a MinGW toolchain. Fallthrough for now.
default: