Add support for -fXX feature flags

This commit is contained in:
Jonathan Müller 2018-12-03 12:17:50 +01:00
commit c6aae718bd
3 changed files with 23 additions and 0 deletions

View file

@ -386,6 +386,12 @@ void libclang_compile_config::do_set_flags(cpp_standard standard, compile_flags
add_flag("-fms-extensions");
}
bool libclang_compile_config::do_enable_feature(std::string name)
{
add_flag("-f" + std::move(name));
return true;
}
void libclang_compile_config::do_add_include_dir(std::string path)
{
add_flag("-I" + std::move(path));