Fix SymCC build (#952)

This commit is contained in:
Dominik Maier 2022-12-19 13:48:07 +01:00 committed by GitHub
parent ccf6cc708a
commit e56d5318e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,6 +220,9 @@ fn build_and_link_symcc_runtime(symcc_src_path: &Path, rename_header_path: &Path
build_dep_check(&["cmake"]);
let cpp_lib = cmake::Config::new(symcc_src_path.join("runtime"))
.define("RUST_BACKEND", "ON")
// 2022: Deprecations break -Werror for our symcc build...
// We want to build it anyway!
.cxxflag("-Wno-error=deprecated-declarations")
.cxxflag(format!(
"-include \"{}\"",
rename_header_path.to_str().unwrap()