We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fc4f79 commit 9bbbbe5Copy full SHA for 9bbbbe5
build.rs
@@ -10,7 +10,13 @@ fn main() {
10
}
11
12
fn build_android() {
13
- let expansion = cc::Build::new().file("src/android-api.c").expand();
+ let expansion = match cc::Build::new().file("src/android-api.c").try_expand() {
14
+ Ok(result) => result,
15
+ Err(e) => {
16
+ println!("failed to run C compiler: {}", e);
17
+ return;
18
+ }
19
+ };
20
let expansion = match std::str::from_utf8(&expansion) {
21
Ok(s) => s,
22
Err(_) => return,
0 commit comments