summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2019-09-27 18:08:42 +0300
committerJan Ekström <jeebjp@gmail.com>2019-09-27 18:55:53 +0300
commit95ca78b63e3a25b3ed3135fd5055ca77664f8faf (patch)
tree29507a9d9b8e5a887ca06be5bf430df72f057871
parent643417dd175ebe3a1b90213f97acddaea7eaea80 (diff)
downloadmpv-95ca78b63e3a25b3ed3135fd5055ca77664f8faf.tar.bz2
mpv-95ca78b63e3a25b3ed3135fd5055ca77664f8faf.tar.xz
wscript: check tvOS define's value to be nonzero
TARGET_OS_TV seems to always be defined, but set according to the build configuration. This fixes all Apple configurations being mis-identified as tvOS.
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index 752b400dc3..312da2ef30 100644
--- a/wscript
+++ b/wscript
@@ -158,7 +158,10 @@ main_dependencies = [
}, {
'name': '--tvos',
'desc': 'tvOS environment',
- 'func': check_statement('TargetConditionals.h', 'int x = TARGET_OS_TV;'),
+ 'func': check_statement(
+ ['TargetConditionals.h', 'assert.h'],
+ 'static_assert(TARGET_OS_TV, "TARGET_OS_TV defined to zero!")'
+ ),
}, {
'name': '--egl-android',
'desc': 'Android EGL support',