Skip to content

Commit f4f35a3

Browse files
committed
Apply #366 from dlang/dub-registry
1 parent 2f64eb1 commit f4f35a3

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

views/inc.package_format.envvars.dt

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@ table
1313
td: code $<name>_PACKAGE_DIR
1414
td Path a specific package that is part of the package's dependency graph
1515

16+
p Inside of build setting values, the following variables are also supported:
17+
table
18+
tr
19+
th Variable
20+
th Content
21+
tr
22+
td: code $ARCH
23+
td CPU architecture: <code>"x86", "x86_64"</code>
24+
tr
25+
td: code $PLATFORM
26+
td Running platform: <code>"linux", "windows", ...</code>
27+
tr
28+
td: code $PLATFORM_POSIX
29+
td Running platform: <code>"posix", "windows", ...</code>
30+
tr
31+
td: code $BUILD_TYPE
32+
td Type of build: <code>"debug", "release", ...</code>
33+
1634
p Inside of custom commands directives a number of additional variables is available:
1735

1836
table
@@ -45,10 +63,10 @@ table
4563
td Contents of the "stringImportPaths" field as defined by the package recipe
4664
tr
4765
td: code $DC
48-
td Compiler binary name (e.g. "../dmd" or "ldc2")
66+
td Compiler binary name (e.g. "../dmd" or "ldc2")
4967
tr
5068
td: code $DC_BASE
51-
td Canonical name of the compiler (e.g. "dmd" or "ldc")
69+
td Canonical name of the compiler (e.g. "dmd" or "ldc")
5270
tr
5371
td: code $D_FRONTEND_VER
5472
td The compiler frontend version represented as a single integer, for example "2072" for DMD 2.072.2
@@ -87,7 +105,7 @@ table
87105
td "TRUE" if the #[code --combined] flag was used, empty otherwise
88106
tr
89107
td: code $DUB_RUN
90-
td "TRUE" if the "run" command was invoked, empty otherwise
108+
td "TRUE" if the "run" command was invoked, empty otherwise
91109
tr
92110
td: code $DUB_FORCE
93111
td "TRUE" if the #[code --force] flag was used, empty otherwise

0 commit comments

Comments
 (0)