Skip to content

Commit

Permalink
Fix noconsole.exe
Browse files Browse the repository at this point in the history
The linker flag "-mwindows" has no effect on my current MinGW.

Instead, passing "-Wl,--subsystem,windows" works.

Fixes <#691>
  • Loading branch information
rom1v committed Nov 19, 2019
1 parent 7aed5d5 commit 18f2e33
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/meson.build
Expand Up @@ -123,18 +123,16 @@ configure_file(configuration: conf, output: 'config.h')
src_dir = include_directories('src')

if get_option('windows_noconsole')
c_args = [ '-mwindows' ]
link_args = [ '-mwindows' ]
link_args = [ '-Wl,--subsystem,windows' ]
else
c_args = []
link_args = []
endif

executable('scrcpy', src,
dependencies: dependencies,
include_directories: src_dir,
install: true,
c_args: c_args,
c_args: [],
link_args: link_args)

install_man('scrcpy.1')
Expand Down

0 comments on commit 18f2e33

Please sign in to comment.