Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW Mk/Uses/dlang.mk] Initial commit of USES=dlang support script #918

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 20, 2019

  1. [NEW Mk/Uses/dlang.mk] Initial commit of USES=dlang support

    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]>
    dkgroot committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    d8a875c View commit details
    Browse the repository at this point in the history