aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-04-27 12:25:23 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-07 09:17:39 -0700
commitb9f33c2380d6d8a306ef99f35536f196a08d52e3 (patch)
treef8b15e91783187f2526edf2a2b2f97c044d40eb3 /mesonbuild/build.py
parentec4d8143df11871beeaf58aea6f031a088ab3cfe (diff)
downloadmeson-b9f33c2380d6d8a306ef99f35536f196a08d52e3.zip
meson-b9f33c2380d6d8a306ef99f35536f196a08d52e3.tar.gz
meson-b9f33c2380d6d8a306ef99f35536f196a08d52e3.tar.bz2
Add C compiler when using Cython
Since cython transpiles to C.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 942927c..bc86fe3 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -812,7 +812,7 @@ class BuildTarget(Target):
# If all our sources are Vala, our target also needs the C compiler but
# it won't get added above.
- if 'vala' in self.compilers and 'c' not in self.compilers:
+ if ('vala' in self.compilers or 'cython' in self.compilers) and 'c' not in self.compilers:
self.compilers['c'] = compilers['c']
def validate_sources(self):