diff --git a/source/dub/compilers/dmd.d b/source/dub/compilers/dmd.d index 6182ff3..61ec4a0 100644 --- a/source/dub/compilers/dmd.d +++ b/source/dub/compilers/dmd.d @@ -63,6 +63,7 @@ case "": break; case "x86": arch_flags = ["-m32"]; break; case "x86_64": arch_flags = ["-m64"]; break; + case "x86_mscoff": arch_flags = ["-m32mscoff"]; break; } settings.addDFlags(arch_flags); diff --git a/source/dub/compilers/utils.d b/source/dub/compilers/utils.d index 90cdbfb..7780203 100644 --- a/source/dub/compilers/utils.d +++ b/source/dub/compilers/utils.d @@ -174,7 +174,7 @@ {["-debug="], `Use "debugVersions" to specify version constants in a compiler independent way`}, {["-I"], `Use "importPaths" to specify import paths in a compiler independent way`}, {["-J"], `Use "stringImportPaths" to specify import paths in a compiler independent way`}, - {["-m32", "-m64"], `Use --arch=x86/--arch=x86_64 to specify the target architecture`} + {["-m32", "-m64", "-m32mscoff"], `Use --arch=x86/--arch=x86_64/--arch=x86_mscoff to specify the target architecture`} ]; struct SpecialOption {