Fix issue with relative include paths
This commit is contained in:
parent
c5d6df957c
commit
e84925d5e4
1 changed files with 2 additions and 1 deletions
|
|
@ -134,7 +134,8 @@ namespace
|
||||||
{
|
{
|
||||||
std::vector<const char*> get_arguments(const libclang_compile_config& config)
|
std::vector<const char*> get_arguments(const libclang_compile_config& config)
|
||||||
{
|
{
|
||||||
std::vector<const char*> args = {"-x", "c++"}; // force C++
|
std::vector<const char*> args =
|
||||||
|
{"-x", "c++", "-I."}; // force C++ and enable current directory for include search
|
||||||
for (auto& flag : detail::libclang_compile_config_access::flags(config))
|
for (auto& flag : detail::libclang_compile_config_access::flags(config))
|
||||||
args.push_back(flag.c_str());
|
args.push_back(flag.c_str());
|
||||||
return args;
|
return args;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue