Skip to content

Commit

Permalink
fix: windows subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Dec 18, 2024
1 parent b03e10a commit 68a270e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ if devmode
add_project_arguments(['--define=DEV_MODE'], language: 'vala')
endif

executable_link_args = []
if host_machine.system() == 'windows'
add_project_arguments(['--define=WINDOWS'], language: 'vala')
executable_link_args += ['-mwindows', '/SUBSYSTEM:WINDOWS']
elif host_machine.system() == 'darwin'
add_project_arguments(['--define=DARWIN'], language: 'vala')
endif
Expand Down Expand Up @@ -144,7 +142,7 @@ executable(
sources,
dependencies: final_deps,
install: true,
link_args: executable_link_args
win_subsystem: 'windows'
)

subdir('tests')
Expand Down

0 comments on commit 68a270e

Please sign in to comment.