Skip to content

Commit

Permalink
meson.build: change operator combining bools from + to and
Browse files Browse the repository at this point in the history
upstream meson stopped allowing combining boolean with the plus
operator, and now requires using the logical and operator

reference:
mesonbuild/meson@43302d3

Fixes: #20632
  • Loading branch information
Dan Streetman authored and dbnicholson committed Mar 1, 2022
1 parent 386ebfc commit d191155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ conf.set('BUILD_MODE', 'BUILD_MODE_' + get_option('mode').to_upper(),

want_ossfuzz = get_option('oss-fuzz')
want_libfuzzer = get_option('llvm-fuzz')
if want_ossfuzz + want_libfuzzer > 1
if want_ossfuzz and want_libfuzzer
error('only one of oss-fuzz or llvm-fuzz can be specified')
endif

Expand Down

0 comments on commit d191155

Please sign in to comment.