[NEW Mk/Uses/dlang.mk] Initial commit of USES=dlang support script#918
Draft
dkgroot wants to merge 1 commit intoDragonFlyBSD:masterfrom
Draft
[NEW Mk/Uses/dlang.mk] Initial commit of USES=dlang support script#918dkgroot wants to merge 1 commit intoDragonFlyBSD:masterfrom
dkgroot wants to merge 1 commit intoDragonFlyBSD:masterfrom
Conversation
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: ddegroot@talon.nl
Signed-off-by: ddegroot <ddegroot@talon.nl>
This was referenced Nov 21, 2019
tuxillo
reviewed
Nov 22, 2019
| +OPTIONS_DEFAULT+= FORCE_BOOTSTRAP | ||
| +_INCLUDE_USES_DLANG_MK= recheck | ||
| +. else | ||
| +BUILD_DEPENDS+= ${LOCALBASE}/bin/ldc2:lang/ldc${LLVM_FLAVOR:D@${LLVM_FLAVOR}} |
Member
There was a problem hiding this comment.
Please remove the flavors as we agreed
Contributor
Author
There was a problem hiding this comment.
Yes i will have to redesign quite a bit of it.
Contributor
Author
There was a problem hiding this comment.
Would the other dports be excepted if these changes were made, if so i can try to make some time and finish this up. If not and freebsd ports would have to be excepted first, then it might be better to drop this and move on.
tuxillo
reviewed
Nov 22, 2019
| + @${ECHO_MSG} "CPP=@${CPP}" | ||
| +.endif" | ||
| + @${ECHO_MSG} "OPTIONS=${PORT_OPTIONS:M*}" | ||
| + @${ECHO_MSG} "FLAVOR=${FLAVOR}" |
Member
|
What do we do with this one? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
additional features enabled in dlang module
- dub
- rdmd
not implemented yet (added when need arises):
- (reggae)
- (cmake-d / cmake)
- (COOK)
- (BAZEL)
- (BUTTON)
- (MESON)
List of d-compilers to search for through (in order)(default: ldc gdc dmd)
Overwrite auto selection
Minimal required d-runtime version (inclusive) (default:20791)
Maximum allowed d-runtime version (inclusive) (default:20999)
Print extra debug output for USES=dlang
for ldc:
for gdc:
Variables provided by dlang.mk (after bsd.ports.mk has been loaded)
for any:
D compiler selected
Full path to D-compiler selected.
Full path to DMD interface compatible compiler selected.
D runtime version of selected D-compiler.
Addional DFLAGS variables to be passed to the D-compiler.
for ldc:
Full path to llvm-config being used
Major version of llvm being used
for gdc:
Major version of gcc being used
MAINTAINER: ddegroot@talon.nl
Signed-off-by: ddegroot ddegroot@talon.nl