Commit bd61aa2e authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano

Fixed warning caused by new version of gcc crate

parent bae9ebc9
Pipeline #984 failed with stages
in 29 minutes and 33 seconds
......@@ -21,7 +21,11 @@ extern crate gcc;
#[cfg(any(target_os = "macos", target_os = "linux"))]
#[cfg(target_arch = "x86_64")]
fn main() {
gcc::compile_library("libruntime_c.a", &["src/runtime/runtime_c_x64_sysv.c"]);
gcc::Build::new()
.flag("-O3")
.flag("-c")
.file("src/runtime/runtime_c_x64_sysv.c")
.compile("libruntime_c.a");
gcc::Build::new()
.flag("-O3")
......@@ -36,7 +40,11 @@ fn main() {
#[cfg(target_os = "linux")]
#[cfg(target_arch = "aarch64")]
fn main() {
gcc::compile_library("libruntime_c.a", &["src/runtime/runtime_c_aarch64_sysv.c"]);
gcc::Build::new()
.flag("-O3")
.flag("-c")
.file("src/runtime/runtime_c_aarch64_sysv.c")
.compile("libruntime_c.a");
gcc::Build::new()
.flag("-O3")
......
......@@ -17,20 +17,20 @@ extern crate gcc;
#[cfg(any(target_os = "macos", target_os = "linux"))]
#[cfg(target_arch = "x86_64")]
fn build_libgc() {
gcc::compile_library("libgc_clib_x64.a", &["src/heap/gc/clib_x64.c"]);
gcc::Build::new().flag("-O3").flag("-c").file("src/heap/gc/clib_x64.c").compile("libgc_clib_x64.a");
}
#[cfg(target_os = "linux")]
#[cfg(target_arch = "aarch64")]
fn build_libgc() {
gcc::compile_library("libgc_clib_aarch64.a", &["src/heap/gc/clib_aarch64.S"]);
gcc::Build::new().flag("-O3").flag("-c").file("src/heap/gc/clib_aarch64.S").compile("libgc_clib_aarch64.a");
}
// This is here to enable cross compiling from windows/x86_64 to linux/aarch64
#[cfg(target_os = "windows")]
#[cfg(target_arch = "x86_64")]
fn build_libgc() {
gcc::compile_library("libgc_clib_aarch64.a", &["src/heap/gc/clib_aarch64.S"]);
gcc::Build::new().flag("-O3").flag("-c").file("src/heap/gc/clib_aarch64.S").compile("libgc_clib_aarch64.a");
}
// Due to bugs, it is currently not possible to use conditional compilation \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment