Change target to target_os

This commit is contained in:
maik 2019-06-21 10:24:23 +02:00
parent c80d28ab9b
commit 0bbc0436e8

View file

@ -16,7 +16,7 @@ fn is_external_enabled() -> bool {
.is_some()
}
fn main() {
if !(cfg!(target = "macos") || cfg!(target = "ios")) {
if !(cfg!(target_os = "macos") || cfg!(target_os = "ios")) {
panic!("ash-molten can only be built on macOS or of iOS");
}
// The 'external' feature was not enabled. Molten will be built automaticaly.