Skip to content

Commit b0b6d63

Browse files
committed
fix monolithic source pruning
1 parent 886d609 commit b0b6d63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fpm_targets.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ subroutine targets_from_sources(targets,model,prune,library,error)
268268
! Prune unused source files, unless we're building shared libraries that need
269269
! all sources to be distributable
270270
should_prune = prune
271-
if (present(library)) should_prune = should_prune .and. (library%lib_type/="")
271+
if (present(library)) should_prune = should_prune .and. library%monolithic()
272+
272273
if (should_prune) call prune_build_targets(targets,root_package=model%package_name)
273274

274275
call resolve_target_linking(targets,model,library,error)

0 commit comments

Comments
 (0)