Skip to content

Conversation

@dreiss
Copy link
Contributor

@dreiss dreiss commented Nov 21, 2019

Stack from ghstack:

Summary:

  • --whole-archive isn't needed because we link libtorch as a dynamic
    dependency, rather than static.
  • --gc-sections isn't necessary because most (all?) of the code in our
    JNI library is used (and we're not staticly linking libtorch).
    Removing this one is useful because it's not supported by lld.

Test Plan:
Built on Linux. Library size was unchanged.
Upcoming diff enables Mac JNI build.

Differential Revision: D18653500

Summary:
- --whole-archive isn't needed because we link libtorch as a dynamic
  dependency, rather than static.
- --gc-sections isn't necessary because most (all?) of the code in our
  JNI library is used (and we're not staticly linking libtorch).
  Removing this one is useful because it's not supported by lld.

Test Plan:
Built on Linux.  Library size was unchanged.
Upcoming diff enables Mac JNI build.
@facebook-github-bot facebook-github-bot deleted the gh/dreiss/21/head branch December 10, 2019 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants