Skip to content

Commit

Permalink
meson: use project instead of global arguments
Browse files Browse the repository at this point in the history
It makes sense for libplacebo to be a subproject of some other project,
but for that to be possible you're not allowed to use the global
arguments here (meson will fail and complain). Just use the project
variant instead which plays nice.
  • Loading branch information
Dudemanguy committed May 18, 2021
1 parent a75c9d6 commit 6968b85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if git.found()
endif


# Global build options
# Project build options
build_opts = [
# Warnings
'-Wundef', '-Wshadow', '-Wparentheses', '-Wpointer-arith',
Expand Down Expand Up @@ -69,9 +69,9 @@ if cc.has_link_argument(vflag)
link_args += [vflag]
endif

add_global_arguments(build_opts + c_opts, language: 'c')
add_global_arguments(build_opts + cpp_opts, language: 'cpp')
add_global_link_arguments(link_args, language: 'c')
add_project_arguments(build_opts + c_opts, language: 'c')
add_project_arguments(build_opts + cpp_opts, language: 'cpp')
add_project_link_arguments(link_args, language: 'c')

subdir('src')

Expand Down

0 comments on commit 6968b85

Please sign in to comment.