]> git.tdb.fi Git - builder.git/blobdiff - plugins/clang/clangplugin.cpp
Make it possible to use built-in plugins
[builder.git] / plugins / clang / clangplugin.cpp
index 96a1df8c9fcd57c2691f7cf9a8de3f913295d192..b33c75692e28e29aa07674b6ae51a16096c3d923 100644 (file)
@@ -13,6 +13,7 @@ void ClangPlugin::add_tools(Toolchain &toolchain, const Architecture &arch) cons
 }
 
 
+#ifdef CLANGTOOLS_BUILD
 #if defined(_WIN32)
 #define CLANGTOOLS_API __declspec(dllexport)
 #elif defined(__GNUC__)
@@ -26,3 +27,4 @@ CLANGTOOLS_API Plugin *create_plugin(Builder &builder)
 {
        return new ClangPlugin(builder);
 }
+#endif