Skip to content

Commit

Permalink
Revert use of thin archives in 0.60 branch.
Browse files Browse the repository at this point in the history
Some custom_target()s may want to receive "fat" archives, so making use
of thin static_library() archives conditional only on it not being
installed, and without the possibility of an override by the user, is
undesirable. In mesonbuild#9453 I propose adding a thin: kwarg defaulting to true,
but that's a new feature that can only land in 0.61.
  • Loading branch information
obilaniu committed Oct 28, 2021
1 parent bc102e6 commit 75245e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/backend/ninjabackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2789,7 +2789,7 @@ def get_target_type_link_args(self, target, linker):
if target.import_filename:
commands += linker.gen_import_library_args(self.get_import_filename(target))
elif isinstance(target, build.StaticLibrary):
commands += linker.get_std_link_args(not target.should_install())
commands += linker.get_std_link_args(False)
else:
raise RuntimeError('Unknown build target type.')
return commands
Expand Down

0 comments on commit 75245e5

Please sign in to comment.