Skip to content

Commit 3b1694c

Browse files
Switch Android build to clang.
It's now the recommended build from NDK 11+. GCC is deprecated.
1 parent ee4779f commit 3b1694c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

android/jni/Application.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ APP_STL := gnustl_static
22
APP_PLATFORM := android-9
33
APP_ABI := arm64-v8a armeabi-v7a x86 x86_64
44
APP_GNUSTL_CPP_FEATURES :=
5-
NDK_TOOLCHAIN_VERSION := 4.9
5+
NDK_TOOLCHAIN_VERSION := clang

android/jni/Locals.mk

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# These are definitions for LOCAL_ variables for PPSSPP.
22
# They are shared between ppsspp_jni (lib for Android app) and ppsspp_headless.
33

4-
LOCAL_CFLAGS := -DUSE_FFMPEG -DUSING_GLES2 -DMOBILE_DEVICE -O3 -fsigned-char -Wall -Wno-multichar -Wno-psabi -Wno-unused-variable -fno-strict-aliasing -D__STDC_CONSTANT_MACROS -Wno-format
4+
LOCAL_CFLAGS := -DUSE_FFMPEG -DUSING_GLES2 -DMOBILE_DEVICE -O3 -fsigned-char -Wall -Wno-multichar -Wno-unused-variable -fno-strict-aliasing -D__STDC_CONSTANT_MACROS -Wno-format
55
# yes, it's really CPPFLAGS for C++
6-
# literal-suffix is generated by Android default code and causes noise.
7-
LOCAL_CPPFLAGS := -fno-exceptions -std=gnu++11 -fno-rtti -Wno-reorder -Wno-literal-suffix -Wno-format
6+
# deprecated-register is generated by Android default code and causes noise.
7+
LOCAL_CPPFLAGS := -fno-exceptions -std=gnu++11 -fno-rtti -Wno-reorder -Wno-format -Wno-deprecated-register
88
LOCAL_C_INCLUDES := \
99
$(LOCAL_PATH)/../../Common \
1010
$(LOCAL_PATH)/../.. \

0 commit comments

Comments
 (0)