-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix package access modifier in XCBuild support
#7258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
8f6bfe8
Fix `package` access modifier in XCBuild support
MaxDesiatov 582cd2b
Fix formatting, remove excessive `print`, reduce the diff
MaxDesiatov 9b9d0ed
Enable `testPackageNameFlagXCBuild` only on macOS
MaxDesiatov 796c1b1
Fix CMake build
MaxDesiatov 82a22b3
Address PR feedback
MaxDesiatov 2f60251
Add missing `SwiftDriver` dependency to `XCBuildSupport`
MaxDesiatov 427b518
Update BuildParameters.swift
MaxDesiatov eea30f4
Merge branch 'main' into maxd/fix-xcbuild-package-name
MaxDesiatov 46d01e5
Replace `package` modifier with `@testable` at place of use
MaxDesiatov bb2f876
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov 6e49171
Replace `package` with `@_spi(SwiftPMInternal)`
MaxDesiatov 42c868a
Fix remaining use of `package var`
MaxDesiatov 6bbf6e2
Fix use of `package func`
MaxDesiatov 031ead4
Add required `@_spi(SwiftPMInternal)` on imports
MaxDesiatov 44d7267
Update `SourceKitLSPAPI/CMakeLists.txt`
MaxDesiatov 4d4a8f4
Update `XCBuildSupport/CMakeLists.txt`
MaxDesiatov e23f9c7
Update `swift-bootstrap/CMakeLists.txt`
MaxDesiatov 553f559
Update `SwiftSDKTool/CMakeLists.txt`
MaxDesiatov 95ff5da
Update `swift-experimental-sdk/CMakeLists.txt`
MaxDesiatov e83dc69
Update `swift-build/CMakeLists.txt`
MaxDesiatov 35d949b
Update `swift-package/CMakeLists.txt`
MaxDesiatov 3be01c3
Update `swift-run/CMakeLists.txt`
MaxDesiatov 1565886
Update `swift-test/CMakeLists.txt`
MaxDesiatov e293b7e
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov c57d3f5
Clean up `DriverSupport` imports
MaxDesiatov 398dd3e
More cleanups
MaxDesiatov 7749bab
Add `DriverSupport` missing in `swift-bootstrap` CMake
MaxDesiatov df2daf5
Add `SwiftDriver` as `PRIVATE` requirement to `target_link_libraries`
MaxDesiatov 888e657
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov 8124f79
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov f9b7f1a
Reduce diff to `main`
MaxDesiatov af4e9e6
Add `@_spi(SwiftPMInternal)` on `isPackageNameSupported`
MaxDesiatov 3d7fab2
Reduce diff to `main`
MaxDesiatov 2f7e094
Add missing `SwiftDriver` requirement to `swift-bootstrap/CMakeLists.…
MaxDesiatov 7ca0f81
Define `DISABLE_XCBUILD_SUPPORT` in `swift-bootstrap/CMakeLists.txt`
MaxDesiatov 79f68c3
Remove unused imports
MaxDesiatov b13d173
Merge branch 'main' into maxd/fix-xcbuild-package-name
MaxDesiatov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| //===----------------------------------------------------------------------===// | ||
| // | ||
| // This source file is part of the Swift open source project | ||
| // | ||
| // Copyright (c) 2014-2024 Apple Inc. and the Swift project authors | ||
| // Licensed under Apache License v2.0 with Runtime Library Exception | ||
| // | ||
| // See http://swift.org/LICENSE.txt for license information | ||
| // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
| // | ||
| //===----------------------------------------------------------------------===// | ||
|
|
||
| import struct PackageGraph.ResolvedPackage | ||
| import struct PackageGraph.ResolvedTarget | ||
|
|
||
| extension ResolvedPackage { | ||
| package func packageNameArgument(target: ResolvedTarget, isPackageNameSupported: Bool) -> [String] { | ||
| if self.manifest.usePackageNameFlag, target.packageAccess { | ||
| ["-package-name", self.identity.description.spm_mangledToC99ExtendedIdentifier()] | ||
| } else { | ||
| [] | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.