Skip to content

Commit d0f0113

Browse files
committed
Made __ANDROID_API__ take the same value as APP_PLATFORM
1 parent 4a094d8 commit d0f0113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/archs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_env(self, with_flags_in_cc=True):
3535

3636
env['CFLAGS'] = ' '.join([
3737
'-DANDROID', '-mandroid', '-fomit-frame-pointer'
38-
' -D__ANDROID_API__={}'.format(self.ctx._android_api),
38+
' -D__ANDROID_API__={}'.format(self.ctx.ndk_api),
3939
])
4040
env['LDFLAGS'] = ' '
4141

0 commit comments

Comments
 (0)