diff options
Diffstat (limited to 'src/conf.rs')
-rw-r--r-- | src/conf.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/conf.rs b/src/conf.rs index 26a4832..3649a50 100644 --- a/src/conf.rs +++ b/src/conf.rs @@ -5,7 +5,12 @@ use toml::de; type Error = std::io::Error; use std::io::ErrorKind; -use crate::backends::{ Backend, PythonBackend, ClangBackend }; +use crate::backends::{ + Backend, + PythonBackend, + ClangBackend, + ClangCBackend, +}; #[derive(Debug, Deserialize)] @@ -17,7 +22,10 @@ pub struct Conf { python: PythonBackend, #[serde(default)] - clang: ClangBackend + clang: ClangBackend, + + #[serde(default)] + clang_c: ClangCBackend, } @@ -36,6 +44,7 @@ impl Conf { match ext { "py" => Some(Box::new(&self.python)), "cc" | "cpp" | "cxx" => Some(Box::new(&self.clang)), + "c" => Some(Box::new(&self.clang_c)), _ => None } } |