Adapt determinePlatform to the new defaults for Win32
Starting with DMD 2.099, `-m32` defaults to MsCOFF instead of OMF and
`-m32omf` is required to use the OMF format + OPTLINK.

This commit changes the logic to select the appropriate logic based
on the current compiler version. Potentially using the wrong object file
format during platform probing is fine because the codegen is skipped
(dmd is invoked with `-c -o-`).
1 parent fba681e commit 74d9ba8930c6023717d1979cb9daca0388b13dc3
@MoonlightSentinel MoonlightSentinel authored on 4 Mar 2022
Showing 4 changed files
View
source/dub/compilers/compiler.d
View
source/dub/compilers/dmd.d
View
test/win32_default.d 0 → 100644
View
test/win32_default.script.d 0 → 100644