| |
---|
| | bool print_platform, print_builds, print_configs; |
---|
| | bool install_system = false, install_local = false; |
---|
| | string install_version; |
---|
| | string[] registry_urls; |
---|
| | string[] debug_versions; |
---|
| | getopt(args, |
---|
| | "v|verbose", &verbose, |
---|
| | "vverbose", &vverbose, |
---|
| | "q|quiet", &quiet, |
---|
| |
---|
| | "compiler", &compiler_name, |
---|
| | "arch", &arch, |
---|
| | "rdmd", &rdmd, |
---|
| | "config", &build_config, |
---|
| | "debug", &debug_versions, |
---|
| | "print-builds", &print_builds, |
---|
| | "print-configs", &print_configs, |
---|
| | "print-platform", &print_platform, |
---|
| | "system", &install_system, |
---|
| |
---|
| | |
---|
| | BuildSettings build_settings; |
---|
| | auto compiler = getCompiler(compiler_name); |
---|
| | auto build_platform = compiler.determinePlatform(build_settings, compiler_name, arch); |
---|
| | build_settings.addDFlags(debug_versions.map!(v => "-debug="~v).array); |
---|
| | |
---|
| | if( print_platform ){ |
---|
| | logInfo("Build platform:"); |
---|
| | logInfo(" Compiler: %s", build_platform.compiler); |
---|
| |
---|
| | --print-configs Prints the list of available configurations |
---|
| | --print-platform Prints the identifiers for the current build platform |
---|
| | as used for the build fields in package.json |
---|
| | --rdmd Use rdmd instead of directly invoking the compiler |
---|
| | --debug=NAME Define the specified debug version identifier when |
---|
| | builing - can be used multiple times |
---|
| | |
---|
| | Install options: |
---|
| | --version Use the specified version/branch instead of the latest |
---|
| | --system Install system wide instead of user local |
---|
| |
---|
| | |