Skip to content

Commit

Permalink
fix tri-state option
Browse files Browse the repository at this point in the history
  • Loading branch information
superm1 committed Jan 19, 2023
1 parent 04b6830 commit edf5d6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libfwupdplugin/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ library_deps = [
platform_deps,
]

if get_option('rust').allowed()
if rustc.found()
fwupdpluginrs = static_library(
'fwupdpluginrs',
sources: [
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ add_project_link_arguments(
)

# rust is optional
rustc= dependency('rustc', required: get_option('rust'))
rustc = find_program('rustc', required: get_option('rust'))
if add_languages('rust', native: false, required: rustc.found())
add_project_arguments('-DHAVE_RUST', language: 'c')
endif
Expand Down

0 comments on commit edf5d6d

Please sign in to comment.