You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SWBCore/SpecImplementations/Tools/LinkerTools.swift
+22-3Lines changed: 22 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1342,10 +1342,29 @@ public final class LdLinkerSpec : GenericLinkerSpec, SpecIdentifierType, @unchec
1342
1342
/// - parameter addError: A callback block which will be called when an error in processing the macro's value is found, with an error reason parameter.
// FIXME: Handle the _library options, and also the case of normal linkage where there is no option passed, just an absolute path
1347
-
// We're checking flags in this order, and there's an ambiguity between -l and -lazy-l because of the common prefix, so we need to make sure that -lazy-l goes first
// Because of the ambiguity between -lazy-l and -l sharing a prefix, we need to make sure that -lazy-l always comes first.
1366
+
"-l",
1367
+
]
1349
1368
}
1350
1369
1351
1370
// TODO: We could use something like the LibrarySpecifier struct to pass back something other than a literal string as the linker option, but it requires some more thought as the LibrarySpecifier as-is isn't really designed for this sort of use.
Issue.record("Target info record for '\(targetName)' does not have a valid 'Settings' entry")
3402
+
return
3403
+
}
3404
+
targets.append(TestStandardTarget(
3405
+
targetName,
3406
+
type:.application,
3407
+
buildConfigurations:[
3408
+
TestBuildConfiguration(
3409
+
"Debug",
3410
+
buildSettings: settings
3411
+
),
3412
+
]
3413
+
))
3414
+
}
3415
+
// Ensure that more than one target has the same "stem" ("Dynamic"), so that we don't get an ambiguous match including the framework from a -lDynamic argument. So we never actually match against the 'aFramework2' target, it's just here to test that.
// Ensure that more than one target has the same "stem" ("Dynamic"), so that we don't get an ambiguous match including the framework from a -lDynamic argument.
Issue.record("Could not find target in dependency closure named '\(dependencyName)' from target info record for '\(targetName)'")
3473
+
return
3474
+
}
3475
+
#expect(buildGraph.dependencies(of: target).contains(dependencyTarget),"Expected '\(target.target.name)' to depend on '\(dependencyTarget.target.name)'")
0 commit comments