Annotation of pkgsrc/lang/rust/options.mk, Revision 1.4
1.4 ! schmonz 1: # $NetBSD: options.mk,v 1.3 2019/08/14 16:00:23 nia Exp $
1.1 nia 2:
3: PKG_OPTIONS_VAR= PKG_OPTIONS.rust
1.4 ! schmonz 4: PKG_SUPPORTED_OPTIONS=
1.1 nia 5:
6: .include "../../mk/bsd.fast.prefs.mk"
7:
8: # The bundled LLVM current has issues building on SunOS.
9: .if ${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
1.2 nia 10: PKG_SUPPORTED_OPTIONS+= rust-llvm
1.3 nia 11: # There may be compatibility issues with base LLVM.
12: . if !empty(HAVE_LLVM)
13: PKG_SUGGESTED_OPTIONS+= rust-llvm
14: . endif
1.1 nia 15: .endif
16:
17: .include "../../mk/bsd.options.mk"
18:
19: #
20: # Use the internal copy of LLVM.
21: # This contains some extra optimizations.
22: #
23: .if !empty(PKG_OPTIONS:Mrust-llvm)
24: # LLVM uses -std=c++11
25: GCC_REQD+= 4.8
26: BUILD_DEPENDS+= cmake-[0-9]*:../../devel/cmake
27: .include "../../devel/cmake/buildlink3.mk"
28: .else
29: .include "../../lang/llvm/buildlink3.mk"
30: CONFIGURE_ARGS+= --enable-llvm-link-shared
31: CONFIGURE_ARGS+= --llvm-root=${BUILDLINK_PREFIX.llvm}
32: .endif
CVSweb <webmaster@jp.NetBSD.org>