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

[misc] Remove debug info in release mode #1021

Merged
merged 1 commit into from
May 19, 2020

Conversation

yuanming-hu
Copy link
Member

Related issue = #1017

I'll just merge this after CI passes.

[Click here for the format server]

Copy link
Collaborator

@archibate archibate left a comment

Choose a reason for hiding this comment

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

Cool! Thank you's for solving the issue! Just a few questions to me:

  1. Will removing -g cause Taichi fail to stack traceback?
  2. What will TI_GDB_TRIGGER=1 behave in release mode?

@@ -31,7 +31,7 @@ FILE(WRITE ${CMAKE_CURRENT_LIST_DIR}/docs/version
)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. So, will a developer get CMAKE_BUILD_TYPE=Release by default? They have to set CMAKE_BUILD_TYPE=RelWithDebInfo manually?

Copy link
Member Author

Choose a reason for hiding this comment

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

  1. Please see [PyPI] Linux package much bigger than Windows and OS X #1017 (comment)
  2. You still get the backtrace but some detailed debug symbols might be missing. I never use those symbols anyway
  3. Yes.

@archibate archibate requested a review from k-ye May 19, 2020 14:17
@archibate archibate linked an issue May 19, 2020 that may be closed by this pull request
@yuanming-hu yuanming-hu merged commit 643cc46 into taichi-dev:master May 19, 2020
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.

[PyPI] Linux package much bigger than Windows and OS X
2 participants