summaryrefslogtreecommitdiffhomepage
path: root/vars/llvm_host.vars
blob: 829037438368eb10ebcb1a337bddd61acb534a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# set +o errexit -o noglob -o nounset is assumed.
#

pkg_llvm_host_configure() {
	if ! rtl_fileop rm "../llvm-${PKG_VERSION}-host"	\
	|| ! rtl_fileop mkdir "../llvm-${PKG_VERSION}-host"	\
	|| ! rtl_fileop cd "../llvm-${PKG_VERSION}-host"	\
	|| ! rtl_log_msg verbose "Bootstrapping llvm_host..."	\
	|| ! ("${PREFIX}/bin/cmake"				\
			"../llvm-${PKG_VERSION}.src"		\
			-DCMAKE_BUILD_TYPE=Release		\
			-DCMAKE_INSTALL_PREFIX=""		\
			-DCMAKE_VERBOSE_MAKEFILE=NO		\
			-DLLVM_BUILD_DOCS=NO			\
			-DLLVM_BUILD_EXAMPLES=NO		\
			-DLLVM_BUILD_TESTS=NO			\
			-DLLVM_ENABLE_SPHINX=NO			\
			-DLLVM_TARGETS_TO_BUILD=X86		\
			-DSPHINX_WARNINGS_AS_ERRORS=NO		\
			-G "Unix Makefiles"			\
			-Wno-dev)				\
	|| ! rtl_log_msg verbose "Finished bootstrapping llvm_host."; then
		return 1;
	fi;
};

# vim:filetype=sh textwidth=0