diff options
author | syn <isaqtm@gmail.com> | 2020-12-08 10:35:52 +0300 |
---|---|---|
committer | syn <isaqtm@gmail.com> | 2020-12-08 10:35:52 +0300 |
commit | 69c1e85be895bbcfcbfed6f3154bd552d46858f4 (patch) | |
tree | 546e95e874004a87c2c241a36ef9a9ac775a30af /src/conf.rs | |
parent | 4a70743d725693c5980b157a819c4e6fa80b3e01 (diff) | |
download | evr-69c1e85be895bbcfcbfed6f3154bd552d46858f4.tar.gz |
Add C backend
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 } } |