Skip to content

Commit

Permalink
Pass /SUBSYSTEM:WINDOWS to the linker
Browse files Browse the repository at this point in the history
For x86 builds, DigitalMars's OPTLINK is used, which uses the CONSOLE
subsystem by default, even if WinMain is defined.
  • Loading branch information
lesderid committed Jan 9, 2021
1 parent 81ea36d commit f7b4e3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ libs "User32" "Gdi32"
stringImportPaths "."

targetPath "out"

lflags "/SUBSYSTEM:WINDOWS"

0 comments on commit f7b4e3c

Please sign in to comment.