Skip to content

Commit

Permalink
[Android] Fix for cxxflags
Browse files Browse the repository at this point in the history
It fixes android conf for CXX flags.
It uses same flags as c initially.

Signed-off-by: Jiho Chu <[email protected]>
  • Loading branch information
jihochu authored and myungjoo committed Feb 27, 2024
1 parent 3d68b89 commit f0c51be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jni/Android.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)

LOCAL_ARM_NEON := true
LOCAL_CFLAGS += -pthread -fexceptions -fopenmp -static-openmp @MESON_CFLAGS@ -DML_API_COMMON=1
LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions -DML_API_COMMON=1
LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions -DML_API_COMMON=1 @MESON_CXXFLAGS@
LOCAL_MODULE_TAGS := optional

LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp
Expand All @@ -83,7 +83,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)

LOCAL_ARM_NEON := true
LOCAL_CFLAGS += -pthread -fexceptions -fopenmp -static-openmp @MESON_CFLAGS@ -DML_API_COMMON=1
LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions -DML_API_COMMON=1 -DVERSION_MAJOR=@VERSION_MAJOR@ -DVERSION_MINOR=@VERSION_MINOR@ -DVERSION_MICRO=@VERSION_MICRO@
LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions -DML_API_COMMON=1 -DVERSION_MAJOR=@VERSION_MAJOR@ -DVERSION_MINOR=@VERSION_MINOR@ -DVERSION_MICRO=@VERSION_MICRO@ @MESON_CXXFLAGS@
LOCAL_MODULE_TAGS := optional

LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp
Expand All @@ -101,7 +101,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)

LOCAL_ARM_NEON := true
LOCAL_CFLAGS += -pthread -fexceptions -fopenmp -static-openmp @MESON_CFLAGS@ -DML_API_COMMON=1
LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions -DML_API_COMMON=1
LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions -DML_API_COMMON=1 @MESON_CXXFLAGS@
LOCAL_MODULE_TAGS := optional

LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp
Expand Down
1 change: 1 addition & 0 deletions jni/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ message('compile flags are:' + ' '.join(flags))
flags = extra_defines + flags

and_conf.set('MESON_CFLAGS', ' '.join(flags))
and_conf.set('MESON_CXXFLAGS', ' '.join(flags))
and_conf.set('MESON_NNTRAINER_SRCS', ' '.join(nntrainer_sources))
and_conf.set('MESON_NNTRAINER_INCS', ' '.join(nntrainer_inc_abs))
and_conf.set('MESON_CCAPI_NNTRAINER_SRCS', ' '.join(ccapi_src))
Expand Down

0 comments on commit f0c51be

Please sign in to comment.