]> git.tdb.fi Git - builder.git/blobdiff - source/clangcompiler.cpp
Collapse the language-specific compilers into a single class
[builder.git] / source / clangcompiler.cpp
diff --git a/source/clangcompiler.cpp b/source/clangcompiler.cpp
new file mode 100644 (file)
index 0000000..7ad47ed
--- /dev/null
@@ -0,0 +1,10 @@
+#include "clangcompiler.h"
+
+using namespace std;
+using namespace Msp;
+
+ClangCompiler::ClangCompiler(Builder &b, const Architecture &a, const string &t, const FS::Path &r):
+       GnuCompiler(b, a, t, r)
+{
+       set_command((tag=="CXX" ? "clang++" : "clang"), true);
+}