Initial commit.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
Index: lib/Support/MemoryBuffer.cpp
|
||||
===================================================================
|
||||
--- lib/Support/MemoryBuffer.cpp (revision 226551)
|
||||
+++ lib/Support/MemoryBuffer.cpp (working copy)
|
||||
@@ -267,6 +267,9 @@
|
||||
bool RequiresNullTerminator,
|
||||
int PageSize,
|
||||
bool IsVolatileSize) {
|
||||
+#if 1
|
||||
+ return false;
|
||||
+#else
|
||||
// mmap may leave the buffer without null terminator if the file size changed
|
||||
// by the time the last page is mapped in, so avoid it if the file size is
|
||||
// likely to change.
|
||||
@@ -306,6 +309,7 @@
|
||||
return false;
|
||||
|
||||
return true;
|
||||
+#endif
|
||||
}
|
||||
|
||||
static ErrorOr<std::unique_ptr<MemoryBuffer>>
|
@@ -0,0 +1,29 @@
|
||||
Index: tools/libclang/CMakeLists.txt
|
||||
===================================================================
|
||||
--- tools/libclang/CMakeLists.txt (revision 226551)
|
||||
+++ tools/libclang/CMakeLists.txt (working copy)
|
||||
@@ -72,9 +72,9 @@
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
- set(output_name "libclang")
|
||||
+ set(output_name "libclang-x86_64")
|
||||
else()
|
||||
- set(output_name "clang")
|
||||
+ set(output_name "clang-x86_64")
|
||||
endif()
|
||||
|
||||
add_clang_library(libclang ${ENABLE_SHARED} ${ENABLE_STATIC}
|
||||
Index: tools/libclang/Makefile
|
||||
===================================================================
|
||||
--- tools/libclang/Makefile (revision 226551)
|
||||
+++ tools/libclang/Makefile (working copy)
|
||||
@@ -8,7 +8,7 @@
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLANG_LEVEL := ../..
|
||||
-LIBRARYNAME = clang
|
||||
+LIBRARYNAME = clang-x86_64
|
||||
|
||||
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/libclang.exports
|
||||
|
Reference in New Issue
Block a user