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

[symengine] Fix find TCMALLOC #33582

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ports/symengine/fix-find-tcmalloc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 255c53f..d46a313 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -483,7 +483,7 @@ set(WITH_TCMALLOC no
CACHE BOOL "Build with TCMalloc linked")

if (WITH_TCMALLOC)
- find_package(TCMALLOC REQUIRED)
+ set(TCMALLOC_TARGETS)
set(LIBS ${LIBS} ${TCMALLOC_TARGETS})

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
6 changes: 6 additions & 0 deletions ports/symengine/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 076aac35428589c5b3524a46bd939a3a3a7da44b1c866b5f71487678b27b6e48b4da034029f1630881d7713a9252e905411a04b8016c9ec56a608b6de23365ac
HEAD_REF master
PATCHES
fix-find-tcmalloc.patch
)

vcpkg_check_features(
Expand All @@ -20,6 +22,10 @@ if(integer-class-flint IN_LIST FEATURES)
set(INTEGER_CLASS flint)
endif()

if(tcmalloc IN_LIST FEATURES)
list(APPEND FEATURE_OPTIONS -DTCMALLOC_TARGETS="${CURRENT_INSTALLED_DIR}/lib/libtcmalloc_minimal.lib")
endif()

if(VCPKG_TARGET_IS_UWP)
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE")
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE")
Expand Down
1 change: 1 addition & 0 deletions ports/symengine/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "symengine",
"version": "0.11.1",
"port-version": 1,
"description": "SymEngine is a fast symbolic manipulation library",
"homepage": "https://github.com/symengine/symengine",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8222,7 +8222,7 @@
},
"symengine": {
"baseline": "0.11.1",
"port-version": 0
"port-version": 1
},
"systemc": {
"baseline": "2.3.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/s-/symengine.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "728a7ab201e5a172b4e88d9cb19253d1f78b342f",
"version": "0.11.1",
"port-version": 1
},
{
"git-tree": "2308025668dda013e8b55f395871ed7d73cd20d5",
"version": "0.11.1",
Expand Down