Skip to content

Commit e0bdf3a

Browse files
committed
Move a build setting from swiftPM to swift-build
There was some code in swiftPM that would set CLANG_COVERAGE_MAPPING_LINKER_ARGS = NO if the mach_o_type was "mh_object" due to some duplicate symbol problems, this change moves it down to the objfile product type spec where it belongs.
1 parent 6e70b89 commit e0bdf3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SWBUniversalPlatform/Specs/ProductTypes.xcspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@
164164
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
165165
KEEP_PRIVATE_EXTERNS = YES;
166166
DEAD_CODE_STRIPPING = NO;
167+
// Disable code coverage linker flags since we're producing .o files.
168+
// Otherwise, we will run into duplicated symbols when there are more than one targets that produce .o
169+
// as their product.
170+
CLANG_COVERAGE_MAPPING_LINKER_ARGS = NO;
167171
};
168172
PackageTypes = (
169173
com.apple.package-type.mach-o-objfile

0 commit comments

Comments
 (0)