mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-24 07:40:19 +00:00
Allow extern abi to be specified as "C++"
This commit is contained in:
parent
16448731f2
commit
0b76aea8e8
@ -111,7 +111,7 @@ fn parse_lang(abi: Abi) -> Result<Lang> {
|
||||
}
|
||||
};
|
||||
match name.value().as_str() {
|
||||
"C" => Ok(Lang::Cxx),
|
||||
"C" | "C++" => Ok(Lang::Cxx),
|
||||
"Rust" => Ok(Lang::Rust),
|
||||
_ => Err(Error::new_spanned(abi, "unrecognized ABI")),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user