aboutsummaryrefslogtreecommitdiffstats
path: root/support/rust-task_info/build.rs
blob: 73d68fdd54bafef5810dea62576cef23f38006c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */

fn main() {
    let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();

    if target_os == "macos" {
        cc::Build::new()
            .file("src/task_info.c")
            .compile("libtask_info.a");
    }
}