Skip to content

Add support to create xctoolchain with code sign #12

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 9 commits into from
Nov 24, 2015
Merged

Add support to create xctoolchain with code sign #12

merged 9 commits into from
Nov 24, 2015

Conversation

shahmishal
Copy link
Member

Support to create code signed xctoolchain and installer pkg from build-script.

@@ -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
Copy link
Contributor

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?

@gribozavr gribozavr assigned shahmishal and unassigned gribozavr Nov 24, 2015
@gribozavr
Copy link
Contributor

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
@shahmishal
Copy link
Member Author

Updated the code with above review comments.

@shahmishal shahmishal assigned gribozavr and unassigned shahmishal Nov 24, 2015
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Period at the end.

@gribozavr
Copy link
Contributor

Please merge after fixing that one thing.

@gribozavr gribozavr assigned shahmishal and unassigned gribozavr Nov 24, 2015
shahmishal added a commit that referenced this pull request Nov 24, 2015
Add support to create xctoolchain with code sign
@shahmishal shahmishal merged commit d99b9d1 into swiftlang:master Nov 24, 2015
marcrasi pushed a commit that referenced this pull request Jun 14, 2018
…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.
marcrasi pushed a commit that referenced this pull request Jun 22, 2018
…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.
marcrasi pushed a commit that referenced this pull request Jun 28, 2018
…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.
lorentey pushed a commit that referenced this pull request Dec 11, 2019
DougGregor pushed a commit to DougGregor/swift that referenced this pull request Apr 28, 2024
Windows: correct typo of distributed for import libs
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants