Skip to content

Commit 3357a94

Browse files
authored
Merge pull request #868 from artemcm/StopNoObjcCategoryMerge
Stop passing `-no_objc_category_merging` to the linker on Darwin.
2 parents dad8040 + d83cc7c commit 3357a94

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Sources/SwiftDriver/Jobs/DarwinToolchain+LinkerSupport.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,6 @@ extension DarwinToolchain {
418418
sdkPath: targetInfo.sdkPath?.path
419419
)
420420

421-
commandLine.appendFlag("-no_objc_category_merging")
422-
423421
// These custom arguments should be right before the object file at the
424422
// end.
425423
try commandLine.appendAllExcept(

Tests/SwiftDriverTests/JobExecutorTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ final class JobExecutorTests: XCTestCase {
183183
"-lobjc", "-lSystem", "-arch", .flag(hostTriple.archName),
184184
"-L", .path(.absolute(try toolchain.resourcesDirectory.get())),
185185
"-L", .path(.absolute(try toolchain.sdkStdlib(sdk: toolchain.sdk.get()))),
186-
"-rpath", "/usr/lib/swift", "-macosx_version_min", "10.14.0", "-no_objc_category_merging", "-o",
186+
"-rpath", "/usr/lib/swift", "-macosx_version_min", "10.14.0", "-o",
187187
.path(.relative(RelativePath("main"))),
188188
],
189189
inputs: [
@@ -254,7 +254,7 @@ final class JobExecutorTests: XCTestCase {
254254
"-lobjc", "-lSystem", "-arch", .flag(hostTriple.archName),
255255
"-L", .path(.absolute(try toolchain.resourcesDirectory.get())),
256256
"-L", .path(.absolute(try toolchain.sdkStdlib(sdk: toolchain.sdk.get()))),
257-
"-rpath", "/usr/lib/swift", "-macosx_version_min", "10.14.0", "-no_objc_category_merging",
257+
"-rpath", "/usr/lib/swift", "-macosx_version_min", "10.14.0",
258258
"-o", .path(.absolute(exec)),
259259
],
260260
inputs: [

0 commit comments

Comments
 (0)