OSDN Git Service

Fix windows build for LLVM.
authorStephen Hines <srhines@google.com>
Tue, 30 Sep 2014 05:54:01 +0000 (22:54 -0700)
committerStephen Hines <srhines@google.com>
Tue, 30 Sep 2014 09:30:29 +0000 (02:30 -0700)
Don't include libcxx on windows.
Fix PSTR -> PCSTR typo in config header.

Bug: 14416410
Change-Id: I2e66ed56a5a585ab126b9ac181def057908289d0

include/llvm/Config/llvm-platform-config.h
llvm-host-build.mk

index cd005be..c9e82da 100644 (file)
 #define HAVE_LIBIMAGEHLP 1
 
 /* Type of 1st arg on ELM Callback */
-#define WIN32_ELMCB_PCSTR PSTR
+#define WIN32_ELMCB_PCSTR PCSTR
 
 
 #else /* Linux, Mac OS X, ... Unixish platform */
index 4e2898d..b40bcbe 100644 (file)
@@ -1,9 +1,8 @@
 # Windows can't use Clang to build yet
 ifneq ($(HOST_OS),windows)
 LOCAL_CLANG := true
-endif
-
 include external/libcxx/libcxx.mk
+endif
 
 LOCAL_CFLAGS +=        \
        -D_GNU_SOURCE   \
@@ -48,7 +47,6 @@ LOCAL_C_INCLUDES :=   \
        $(LLVM_ROOT_PATH)       \
        $(LLVM_ROOT_PATH)/include       \
        $(LLVM_ROOT_PATH)/host/include  \
-        external/libcxx/include \
        $(LOCAL_C_INCLUDES)
 
 LOCAL_IS_HOST_MODULE := true