Last active
June 16, 2019 00:13
-
-
Save yuxincs/55f4ea966e4e92ead8f0a35e054a0e9d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://releases.llvm.org/3.4.2/llvm-3.4.2.src.tar.gz | |
tar -xzf llvm-3.4.2.src.tar.gz | |
cd llvm-3.4.2.src | |
# comment out memory sanitizer checks | |
# see https://stackoverflow.com/questions/48188796/clang-4-0-fails-to-build-clang-3-42-on-ubuntu-17-04 | |
sed -i '' -e 's/__msan_unpoison/\/\/__msan_unpoison/' ./lib/Target/X86/X86JITInfo.cpp | |
sed -i '' -e 's/__msan_allocated_memory/\/\/__msan_allocated_memory/' lib/Support/Allocator.cpp | |
sed -i '' -e 's/__msan_unpoison/\/\/__msan_unpoison/' lib/Support/Compression.cpp | |
mkdir build && cd build && cmake .. | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment