Skip to content

Commit

Permalink
meson: update to 1.4.0
Browse files Browse the repository at this point in the history
It now allows to use `depends:` and `compile_args:` in
compiler.preprocess().

Unfortunately this is not enough to resurrect the meson support,
as the handling of static libs via pkg-config is still missing.
  • Loading branch information
stsp committed Apr 18, 2024
1 parent 9d23821 commit c368cb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
project('comcom64', 'c', version: '0.1')
project('comcom64', 'c', version: '0.1', meson_version: '>= 1.4.0')
subdir('src')
3 changes: 1 addition & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ cpp = meson.get_compiler('c')
sfiles = cpp.preprocess(['plt.S'],
output: '@[email protected]',
depends: plt_inc,
dependencies: declare_dependency(
compile_args: ['-D__ASSEMBLER__']))
compile_args: ['-D__ASSEMBLER__'])

env = environment()
env.set('CPP', 'cpp')
Expand Down

0 comments on commit c368cb3

Please sign in to comment.