Allow extern abi to be specified as "C++"

This commit is contained in:
David Tolnay 2020-03-18 12:54:24 -07:00
parent 16448731f2
commit 0b76aea8e8
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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")),
}