-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Add support to create xctoolchain with code sign #12
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
Support to create code signed xctoolchain and installer pkg from
build-script
.