aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-03-06 16:18:32 +0100
committerGitHub Enterprise <[email protected]>2025-03-06 16:18:32 +0100
commit920120bbcec9f91df3336f62970b3e010a4fa6c2 (patch)
tree363460fbb90da8d1f8f0172483a7f5ffe22ea9f9 /xmake.lua
parent5.6.0 (diff)
downloadzen-920120bbcec9f91df3336f62970b3e010a4fa6c2.tar.xz
zen-920120bbcec9f91df3336f62970b3e010a4fa6c2.zip
reduced memory churn using fixed_xxx containers (#236)
* Added EASTL to help with eliminating memory allocations * Applied EASTL to eliminate memory allocations, primarily by using `fixed_vector` et al to use stack allocations / inline struct allocations Reduces memory events in traces by close to a factor of 10 in test scenario (starting editor for project F)
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index c49a71901..103ca6703 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -9,6 +9,7 @@ add_requires(
"vcpkg::curl",
"vcpkg::cxxopts",
"vcpkg::doctest",
+ "vcpkg::eastl",
"vcpkg::fmt",
"vcpkg::gsl-lite",
"vcpkg::http-parser",
@@ -24,6 +25,8 @@ add_requires(
"vcpkg::zlib"
)
+add_defines("EASTL_STD_ITERATOR_CATEGORY_ENABLED")
+
set_policy("build.ccache", false)
if is_plat("windows") then