1 #include "clangplugin.h"
2 #include "clangtools.h"
4 ClangPlugin::ClangPlugin(Builder &b):
7 required_plugins.push_back("gnutools");
10 void ClangPlugin::add_tools(Toolchain &toolchain, const Architecture &arch) const
12 toolchain.add_toolchain(new ClangTools(builder, arch));
16 #ifdef CLANGTOOLS_BUILD
18 #define CLANGTOOLS_API __declspec(dllexport)
19 #elif defined(__GNUC__)
20 #define CLANGTOOLS_API __attribute__((visibility("default")))
22 #define CLANGTOOLS_API
26 CLANGTOOLS_API Plugin *create_plugin(Builder &builder)
28 return new ClangPlugin(builder);