Skip to content

Commit 6b355fe

Browse files
Mark SalyzynGerrit Code Review
authored andcommitted
Merge "Build Breakage in branch: git_master @ 2265859"
2 parents 50e8ee7 + 03def1b commit 6b355fe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

mmap-perf/Android.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ LOCAL_PATH:= $(call my-dir)
1818

1919
include $(CLEAR_VARS)
2020
LOCAL_MODULE := mmapPerf
21-
LOCAL_SRC_FILES := mmapPerf.cpp
21+
LOCAL_SRC_FILES_64 := mmapPerf.cpp
22+
LOCAL_SRC_FILES_32 := unsupported.cpp
2223
LOCAL_CLANG := true
2324
LOCAL_CFLAGS += -g -Wall -Werror -std=c++11 -Wno-missing-field-initializers -Wno-sign-compare -O3
2425
LOCAL_FORCE_STATIC_EXECUTABLE := true
2526
LOCAL_CXX_STL := libc++_static
2627
LOCAL_STATIC_LIBRARIES := libc
28+
LOCAL_MODULE_TAGS := optional
2729
include $(BUILD_EXECUTABLE)

mmap-perf/unsupported.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)