-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add gperftools package #4572
add gperftools package #4572
Conversation
|
Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue. |
if self.settings.os == "Windows" and self.settings.compiler == "Visual Studio": | ||
raise ConanInvalidConfiguration("gperftools is not supported by Visual Studio") | ||
if self.settings.os == "Windows" and self.options.shared: | ||
# libtool: error: can't build i686-pc-mingw32 shared library unless -no-undefined is specified | ||
raise ConanInvalidConfiguration("gperftools can't be built as shared on Windows") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you try with CMakeLists? It could avoid msys2 build requirement (autotools are slow as hell on windows) and allow to build with Visual Studio.
topics = ("conan", "gperftools", "tcmalloc", "cpu/heap profiler") | ||
url = "https://github.com/conan-io/conan-center-index" | ||
homepage = "https://github.com/gperftools/gperftools" | ||
license = ["BSD-3-Clause License"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license = ["BSD-3-Clause License"] | |
license = ["BSD-3-Clause"] |
if self.settings.os == "Windows": | ||
del self.options.fPIC | ||
|
||
def configure(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def configure(self): | |
def configure(self): | |
if self.options.shared: | |
del self.options.fPIC |
os.unlink(os.path.join(self.package_folder, "lib", "libprofiler.la")) | ||
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc.la")) | ||
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc_and_profiler.la")) | ||
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc_debug.la")) | ||
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc_minimal.la")) | ||
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc_minimal_debug.la")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
os.unlink(os.path.join(self.package_folder, "lib", "libprofiler.la")) | |
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc.la")) | |
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc_and_profiler.la")) | |
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc_debug.la")) | |
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc_minimal.la")) | |
os.unlink(os.path.join(self.package_folder, "lib", "libtcmalloc_minimal_debug.la")) | |
tools.remove_files_by_mask(os.path.join(self.package_folder, "lib"), "*.la") |
import os | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import os | |
import os | |
required_conan_version = ">=1.29.1" | |
Some configurations of 'gperftools/2.8.1' failed in build 2 (
|
Failure in build 3 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions. |
This package is really needed, since I'm granted for EAP, can I make this PR my own? |
@tuduongquyet, sure, you only need to write here you need to fork conan-center-index to you; add it locally |
please create a new PR (makiing a branch as described in coment above), unfortunately we cannot change an ownership of PRs. |
Specify library name and version: lib/1.0
conan-center hook activated.