Support precompiled headers in clang/ar wrappers (#1668)

This commit is contained in:
s1341 2023-11-15 16:10:03 +02:00 committed by GitHub
parent 7acdeacae8
commit b1888e12c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ impl ToolWrapper for ArWrapper {
let extension = extension.to_str().unwrap();
let extension_lowercase = extension.to_lowercase();
match &extension_lowercase[..] {
"o" | "lo" | "a" | "la" | "so" | "ao" | "c.o" => {
"o" | "lo" | "a" | "la" | "so" | "ao" | "c.o" | "pch" => {
configuration.replace_extension(&arg_as_path)
}
_ => arg_as_path,

View File

@ -345,7 +345,7 @@ impl ToolWrapper for ClangWrapper {
let extension = extension.to_str().unwrap();
let extension_lowercase = extension.to_lowercase();
match &extension_lowercase[..] {
"a" | "la" => configuration.replace_extension(&arg_as_path),
"a" | "la" | "pch" => configuration.replace_extension(&arg_as_path),
_ => arg_as_path,
}
} else {