-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add support to create xctoolchain with code sign #12
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
Conversation
@@ -595,3 +595,9 @@ installable-package=%(installable_package)s | |||
|
|||
# Path to the .tar.gz symbols package | |||
symbols-package=%(symbols_package)s | |||
|
|||
# Info.plist | |||
darwin-toolchain-bundle-identifier=%(toolchain_bundle_identifier)s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you prefix the %()
variables with darwin_
as well?
Mostly stylistic comments. Over to you. |
- Add darwin_ prefix to preset variables - Add license header to utils/toolchain-codesign and utils/toolchain-installer - Simplify the logic to remove Info.plist
Updated the code with above review comments. |
@@ -2114,6 +2122,36 @@ if [[ "${INSTALLABLE_PACKAGE}" ]] ; then | |||
echo "--- Copy swift-stdlib-tool ---" | |||
cp "${SWIFT_SOURCE_DIR}/utils/swift-stdlib-tool-substitute" "${INSTALL_DESTDIR}/${INSTALL_PREFIX}/bin/swift-stdlib-tool" | |||
fi | |||
|
|||
# Create plist for xctoolchain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Period at the end.
Please merge after fixing that one thing. |
Add support to create xctoolchain with code sign
…wift (#12) calling convention, where arguments are passed in as @guaranteed (+0) instead of @owned (+1). As such, the changes to the TFPartition pass are: 1. When sinking a special instruction foo(%x) (tf_send, tf_receive, tf_get_scalar_or_die) below tensor end point, where %x is a tensor handle, make sure we keep a strong_retain in its original inst position, and sink I along with a strong_release below tensor end point. Example code snippet: %x = ... foo(%x) ... <tensor end point> strong_release %x The transformed code after sinking foo(%x) is: %x = ... strong_retain %x ... <tensor end point> foo(%x) strong_release %x strong_release %x 2. When removing a copy marker inst (tf_send, tf_receive) from the host code, add a strong_retain to balance the refcount. Example code snippet: %x = ... %y = tf_send(%x) strong_release %y strong_release %x The transformed code after sinking foo(%x) is: %x = ... strong_retain %x strong_release %x strong_release %x 3. Also addressed Richard's code formatting suggestions in a previous PR.
…wift (#12) calling convention, where arguments are passed in as @guaranteed (+0) instead of @owned (+1). As such, the changes to the TFPartition pass are: 1. When sinking a special instruction foo(%x) (tf_send, tf_receive, tf_get_scalar_or_die) below tensor end point, where %x is a tensor handle, make sure we keep a strong_retain in its original inst position, and sink I along with a strong_release below tensor end point. Example code snippet: %x = ... foo(%x) ... <tensor end point> strong_release %x The transformed code after sinking foo(%x) is: %x = ... strong_retain %x ... <tensor end point> foo(%x) strong_release %x strong_release %x 2. When removing a copy marker inst (tf_send, tf_receive) from the host code, add a strong_retain to balance the refcount. Example code snippet: %x = ... %y = tf_send(%x) strong_release %y strong_release %x The transformed code after sinking foo(%x) is: %x = ... strong_retain %x strong_release %x strong_release %x 3. Also addressed Richard's code formatting suggestions in a previous PR.
…wift (#12) calling convention, where arguments are passed in as @guaranteed (+0) instead of @owned (+1). As such, the changes to the TFPartition pass are: 1. When sinking a special instruction foo(%x) (tf_send, tf_receive, tf_get_scalar_or_die) below tensor end point, where %x is a tensor handle, make sure we keep a strong_retain in its original inst position, and sink I along with a strong_release below tensor end point. Example code snippet: %x = ... foo(%x) ... <tensor end point> strong_release %x The transformed code after sinking foo(%x) is: %x = ... strong_retain %x ... <tensor end point> foo(%x) strong_release %x strong_release %x 2. When removing a copy marker inst (tf_send, tf_receive) from the host code, add a strong_retain to balance the refcount. Example code snippet: %x = ... %y = tf_send(%x) strong_release %y strong_release %x The transformed code after sinking foo(%x) is: %x = ... strong_retain %x strong_release %x strong_release %x 3. Also addressed Richard's code formatting suggestions in a previous PR.
Windows: correct typo of distributed for import libs
* Restrict relative seeking a bit further This change means that the `seek(toRelativeOffset:)` and `seek(toOffsetFromEnd:)` are restricted to movement _within_ the current range of the span. This is how these are used, and is a bit easier to explain because movement is therefore bound by both ends of the span. The `seek(toAbsoluteOffset:)` method still works with the original, un-shrunken bounds, so has a different set of semantics (and may benefit from a different name). * Eliminate ParserRange.slicing This API is the mirror image of the Collection subscript that is also provided, and is the less natural way to spell the operation. * Add range-based optional and throwing subscripts These should be consistent with the element-based subscripts. * Complete the Endianness API and add tests
Support to create code signed xctoolchain and installer pkg from
build-script
.