Skip to content

Commit

Permalink
ninja: Generate Swift compile rule for both machines
Browse files Browse the repository at this point in the history
Not only the build machine.
  • Loading branch information
oleavr committed Apr 27, 2024
1 parent 56d3c90 commit 307e104
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mesonbuild/backend/ninjabackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2472,8 +2472,7 @@ def generate_compile_rule_for(self, langname, compiler):
self.generate_rust_compile_rules(compiler)
return
if langname == 'swift':
if self.environment.machines.matches_build_machine(compiler.for_machine):
self.generate_swift_compile_rules(compiler)
self.generate_swift_compile_rules(compiler)
return
if langname == 'cython':
self.generate_cython_compile_rules(compiler)
Expand Down

0 comments on commit 307e104

Please sign in to comment.