aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Archive
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-02-27 21:48:19 -0800
committerStephen Hines <srhines@google.com>2013-02-27 21:52:15 -0800
commit2cfa6f75b6f7333e70e3144319824045f30c9df2 (patch)
tree719df389fa166ffd1b9c2111697dd6eed61861c0 /lib/Archive
parentc35917ff3a7d9b47836b29da6a0cde3b8fbbb0fc (diff)
downloadexternal_llvm-2cfa6f75b6f7333e70e3144319824045f30c9df2.zip
external_llvm-2cfa6f75b6f7333e70e3144319824045f30c9df2.tar.gz
external_llvm-2cfa6f75b6f7333e70e3144319824045f30c9df2.tar.bz2
Build a static library for libLLVMArchive for the device too.
Change-Id: I246f9d249176d1fc3019f0943a3cd5646c8dd9ac
Diffstat (limited to 'lib/Archive')
-rw-r--r--lib/Archive/Android.mk13
-rw-r--r--lib/Archive/ArchiveReader.cpp1
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/Archive/Android.mk b/lib/Archive/Android.mk
index 49c0b11..e679f60 100644
--- a/lib/Archive/Android.mk
+++ b/lib/Archive/Android.mk
@@ -17,3 +17,16 @@ LOCAL_MODULE_TAGS := optional
include $(LLVM_HOST_BUILD_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
+
+# For the device
+# =====================================================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(archive_SRC_FILES)
+
+LOCAL_MODULE := libLLVMArchive
+
+LOCAL_MODULE_TAGS := optional
+
+include $(LLVM_DEVICE_BUILD_MK)
+include $(BUILD_STATIC_LIBRARY)
diff --git a/lib/Archive/ArchiveReader.cpp b/lib/Archive/ArchiveReader.cpp
index efe1180..26b05e0 100644
--- a/lib/Archive/ArchiveReader.cpp
+++ b/lib/Archive/ArchiveReader.cpp
@@ -17,6 +17,7 @@
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/MemoryBuffer.h"
+#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <memory>