DeltaPorts
DeltaPorts copied to clipboard
[NEW Mk/Uses/dlang.mk] Initial commit of USES=dlang support script
Feature: d compiler Usage: USES=dlang Valid args: bootstrap use bootstrap compiler when no valid d-compiler could be found
Additional variables that can be provided: for any:
- DLANG_USES= additional features enabled in dlang module - dub - rdmd not implemented yet (added when need arises): - (reggae) - (cmake-d / cmake) - (COOK) - (BAZEL) - (BUTTON) - (MESON)
- DCOMPILERS List of d-compilers to search for through (in order)(default: ldc gdc dmd)
- USE_LDC=yes | USE_GDC=yes | USE_DMD=yes Overwrite auto selection
- DRT_MINVER Minimal required d-runtime version (inclusive) (default:20791)
- DRT_MAXVER Maximum allowed d-runtime version (inclusive) (default:20999)
- DLANG_DEBUG Print extra debug output for USES=dlang
for ldc:
- D_REQ_LLVM LLVM version to require (60 70 80)
for gdc:
- D_REQ_GCC GCC version to require (8 9 10)
Variables provided by dlang.mk (after bsd.ports.mk has been loaded) for any:
- CHOSEN_DCOMPILER_TYPE D compiler selected
- DCOMPILER Full path to D-compiler selected.
- DCOMPILER_DMD Full path to DMD interface compatible compiler selected.
- DRUNTIME_VERSION D runtime version of selected D-compiler.
- DFLAGS Addional DFLAGS variables to be passed to the D-compiler. for ldc:
- LLVM_CONFIG Full path to llvm-config being used
- LLVM_VER Major version of llvm being used for gdc:
- GCC_VER Major version of gcc being used
MAINTAINER: [email protected]
Signed-off-by: ddegroot [email protected]
What do we do with this one?