Skip to content
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

New helper macro + fixes for old gcc #948

Merged
merged 2 commits into from
May 26, 2017

Conversation

pavanky
Copy link
Contributor

@pavanky pavanky commented Mar 1, 2017

  • ADD_TORCH_LIBRARY makes it easier to link libTH from various other packages.
  • Static version additionally checks for environment variable.

endif()
ELSE()
IF (BUILD_STATIC OR "$ENV{TH_ONLY_STATIC}" STREQUAL "YES")
ADD_LIBRARY(${package} ${type} "")
Copy link
Member

Choose a reason for hiding this comment

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

isn't this missing a STATIC

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm it looks like I messed something up during rebasing. Let me double check this.

Copy link
Contributor Author

@pavanky pavanky Mar 1, 2017

Choose a reason for hiding this comment

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

Ok, it isn't missing STATIC, it is missing source files. It was a hacky way to "disable" dynamic builds, when only static versions were required, by creating a dummy .so file.

I am going to remove this logic and update the PR.

@pavanky
Copy link
Contributor Author

pavanky commented Mar 1, 2017

@soumith Removed that code segment. The current behavior is similar to the current version in master where both static and dynamic libs are built when static builds are requested. If not only dynamic libs are built.

@soumith
Copy link
Member

soumith commented Mar 23, 2017

if you rebase, i'll merge this.

@pavanky
Copy link
Contributor Author

pavanky commented Mar 23, 2017

@soumith sorry about not getting back to this, I'll clean this up tomorrow.

@nicholas-leonard nicholas-leonard merged commit 8272995 into torch:master May 26, 2017
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.

4 participants