build: simplify -Dnix-eval-jobs handling
Meson conveniently does lets you pass feature objects to `required :` arguments[1], which is handy [1]: https://mesonbuild.com/Build-options.html#features Change-Id: I54194b235a9b3dc207f3f78e0a8c50f957e1fd1f
This commit is contained in:
+1
-7
@@ -665,10 +665,4 @@ endif
|
||||
|
||||
subdir('meson/clang-tidy')
|
||||
|
||||
if enable_nix_eval_jobs.enabled()
|
||||
subproject(
|
||||
'nix-eval-jobs',
|
||||
# Well, it was enabled! Surely it's wanted.
|
||||
required : true,
|
||||
)
|
||||
endif
|
||||
subproject('nix-eval-jobs', required : enable_nix_eval_jobs)
|
||||
|
||||
Reference in New Issue
Block a user