diff --git a/python/mozbuild/mozbuild/generated_sources.py b/python/mozbuild/mozbuild/generated_sources.py index be3711039f541..53f548ce642d6 100644 --- a/python/mozbuild/mozbuild/generated_sources.py +++ b/python/mozbuild/mozbuild/generated_sources.py @@ -49,8 +49,7 @@ def get_generated_sources(): # Next, return any Rust source files that were generated into the Rust # object directory. rust_build_kind = 'debug' if buildconfig.substs.get('MOZ_DEBUG_RUST') else 'release' - base = mozpath.join('toolkit/library', - buildconfig.substs['RUST_TARGET'], + base = mozpath.join(buildconfig.substs['RUST_TARGET'], rust_build_kind, 'build') finder = FileFinder(mozpath.join(buildconfig.topobjdir, base))