Skip to content

Commit

Permalink
app/graph: fix build reason
Browse files Browse the repository at this point in the history
When a component is disabled, the reason meson variable must be set to
provide an explanation why.

Since epoll is a Linux thing, report that the graph application is only
supported on Linux.

Fixes: 5b21ffb ("app/graph: add CLI framework")
Cc: [email protected]

Signed-off-by: David Marchand <[email protected]>
Acked-by: Tyler Retzlaff <[email protected]>
Acked-by: Chengwen Feng <[email protected]>
  • Loading branch information
david-marchand committed Feb 1, 2024
1 parent 404143f commit 6cad574
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/graph/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
name = 'graph'
build = cc.has_header('sys/epoll.h')
if not build
reason = 'only supported on Linux'
subdir_done()
endif

Expand Down

0 comments on commit 6cad574

Please sign in to comment.