Additional SymCC Build Fixes (#954)

This commit is contained in:
Dominik Maier 2022-12-20 00:37:19 +01:00 committed by GitHub
parent e56d5318e4
commit 7ed1ac9c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,7 @@ fn main() {
// Take advantage of LTO (needs lld-link set in your cargo config) // Take advantage of LTO (needs lld-link set in your cargo config)
//.flag("-flto=thin") //.flag("-flto=thin")
.flag("-Wno-sign-compare") .flag("-Wno-sign-compare")
.flag("-Wunused-but-set-variable")
.file("./harness.c") .file("./harness.c")
.compile("harness"); .compile("harness");
@ -74,6 +75,7 @@ fn main() {
let output = cc::Build::new() let output = cc::Build::new()
.flag("-Wno-sign-compare") .flag("-Wno-sign-compare")
.flag("-Wunused-but-set-variable")
.cargo_metadata(false) .cargo_metadata(false)
.get_compiler() .get_compiler()
.to_command() .to_command()

View File

@ -3,6 +3,9 @@
//! Additionally, it concretizes all floating point operations for simplicity. //! Additionally, it concretizes all floating point operations for simplicity.
//! Refer to the `symcc_runtime` crate documentation for building your own runtime. //! Refer to the `symcc_runtime` crate documentation for building your own runtime.
// The lib needs to be named SymRuntime for SymCC to find it
#![allow(non_snake_case)]
use symcc_runtime::{ use symcc_runtime::{
export_runtime, export_runtime,
filter::{CallStackCoverage, NoFloat}, filter::{CallStackCoverage, NoFloat},