WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

build.rs 656 Bytes
Newer Older
qinsoon's avatar
qinsoon committed
1 2 3 4 5
extern crate gcc;

#[cfg(target_os = "macos")]
#[cfg(target_arch = "x86_64")]
fn main() {
Kunshan Wang's avatar
Kunshan Wang committed
6
    gcc::compile_library("libruntime.a", &["src/runtime/runtime_x64_sysv.c"]);
7
    
8
    gcc::Config::new().flag("-O3").flag("-c")
Kunshan Wang's avatar
Kunshan Wang committed
9
                     .file("src/runtime/swap_stack_x64_sysv.S")
10
                     .compile("libswap_stack.a"); 
Kunshan Wang's avatar
Kunshan Wang committed
11 12 13 14 15 16 17
}

#[cfg(target_os = "linux")]
#[cfg(target_arch = "x86_64")]
fn main() {
    gcc::compile_library("libruntime.a", &["src/runtime/runtime_x64_sysv.c"]);
    
18
    gcc::Config::new().flag("-O3").flag("-c")
Kunshan Wang's avatar
Kunshan Wang committed
19 20 21
                     .file("src/runtime/swap_stack_x64_sysv.S")
                     .compile("libswap_stack.a"); 
}