aboutsummaryrefslogtreecommitdiff
path: root/src/gpu
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2017-10-23 16:03:05 -0700
committerMarat Dukhan <marat@fb.com>2017-10-23 16:03:13 -0700
commit02527014e35f7a765972906b3faa0a0802ad8817 (patch)
tree94ba602815598e1af41b6834c9ccdc79ab45edcd /src/gpu
parent9f1c8d858c7794303f96a474f0b3220e2f1bc302 (diff)
downloadcpuinfo-02527014e35f7a765972906b3faa0a0802ad8817.tar.gz
Ensure Obj-C source is built with ARC
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/gles-ios.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/gles-ios.m b/src/gpu/gles-ios.m
index 5de639f..b9f04ef 100644
--- a/src/gpu/gles-ios.m
+++ b/src/gpu/gles-ios.m
@@ -6,6 +6,10 @@
#import <gpu/api.h>
+#if ! __has_feature(objc_arc)
+ #error "This file must be built with Automatic Reference Counting (-fobjc-arc option)"
+#endif
+
void cpuinfo_gpu_ios_query_gles2(char gpu_name[restrict static CPUINFO_GPU_NAME_MAX]) {
EAGLContext* existing_context = [EAGLContext currentContext];
EAGLContext* current_context = nil;