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

Extend the USE_LIBBACKTRACE option #13816

Merged
merged 5 commits into from
Feb 2, 2023
Merged

Conversation

yelite
Copy link
Contributor

@yelite yelite commented Jan 20, 2023

This PR extends the value accepted by USE_LIBBACKTRACE cmake variable. It adds ability to search pre-compile libbacktrace from system path or user-provided path. The behavior of this variable will be:

  • OFF: Don't use libbacktrace
  • ON: Find libbacktrace from system paths. Fail the build generation if libbacktrace is not found.
  • COMPILE: Build and link to libbacktrace from 3rdparty/libbacktrace.
  • <PATH>: Looking for the libbacktrace header and static lib from a user-provided path. Fail the build generation if libbacktrace is not found.
  • AUTO:
    • Find libbacktrace from system paths.
    • If not found, fallback to COMPILE on Linux or MacOS, fallback to OFF on Windows or other platforms.

cc @junrushao

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jan 20, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to auto-tag found, no teams are specified in PR title See #10317 for details

Generated by tvm-bot

@junrushao
Copy link
Member

CC: @Hzfengsy

@junrushao junrushao merged commit 49849c8 into apache:main Feb 2, 2023
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