Skip to content

Commit 335daa8

Browse files
committed
Strip .rc from ICU vcxproj since rc.exe cannot parse clang stddef.h
1 parent 0196080 commit 335daa8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build-icu.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ function Patch-IcuVcxProj {
128128
$content = $content -replace '<OutputFile>[^<]*\.(dll|DLL)</OutputFile>', ''
129129
$content = $content -replace '<ImportLibrary>[^<]*</ImportLibrary>', ''
130130

131+
# Strip .rc — rc.exe cannot parse clang stddef.h and static libs do not need version resources.
132+
$content = $content -replace "(?s)<ResourceCompile[^>]*>.*?</ResourceCompile>", ""
133+
$content = $content -replace "<ResourceCompile[^>]*/>", ""
134+
131135
# For stubdata - remove resource-only DLL settings
132136
if ($FilePath -match "stubdata") {
133137
$content = $content -replace '<NoEntryPoint>true</NoEntryPoint>', ''

0 commit comments

Comments
 (0)