diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-02 13:58:42 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-08-03 14:03:33 -0700 |
commit | 630a41eb815e2638b741cdbee42d9bb8509cd0a8 (patch) | |
tree | 1bd068a9b20f5b0167effc0cddd44f4fc44025ca /mesonbuild | |
parent | bc31c2307411b5fa7c1e0ccb058d1bdbdc2c7b45 (diff) | |
download | meson-630a41eb815e2638b741cdbee42d9bb8509cd0a8.zip meson-630a41eb815e2638b741cdbee42d9bb8509cd0a8.tar.gz meson-630a41eb815e2638b741cdbee42d9bb8509cd0a8.tar.bz2 |
ninjabackend: use get_subdir() instead of subdir attribute for cython
As this works correctly for CustomTarget, CustomTargetIndex, and
GeneratedList, but .subdir doesn't work for CustomTargetIndex.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 31d9813..906e896 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1608,7 +1608,7 @@ class NinjaBackend(backends.Backend): # TODO: introspection? cython_sources.append(output) else: - generated_sources[ssrc] = mesonlib.File.from_built_file(gen.subdir, ssrc) + generated_sources[ssrc] = mesonlib.File.from_built_file(gen.get_subdir(), ssrc) return static_sources, generated_sources, cython_sources |