зеркало из https://github.com/mozilla/sccache.git
Handle clang-specific PGO flags
This commit is contained in:
Родитель
32add8af0d
Коммит
89d6a0853c
|
@ -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),
|
||||
|
|
Загрузка…
Ссылка в новой задаче