Skip to content

Commit

Permalink
Merge pull request #14 from TDT4102/windows-need-static-flag
Browse files Browse the repository at this point in the history
add static again
  • Loading branch information
joakibhu authored Jan 9, 2026
2 parents 909dbc9 + edfa8c8 commit f339ee3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion configuration/gui/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ compiler_flags = ['-Wconversion', '-fdiagnostics-color=always', '-Werror=return-

src = ['main.cpp']

exe = executable('program', src, dependencies : [animationwindow_dep, std_lib_facilities_dep], cpp_args : compiler_flags)
if host_machine.system() == 'windows'
exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ['-static'])
else
exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags)
endif
6 changes: 5 additions & 1 deletion configuration/nogui/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ compiler_flags = ['-Wconversion', '-fdiagnostics-color=always', '-Werror=return-

src = ['main.cpp']

exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags)
if host_machine.system() == 'windows'
exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ['-static'])
else
exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags)
endif

0 comments on commit f339ee3

Please sign in to comment.