summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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',