Lines Matching +full:sparse +full:- +full:checkout
9 # http://www.apache.org/licenses/LICENSE-2.0
29 # LLVM_BRANCH must match the value of the same variable in third_party/update-llvm-10.sh
32 … must be set to the commit hash that we last updated to when running third_party/update-llvm-10.sh.
33 # Run 'git show -s origin/llvm10-clean' and look for 'llvm-10-update: <hash>' to retrieve it.
37 LLVM_STAGING_DIR = path.abspath(path.join(tempfile.gettempdir(), "llvm-10"))
52 # Per-platform arches
55 ('__x86_64__', 'x86_64-linux-android'),
56 ('__i386__', 'i686-linux-android'),
57 ('__arm__', 'armv7-linux-androideabi'),
58 ('__aarch64__', 'aarch64-linux-android'),
61 ('__x86_64__', 'x86_64-unknown-linux-gnu'),
62 ('__i386__', 'i686-pc-linux-gnu'),
63 ('__arm__', 'armv7-linux-gnueabihf'),
64 ('__aarch64__', 'aarch64-linux-gnu'),
65 ('__mips__', 'mipsel-linux-gnu'),
66 ('__mips64', 'mips64el-linux-gnuabi64'),
67 ('__powerpc64__', 'powerpc64le-unknown-linux-gnu'),
68 ('__riscv', 'riscv64-unknown-linux-gnu'),
71 ('__x86_64__', 'x86_64-apple-darwin'),
72 ('__aarch64__', 'arm64-apple-darwin'),
75 ('__x86_64__', 'x86_64-pc-win32'),
76 ('__i386__', 'i686-pc-win32'),
77 ('__arm__', 'armv7-pc-win32'),
78 ('__aarch64__', 'aarch64-pc-win32'),
79 ('__mips__', 'mipsel-pc-win32'),
80 ('__mips64', 'mips64el-pc-win32'),
83 ('__x86_64__', 'x86_64-unknown-fuchsia'),
84 ('__aarch64__', 'aarch64-unknown-fuchsia'),
113 '-DCMAKE_BUILD_TYPE=Release',
114 '-DLLVM_ENABLE_THREADS=ON',
115 '-DLLVM_ENABLE_TERMINFO=OFF',
116 '-DLLVM_ENABLE_LIBXML2=OFF',
117 '-DLLVM_ENABLE_LIBEDIT=OFF',
118 '-DLLVM_ENABLE_LIBPFM=OFF',
119 '-DLLVM_ENABLE_ZLIB=OFF',
120 '-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON'
154 parser.add_argument('-j', '--jobs', help='parallel compilation', type=int)
193 'git remote add origin https://github.com/llvm/llvm-project.git', 2)
195 run_command('echo /llvm > .git/info/sparse-checkout', 2)
198 run_command('echo /llvm > .git/info/sparse-checkout', 2)
200 run_command('git checkout {}'.format(LLVM_COMMIT), 2)
210 """On Windows we need to have CMake generate build files for the 64-bit
212 host = '-Thost=x64' if name == 'windows' else ''
214 cmake_options = LLVM_CMAKE_OPTIONS + ['-DLLVM_TARGETS_TO_BUILD=' +
218 cmake_options.append('-DCMAKE_OSX_DEPLOYMENT_TARGET={}'.format(MIN_MACOS_VERSION))
223 run_subprocess(['cmake', '--build', '.', '-j',
241 """Copy platform-independent generated files."""
242 log("Copying platform-independent generated files", 1)
252 log('{} -> {}'.format(src, dst), 2)
258 """Copy platform-dependent generated files and add platform-specific
261 # LLVM configuration patterns to be post-processed.
262 llvm_target_pattern = re.compile('^LLVM_[A-Z_]+\\(([A-Za-z0-9_]+)\\)$')
264 '^#define LLVM_NATIVE_([A-Z]+) (LLVMInitialize)?(.*)$')
265 llvm_triple_pattern = re.compile('^#define (LLVM_[A-Z_]+_TRIPLE) "(.*)"$')
266 llvm_define_pattern = re.compile('^#define ([A-Za-z0-9_]+) (.*)$')
268 # Build architecture-specific conditions.
273 # Get a set of platform-specific triples.
309 end = arch[-len(name):]
345 """Copy platform-specific generated files."""
346 log("Copying platform-specific generated files", 1)
350 log('{}, {} -> {}'.format(platform, src, dst), 2)