llvm:fix
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Licensed under the GNU General Public License, version 3.
|
# Licensed under the GNU General Public License, version 3.
|
||||||
@@ -34,8 +33,8 @@ def setup():
|
|||||||
shelltools.export("CC", "gcc")
|
shelltools.export("CC", "gcc")
|
||||||
shelltools.export("CXX", "g++")
|
shelltools.export("CXX", "g++")
|
||||||
|
|
||||||
shelltools.system("patch -Np0 -d projects/compiler-rt < msan-prevent-initialization-failure-with-newer-glibc.patch")
|
shelltools.system("patch -Np0 -d projects/compiler-rt < msan-prevent-initialization-failure-with-newer-glibc.patch")
|
||||||
shelltools.system("patch -Rp1 -i AMDGPU-Fix-an-interaction-between-WQM-and-polygon-stippling.patch")
|
shelltools.system("patch -Rp1 -i AMDGPU-Fix-an-interaction-between-WQM-and-polygon-stippling.patch")
|
||||||
|
|
||||||
if get.buildTYPE() == "emul32":
|
if get.buildTYPE() == "emul32":
|
||||||
shelltools.export("CC", "gcc -m32")
|
shelltools.export("CC", "gcc -m32")
|
||||||
@@ -67,15 +66,13 @@ def setup():
|
|||||||
%s \
|
%s \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
|
||||||
-DLLVM_LINK_LLVM_DYLIB=ON \
|
|
||||||
-DLLVM_INSTALL_UTILS=ON \
|
|
||||||
-DLLVM_ENABLE_RTTI=ON \
|
|
||||||
-DLLVM_ENABLE_FFI=ON \
|
-DLLVM_ENABLE_FFI=ON \
|
||||||
|
-DLLVM_LINK_LLVM_DYLIB=ON \
|
||||||
|
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
||||||
-DLLDB_DISABLE_LIBEDIT=1 \
|
-DLLDB_DISABLE_LIBEDIT=1 \
|
||||||
-DLLVM_INCLUDEDIR=/usr/include \
|
-DLLVM_INCLUDEDIR=/usr/include \
|
||||||
-DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include \
|
-DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include \
|
||||||
-DLLVM_BINUTILS_INCDIR=/usr/include" % options, sourceDir=".." )
|
-DLLVM_TARGETS_TO_BUILD='host;AMDGPU'" % options, sourceDir=".." )
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
shelltools.makedirs("build")
|
shelltools.makedirs("build")
|
||||||
@@ -99,4 +96,3 @@ def install():
|
|||||||
shelltools.cd ("..")
|
shelltools.cd ("..")
|
||||||
|
|
||||||
pisitools.dodoc("CREDITS.TXT", "LICENSE.TXT", "README.txt")
|
pisitools.dodoc("CREDITS.TXT", "LICENSE.TXT", "README.txt")
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -137,4 +137,4 @@ index 809a7ba..41e4264 100644
|
|||||||
+}
|
+}
|
||||||
|
|
||||||
declare void @llvm.amdgcn.image.store.v4i32(<4 x float>, <4 x i32>, <8 x i32>, i32, i1, i1, i1, i1) #1
|
declare void @llvm.amdgcn.image.store.v4i32(<4 x float>, <4 x i32>, <8 x i32>, i32, i1, i1, i1, i1) #1
|
||||||
declare void @llvm.amdgcn.buffer.store.f32(float, <4 x i32>, i32, i32, i1, i1) #1
|
declare void @llvm.amdgcn.buffer.store.f32(float, <4 x i32>, i32, i32, i1, i1) #1
|
||||||
+1
-1
@@ -100,4 +100,4 @@ Index: lib/asan/asan_malloc_linux.cc
|
|||||||
+ new_ptr = asan_malloc(size, &stack);
|
+ new_ptr = asan_malloc(size, &stack);
|
||||||
internal_memcpy(new_ptr, ptr, copy_size);
|
internal_memcpy(new_ptr, ptr, copy_size);
|
||||||
return new_ptr;
|
return new_ptr;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user