Skip to content

Commit ecfcff1

Browse files
authored
Merge pull request #658 from vlovich/fix-android-build
Fix Android build
2 parents 1a2742e + c955583 commit ecfcff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama-cpp-sys-2/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ fn parse_target_os() -> Result<(TargetOs, String), String> {
3939
} else {
4040
Ok((TargetOs::Windows(WindowsVariant::Other), target))
4141
}
42-
} else if target.contains("linux") {
43-
Ok((TargetOs::Linux, target))
4442
} else if target.contains("apple") {
4543
if target.ends_with("-apple-darwin") {
4644
Ok((TargetOs::Apple(AppleVariant::MacOS), target))
@@ -49,6 +47,8 @@ fn parse_target_os() -> Result<(TargetOs, String), String> {
4947
}
5048
} else if target.contains("android") {
5149
Ok((TargetOs::Android, target))
50+
} else if target.contains("linux") {
51+
Ok((TargetOs::Linux, target))
5252
} else {
5353
Err(target)
5454
}

0 commit comments

Comments
 (0)