diff options
author | Jan Ekström <jeebjp@gmail.com> | 2019-09-27 18:08:42 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-09-27 18:55:53 +0300 |
commit | 95ca78b63e3a25b3ed3135fd5055ca77664f8faf (patch) | |
tree | 29507a9d9b8e5a887ca06be5bf430df72f057871 | |
parent | 643417dd175ebe3a1b90213f97acddaea7eaea80 (diff) | |
download | mpv-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-- | wscript | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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', |