diff --git a/src/project.cc b/src/project.cc index 6833ad7b..717f81c6 100644 --- a/src/project.cc +++ b/src/project.cc @@ -227,6 +227,8 @@ std::vector GetFallback(const std::string path) { std::vector argv{"clang"}; if (sys::path::extension(path) == ".h") argv.push_back("-xobjective-c++-header"); + for (const std::string &arg : g_config->clang.extraArgs) + argv.push_back(Intern(arg)); argv.push_back(Intern(path)); return argv; }