Handle clang-specific PGO flags

This commit is contained in:
Mike Hommey 2018-08-21 09:14:56 +09:00 коммит произвёл Ted Mielczarek
Родитель 32add8af0d
Коммит 89d6a0853c
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -81,7 +81,7 @@ impl CCompilerImpl for Clang {
}
}
pub static ARGS: [ArgInfo<gcc::ArgData>; 8] = [
pub static ARGS: [ArgInfo<gcc::ArgData>; 10] = [
take_arg!("--serialize-diagnostics", OsString, Separated, PassThrough),
take_arg!("--target", OsString, Separated, PassThrough),
// TODO: should be extracted and reprocessed, though bear in mind some
@ -89,6 +89,9 @@ pub static ARGS: [ArgInfo<gcc::ArgData>; 8] = [
take_arg!("-Xclang", OsString, Separated, TooHard),
flag!("-fcxx-modules", TooHardFlag),
flag!("-fmodules", TooHardFlag),
flag!("-fprofile-instr-generate", ProfileGenerate),
// Can be either -fprofile-instr-use or -fprofile-instr-use=path
take_arg!("-fprofile-instr-use", OsString, Concatenated, TooHard),
take_arg!("-gcc-toolchain", OsString, Separated, PassThrough),
take_arg!("-include-pch", PathBuf, CanBeSeparated, PreprocessorArgumentPath),
take_arg!("-target", OsString, Separated, PassThrough),