We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50e8ee7 + 03def1b commit 6b355feCopy full SHA for 6b355fe
mmap-perf/Android.mk
@@ -18,10 +18,12 @@ LOCAL_PATH:= $(call my-dir)
18
19
include $(CLEAR_VARS)
20
LOCAL_MODULE := mmapPerf
21
-LOCAL_SRC_FILES := mmapPerf.cpp
+LOCAL_SRC_FILES_64 := mmapPerf.cpp
22
+LOCAL_SRC_FILES_32 := unsupported.cpp
23
LOCAL_CLANG := true
24
LOCAL_CFLAGS += -g -Wall -Werror -std=c++11 -Wno-missing-field-initializers -Wno-sign-compare -O3
25
LOCAL_FORCE_STATIC_EXECUTABLE := true
26
LOCAL_CXX_STL := libc++_static
27
LOCAL_STATIC_LIBRARIES := libc
28
+LOCAL_MODULE_TAGS := optional
29
include $(BUILD_EXECUTABLE)
mmap-perf/unsupported.cpp
@@ -0,0 +1,6 @@
1
+#include <stdio.h>
2
+
3
+int main() {
4
+ fprintf(stderr, "mmap-perf is unsupported for 32-bit architectures\n");
5
+ return -1;
6
+}
0 commit comments