diff --git a/src/project.cc b/src/project.cc index 71f43bdb..d04d67c2 100644 --- a/src/project.cc +++ b/src/project.cc @@ -215,6 +215,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; }