Skip to content

Commit 47b5f48

Browse files
committed
renamed vcxproj
1 parent b48ffaf commit 47b5f48

13 files changed

+67
-234
lines changed

CMakeLists.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ option(MI_SEE_ASM "Generate assembly files" OFF)
1919
option(MI_OSX_INTERPOSE "Use interpose to override standard malloc on macOS" ON)
2020
option(MI_OSX_ZONE "Use malloc zone to override standard malloc on macOS" ON)
2121
option(MI_WIN_REDIRECT "Use redirection module ('mimalloc-redirect') on Windows if compiling mimalloc as a DLL" ON)
22+
option(MI_WIN_USE_FIXED_TLS "Use a fixed TLS slot on Windows to avoid extra tests in the malloc fast path" OFF)
2223
option(MI_LOCAL_DYNAMIC_TLS "Use local-dynamic-tls, a slightly slower but dlopen-compatible thread local storage mechanism (Unix)" OFF)
2324
option(MI_LIBC_MUSL "Set this when linking with musl libc" OFF)
2425
option(MI_BUILD_SHARED "Build shared library" ON)
@@ -35,7 +36,7 @@ option(MI_NO_THP "Disable transparent huge pages support on Linux/And
3536
option(MI_EXTRA_CPPDEFS "Extra pre-processor definitions (use as `-DMI_EXTRA_CPPDEFS=\"opt1=val1;opt2=val2\"`)" "")
3637

3738
# deprecated options
38-
option(MI_WIN_USE_FLS "Use Fiber local storage on Windows to detect thread termination" OFF)
39+
option(MI_WIN_USE_FLS "Use Fiber local storage on Windows to detect thread termination (deprecated)" OFF)
3940
option(MI_CHECK_FULL "Use full internal invariant checking in DEBUG mode (deprecated, use MI_DEBUG_FULL instead)" OFF)
4041
option(MI_USE_LIBATOMIC "Explicitly link with -latomic (on older systems) (deprecated and detected automatically)" OFF)
4142

@@ -90,7 +91,7 @@ endif()
9091

9192
if (CMAKE_GENERATOR MATCHES "^Visual Studio.*$")
9293
message(STATUS "Note: when building with Visual Studio the build type is specified when building.")
93-
message(STATUS "For example: 'cmake --build . --config=Release")
94+
message(STATUS "For example: 'cmake --build . --config=Release")
9495
endif()
9596

9697
if("${CMAKE_BINARY_DIR}" MATCHES ".*(S|s)ecure$")
@@ -322,10 +323,15 @@ if(MI_LIBC_MUSL)
322323
endif()
323324

324325
if(MI_WIN_USE_FLS)
325-
message(STATUS "Use the Fiber API to detect thread termination (MI_WIN_USE_FLS=ON)")
326+
message(STATUS "Use the Fiber API to detect thread termination (deprecated) (MI_WIN_USE_FLS=ON)")
326327
list(APPEND mi_defines MI_WIN_USE_FLS=1)
327328
endif()
328329

330+
if(MI_WIN_USE_FIXED_TLS)
331+
message(STATUS "Use fixed TLS slot on Windows to avoid extra tests in the malloc fast path (MI_WIN_USE_FIXED_TLS=ON)")
332+
list(APPEND mi_defines MI_WIN_USE_FIXED_TLS=1)
333+
endif()
334+
329335
# Determine architecture
330336
set(MI_OPT_ARCH_FLAGS "")
331337
set(MI_ARCH "unknown")
@@ -543,7 +549,7 @@ if(MI_BUILD_SHARED)
543549
elseif(MI_ARCH STREQUAL "x64")
544550
set(MIMALLOC_REDIRECT_SUFFIX "")
545551
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
546-
message(STATUS "Note: x64 code emulated on Windows for arm64 should use an arm64ec build of 'mimalloc-override.dll'")
552+
message(STATUS "Note: x64 code emulated on Windows for arm64 should use an arm64ec build of 'mimalloc-override.dll'")
547553
message(STATUS " with 'mimalloc-redirect-arm64ec.dll'. See the 'bin\\readme.md' for more information.")
548554
endif()
549555
elseif(MI_ARCH STREQUAL "x86")
@@ -667,7 +673,7 @@ endif()
667673
# -----------------------------------------------------------------------------
668674
if (MI_OVERRIDE)
669675
if (MI_BUILD_SHARED)
670-
target_compile_definitions(mimalloc PRIVATE MI_MALLOC_OVERRIDE)
676+
target_compile_definitions(mimalloc PRIVATE MI_MALLOC_OVERRIDE)
671677
endif()
672678
if(NOT WIN32)
673679
# It is only possible to override malloc on Windows when building as a DLL.

ide/vs2022/mimalloc.vcxproj renamed to ide/vs2022/mimalloc-lib.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<PropertyGroup Label="Globals">
3838
<VCProjectVersion>15.0</VCProjectVersion>
3939
<ProjectGuid>{ABB5EAE7-B3E6-432E-B636-333449892EA6}</ProjectGuid>
40-
<RootNamespace>mimalloc</RootNamespace>
40+
<RootNamespace>mimalloc-lib</RootNamespace>
4141
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
4242
<ProjectName>mimalloc-lib</ProjectName>
4343
</PropertyGroup>

ide/vs2022/mimalloc-override.vcxproj renamed to ide/vs2022/mimalloc-override-dll.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<PropertyGroup Label="Globals">
3838
<VCProjectVersion>15.0</VCProjectVersion>
3939
<ProjectGuid>{ABB5EAE7-B3E6-432E-B636-333449892EA7}</ProjectGuid>
40-
<RootNamespace>mimalloc-override</RootNamespace>
40+
<RootNamespace>mimalloc-override-dll</RootNamespace>
4141
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
4242
<ProjectName>mimalloc-override-dll</ProjectName>
4343
</PropertyGroup>

ide/vs2022/mimalloc-override-test.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
<ClCompile Include="..\..\test\main-override.cpp" />
345345
</ItemGroup>
346346
<ItemGroup>
347-
<ProjectReference Include="mimalloc-override.vcxproj">
347+
<ProjectReference Include="mimalloc-override-dll.vcxproj">
348348
<Project>{abb5eae7-b3e6-432e-b636-333449892ea7}</Project>
349349
</ProjectReference>
350350
</ItemGroup>

ide/vs2022/mimalloc-override.vcxproj.filters

Lines changed: 0 additions & 113 deletions
This file was deleted.

ide/vs2022/mimalloc-test-api.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
</ClCompile>
283283
</ItemGroup>
284284
<ItemGroup>
285-
<ProjectReference Include="mimalloc.vcxproj">
285+
<ProjectReference Include="mimalloc-lib.vcxproj">
286286
<Project>{abb5eae7-b3e6-432e-b636-333449892ea6}</Project>
287287
</ProjectReference>
288288
</ItemGroup>

ide/vs2022/mimalloc-test-stress.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
</ClCompile>
280280
</ItemGroup>
281281
<ItemGroup>
282-
<ProjectReference Include="mimalloc.vcxproj">
282+
<ProjectReference Include="mimalloc-lib.vcxproj">
283283
<Project>{abb5eae7-b3e6-432e-b636-333449892ea6}</Project>
284284
</ProjectReference>
285285
</ItemGroup>

ide/vs2022/mimalloc-test.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
<ClCompile Include="..\..\test\main-override-static.c" />
277277
</ItemGroup>
278278
<ItemGroup>
279-
<ProjectReference Include="mimalloc.vcxproj">
279+
<ProjectReference Include="mimalloc-lib.vcxproj">
280280
<Project>{abb5eae7-b3e6-432e-b636-333449892ea6}</Project>
281281
</ProjectReference>
282282
</ItemGroup>

ide/vs2022/mimalloc.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.12.35527.113
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mimalloc", "mimalloc.vcxproj", "{ABB5EAE7-B3E6-432E-B636-333449892EA6}"
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mimalloc-lib", "mimalloc-lib.vcxproj", "{ABB5EAE7-B3E6-432E-B636-333449892EA6}"
77
EndProject
88
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mimalloc-test", "mimalloc-test.vcxproj", "{FEF7858F-750E-4C21-A04D-22707CC66878}"
99
EndProject
10-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mimalloc-override", "mimalloc-override.vcxproj", "{ABB5EAE7-B3E6-432E-B636-333449892EA7}"
10+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mimalloc-override-dll", "mimalloc-override-dll.vcxproj", "{ABB5EAE7-B3E6-432E-B636-333449892EA7}"
1111
EndProject
1212
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mimalloc-override-test", "mimalloc-override-test.vcxproj", "{FEF7868F-750E-4C21-A04D-22707CC66879}"
1313
EndProject

ide/vs2022/mimalloc.vcxproj.filters

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)