Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. extern crate cc;
  2. use std::path::Path;
  3.  
  4. fn main() {
  5. let host_target = "x86_64-apple-darwin";
  6. cc::Build::new()
  7. .cpp(true)
  8. .file("src/cpp/hello.cpp")
  9. .include("src/cpp")
  10. .out_dir(Path::new("."))
  11. .target(host_target)
  12. .host(host_target)
  13. .opt_level(0)
  14. .compile("libcrust.a");
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement