Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
cceadad5
Commit
cceadad5
authored
9 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Reactivate tcmalloc for release builds.
parent
ccaa7a74
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildconfig/CMake/MSVCSetup.cmake
+10
-3
10 additions, 3 deletions
buildconfig/CMake/MSVCSetup.cmake
with
10 additions
and
3 deletions
buildconfig/CMake/MSVCSetup.cmake
+
10
−
3
View file @
cceadad5
...
@@ -61,13 +61,20 @@ set ( PYTHONW_EXECUTABLE "${PYTHON_DIR}/pythonw.exe" CACHE FILEPATH
...
@@ -61,13 +61,20 @@ set ( PYTHONW_EXECUTABLE "${PYTHON_DIR}/pythonw.exe" CACHE FILEPATH
###########################################################################
###########################################################################
# If required, find tcmalloc
# If required, find tcmalloc
###########################################################################
###########################################################################
set
(
USE_TCMALLOC
OFF CACHE BOOL
"If true, link with tcmalloc"
)
option
(
USE_TCMALLOC
"If true, link with tcmalloc"
ON
)
# If not wanted, just carry on without it
# If not wanted, just carry on without it
if
(
USE_TCMALLOC
)
if
(
USE_TCMALLOC
)
set
(
TCMALLOC_LIBRARIES optimized
"
${
CMAKE_LIBRARY_PATH
}
/libtcmalloc_minimal.lib"
debug
"
${
CMAKE_LIBRARY_PATH
}
/libtcmalloc_minimal-debug.lib"
)
# Only link in release configurations. There seems to be problem linking in debug mode
set
(
TCMALLOC_LIBRARIES optimized
"
${
CMAKE_LIBRARY_PATH
}
/libtcmalloc_minimal.lib"
)
# Use an alternate variable name so that it is only set on Windows
# Use an alternate variable name so that it is only set on Windows
set
(
TCMALLOC_LIBRARIES_LINKTIME
${
TCMALLOC_LIBRARIES
}
)
set
(
TCMALLOC_LIBRARIES_LINKTIME
${
TCMALLOC_LIBRARIES
}
)
set
(
CMAKE_SHARED_LINKER_FLAGS /INCLUDE:
"__tcmalloc"
)
set
(
_configs RELEASE RELWITHDEBINFO MINSIZEREL
)
set
(
_targets EXE SHARED
)
foreach
(
_tgt
${
_targets
}
)
foreach
(
_cfg
${
_configs
}
)
set
(
CMAKE_
${
_tgt
}
_LINKER_FLAGS_
${
_cfg
}
"
${
CMAKE_
${
_tgt
}
_LINKER_FLAGS_
${
_cfg
}}
/INCLUDE:__tcmalloc"
)
endforeach
()
endforeach
()
else
(
USE_TCMALLOC
)
else
(
USE_TCMALLOC
)
message
(
STATUS
"TCMalloc will not be included."
)
message
(
STATUS
"TCMalloc will not be included."
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment