-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Support macros when cross-compiling #7118
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 32 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
ee34109
Keep separate build parameters for host and target
MaxDesiatov 12a1ea0
Fix build errors
MaxDesiatov d020e28
Fix tests, restore SourceKit-LSP compatibility
MaxDesiatov 1270b44
Address remaining deprecations of `buildParameters` use
MaxDesiatov 172055c
Remove unused deprecated properties and functions
MaxDesiatov 7592888
Deprecate old `BuildPlan` initializer with no `BuildParameters` disti…
MaxDesiatov 0fee29a
Clean up formattin
MaxDesiatov fc8e92c
Fix Linux build issues in tests
MaxDesiatov 38ffcae
Support macros when cross-compiling
MaxDesiatov 57e9c9d
Fix build issues after rebase
MaxDesiatov dc18982
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov a148910
Clean up the diff
MaxDesiatov e542e7a
Use `topologicalSort` with `Identifiable` on `ResolvedTarget`
MaxDesiatov 8e167f1
Reduce number of iterations in `testRecursiveDependencies`
MaxDesiatov b9126a3
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov 871e653
Merge branch 'maxd/identifiable-topological-sort' of github.com:apple…
MaxDesiatov cde00ec
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov 4d26807
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov ef8e36c
Update `buildTriple` in `ResolvedTarget` and `ResolvedProduct`
MaxDesiatov 779f7e8
Remove debug logging
MaxDesiatov 2e144e1
Refine `ResolvedTarget/description` for logging
MaxDesiatov 83aad66
Make sure host tools dependencies are in the build plan
MaxDesiatov 63eaf8d
Fix nodes naming collisions in the build plan
MaxDesiatov eabe05b
Fix remaining name collisions in llbuild manifests
MaxDesiatov f59aeb1
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov a8b35ef
Fix incorrect `-tool` suffix module paths, plugins build triple
MaxDesiatov 2cd8150
Fix package plugins built without `-tool` suffix
MaxDesiatov 73a6a99
Fix `PluginsBuildPlanTests` failure
MaxDesiatov 3ade20f
Assign correct triple to macro products, fix macros load path
MaxDesiatov d083be6
Fix stray debug printer
MaxDesiatov 379bf0f
Restore `BuildPlan(productsBuildParameters:...)` compat
MaxDesiatov 99b7bd6
Fix doc comment
MaxDesiatov b83db64
Address PR feedback
MaxDesiatov 76dd8c4
Update `CHANGELOG.md`
MaxDesiatov 788c7af
Fix tests for `destinationBuildParameters` property renaming
MaxDesiatov e858a4c
Fix `destinationBuildParameters` renaming
MaxDesiatov 9b055aa
Merge branch 'main' of github.com:apple/swift-package-manager into ma…
MaxDesiatov 889acfd
Fix build directory path in `BuildOperationTests`
MaxDesiatov cfc1b65
Update CHANGELOG.md
MaxDesiatov 10d1aea
Update CHANGELOG.md
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
23 changes: 23 additions & 0 deletions
23
Sources/Build/BuildDescription/ResolvedTarget+BuildDescription.swift
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,23 @@ | ||
| //===----------------------------------------------------------------------===// | ||
| // | ||
| // This source file is part of the Swift open source project | ||
| // | ||
| // Copyright (c) 2015-2023 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 Basics.AbsolutePath | ||
| import struct PackageGraph.ResolvedTarget | ||
|
|
||
| @_spi(SwiftPMInternal) | ||
| import SPMBuildCore | ||
|
|
||
| extension ResolvedTarget { | ||
| func tempsPath(_ buildParameters: BuildParameters) -> AbsolutePath { | ||
| buildParameters.buildPath.appending(component: self.c99name + "\(self.buildTriple.suffix).build") | ||
| } | ||
| } |
124 changes: 66 additions & 58 deletions
124
Sources/Build/BuildDescription/SwiftTargetBuildDescription.swift
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.