Skip to content

Commit 99665ee

Browse files
tristanlabellecompnerd
authored andcommitted
Revert "Add workaround for MAX_PATH with object output directories."
This reverts commit b4f6778.
1 parent ad6ec64 commit 99665ee

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

build.ps1

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,6 @@ function Build-CMakeProject
376376
TryAdd-KeyValue $Defines CMAKE_BUILD_TYPE $BuildType
377377
TryAdd-KeyValue $Defines CMAKE_MT "mt"
378378

379-
# Workaround for running into MAX_PATH with CMake-generated output directory paths.
380-
# CMake has logic to shorten output directory paths if they approach MAX_PATH,
381-
# but when appending the filename we can still exceed MAX_PATH.
382-
# The specific issue this solves is rc.exe writing windows_version_resource.rc.res
383-
$MAX_PATH = 260
384-
$LONG_FILENAME_LENGTH = 40
385-
TryAdd-KeyValue $Defines CMAKE_OBJECT_PATH_MAX ($MAX_PATH - $LONG_FILENAME_LENGTH)
386-
387379
$CFlags = "/GS- /Gw /Gy /Oi /Oy /Zi /Zc:inline"
388380
$CXXFlags = "/GS- /Gw /Gy /Oi /Oy /Zi /Zc:inline /Zc:__cplusplus"
389381
if ($UseMSVCCompilers.Contains("C"))

0 commit comments

Comments
 (0)