summaryrefslogtreecommitdiffhomepage
path: root/vars/clang_host.vars
blob: 56793f9927210e246949fa2b1c17cb7e17691e73 (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 are assumed.
#

pkg_clang_host_configure_pre() {
	build_fileop rm ${WORKDIR}/Makefile;
};

pkg_clang_host_configure() {
	build_fileop rm ../cfe-${PKG_VERSION}-host;
	build_fileop mkdir ../cfe-${PKG_VERSION}-host;
	build_fileop cd ../cfe-${PKG_VERSION}-host;
	log_msg info "Bootstrapping clang_host...";
	(${PREFIX}/bin/cmake ../cfe-${PKG_VERSION}.src	\
		-DCLANG_BUILD_EXAMPLES:BOOL=OFF		\
		-DCLANG_INCLUDE_DOCS:BOOL=OFF		\
		-DCLANG_INCLUDE_TESTS:BOOL=OFF		\
		-DCMAKE_BUILD_TYPE=Release		\
		-DCMAKE_INSTALL_PREFIX=""		\
		-DCMAKE_VERBOSE_MAKEFILE=NO		\
		-DLIBCLANG_BUILD_STATIC:BOOL=ON		\
		-DLLVM_PREFIX="${PKG_PREFIX}"		\
		-G "Unix Makefiles"			\
		-Wno-dev);
	log_msg info "Finished bootstrapping clang_host.";
};

# vim:filetype=sh