|
13 | 13 | td: code $<name>_PACKAGE_DIR
|
14 | 14 | td Path a specific package that is part of the package's dependency graph
|
15 | 15 |
|
| 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 | + |
16 | 34 | p Inside of custom commands directives a number of additional variables is available:
|
17 | 35 |
|
18 | 36 | table
|
@@ -45,10 +63,10 @@ table
|
45 | 63 | td Contents of the "stringImportPaths" field as defined by the package recipe
|
46 | 64 | tr
|
47 | 65 | td: code $DC
|
48 |
| - td Compiler binary name (e.g. "../dmd" or "ldc2") |
| 66 | + td Compiler binary name (e.g. "../dmd" or "ldc2") |
49 | 67 | tr
|
50 | 68 | 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") |
52 | 70 | tr
|
53 | 71 | td: code $D_FRONTEND_VER
|
54 | 72 | td The compiler frontend version represented as a single integer, for example "2072" for DMD 2.072.2
|
|
87 | 105 | td "TRUE" if the #[code --combined] flag was used, empty otherwise
|
88 | 106 | tr
|
89 | 107 | 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 |
91 | 109 | tr
|
92 | 110 | td: code $DUB_FORCE
|
93 | 111 | td "TRUE" if the #[code --force] flag was used, empty otherwise
|
|
0 commit comments