Skip to content

Commit

Permalink
Merge pull request #15 from TDT4102/fix-duplicate-target-exe
Browse files Browse the repository at this point in the history
single target exe
  • Loading branch information
joakibhu authored Jan 9, 2026
2 parents f339ee3 + 4e9109e commit aba812e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions configuration/gui/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ compiler_flags = ['-Wconversion', '-fdiagnostics-color=always', '-Werror=return-
src = ['main.cpp']

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

exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ld_flags)
6 changes: 4 additions & 2 deletions configuration/nogui/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ compiler_flags = ['-Wconversion', '-fdiagnostics-color=always', '-Werror=return-
src = ['main.cpp']

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

exe = executable('program', src, dependencies : [std_lib_facilities_dep], cpp_args : compiler_flags, link_args: ld_flags)

0 comments on commit aba812e

Please sign in to comment.