Improve cross-compilation support (replace `version` checks by BuildPlatform runtime checks)
Also fixes #1249. For LDC as implicit cross compiler, the file extensions for libraries and object files etc. don't depend on the compiler, but solely on the target. Targets selected with `--arch` are correctly probed by dub, so that the parsed `BuildPlatform` represents the target platform. |
---|
|
source/dub/compilers/compiler.d |
---|
source/dub/compilers/dmd.d |
---|
source/dub/compilers/gdc.d |
---|
source/dub/compilers/ldc.d |
---|
source/dub/compilers/utils.d |
---|
source/dub/dub.d |
---|
source/dub/generators/build.d |
---|
source/dub/generators/generator.d |
---|
source/dub/generators/visuald.d |
---|
source/dub/project.d |
---|