Skip to content

Commit

Permalink
Add longPathAware manifest to enable long paths on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianadam committed Dec 12, 2022
1 parent c6e002d commit d41e9b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ if(NINJA_BUILD_BINARY)
endif()
endif()

if (MSVC)
target_sources(ninja PRIVATE src/longpath.manifest)
endif()

# Adds browse mode into the ninja binary if it's supported by the host platform.
if(platform_supports_ninja_browse)
# Inlines src/browse.py into the browse_py.h header, so that it can be included
Expand Down
8 changes: 8 additions & 0 deletions src/longpath.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
</assembly>

0 comments on commit d41e9b4

Please sign in to comment.