aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/56 custom target/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/56 custom target/meson.build')
-rw-r--r--test cases/common/56 custom target/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/test cases/common/56 custom target/meson.build b/test cases/common/56 custom target/meson.build
index feaa762..fd59fbd 100644
--- a/test cases/common/56 custom target/meson.build
+++ b/test cases/common/56 custom target/meson.build
@@ -1,6 +1,9 @@
project('custom target', 'c')
-python = find_program('python3')
+python = find_program('python3', required : false)
+if not python.found()
+ python = find_program('python')
+endif
# Note that this will not add a dependency to the compiler executable.
# Code will not be rebuilt if it changes.