Commit 47607dfd authored by Yixing Lao's avatar Yixing Lao

add add_header_search_path to compiler

parent 3b5ed8d7
......@@ -79,6 +79,11 @@ void Compiler::set_precompiled_header_source(const std::string& source)
s_static_compiler.set_precompiled_header_source(source);
}
void Compiler::add_header_search_path(const std::string& path)
{
s_static_compiler.add_header_search_path(path);
}
std::unique_ptr<llvm::Module> Compiler::compile(const std::string& source)
{
lock_guard<mutex> lock(m_mutex);
......
......@@ -54,6 +54,7 @@ public:
Compiler();
~Compiler();
void set_precompiled_header_source(const std::string& source);
void add_header_search_path(const std::string& path);
std::unique_ptr<llvm::Module> compile(const std::string& source);
std::unique_ptr<clang::CodeGenAction>& get_compiler_action() { return compiler_action; }
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment