| @@ -1,31 +1,32 @@ | | | @@ -1,31 +1,32 @@ |
1 | # $NetBSD: options.mk,v 1.8 2021/01/01 20:44:48 he Exp $ | | 1 | # $NetBSD: options.mk,v 1.9 2021/01/04 10:12:42 jperkin Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.rust | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.rust |
4 | PKG_SUPPORTED_OPTIONS= # empty | | 4 | PKG_SUPPORTED_OPTIONS+= rust-cargo-static |
5 | | | 5 | |
6 | .include "../../mk/bsd.fast.prefs.mk" | | 6 | .include "../../mk/bsd.fast.prefs.mk" |
7 | | | 7 | |
8 | # The bundled LLVM current has issues building on SunOS. | | 8 | # The bundled LLVM current has issues building on SunOS. |
9 | .if ${OPSYS} != "SunOS" && ${OPSYS} != "Darwin" | | 9 | .if ${OPSYS} != "SunOS" && ${OPSYS} != "Darwin" |
10 | PKG_SUPPORTED_OPTIONS+= rust-llvm | | 10 | PKG_SUPPORTED_OPTIONS+= rust-llvm |
11 | # There may be compatibility issues with base LLVM. | | 11 | # There may be compatibility issues with base LLVM. |
12 | . if !empty(HAVE_LLVM) | | 12 | . if !empty(HAVE_LLVM) |
13 | PKG_SUGGESTED_OPTIONS+= rust-llvm | | 13 | PKG_SUGGESTED_OPTIONS+= rust-llvm |
14 | . endif | | 14 | . endif |
15 | .endif | | 15 | .endif |
16 | | | 16 | |
17 | PKG_SUPPORTED_OPTIONS+= rust-cargo-static | | 17 | .if ${OPSYS} == "NetBSD" |
18 | PKG_SUGGESTED_OPTIONS+= rust-cargo-static | | 18 | PKG_SUGGESTED_OPTIONS+= rust-cargo-static |
| | | 19 | .endif |
19 | | | 20 | |
20 | .include "../../mk/bsd.options.mk" | | 21 | .include "../../mk/bsd.options.mk" |
21 | | | 22 | |
22 | # | | 23 | # |
23 | # Use the internal copy of LLVM. | | 24 | # Use the internal copy of LLVM. |
24 | # This contains some extra optimizations. | | 25 | # This contains some extra optimizations. |
25 | # | | 26 | # |
26 | .if !empty(PKG_OPTIONS:Mrust-llvm) | | 27 | .if !empty(PKG_OPTIONS:Mrust-llvm) |
27 | BUILD_DEPENDS+= cmake-[0-9]*:../../devel/cmake | | 28 | BUILD_DEPENDS+= cmake-[0-9]*:../../devel/cmake |
28 | .include "../../devel/cmake/buildlink3.mk" | | 29 | .include "../../devel/cmake/buildlink3.mk" |
29 | .else | | 30 | .else |
30 | .include "../../lang/llvm/buildlink3.mk" | | 31 | .include "../../lang/llvm/buildlink3.mk" |
31 | CONFIGURE_ARGS+= --enable-llvm-link-shared | | 32 | CONFIGURE_ARGS+= --enable-llvm-link-shared |