[compiler-rt] [compiler-rt] Set FILEOS and FILETYPE in windows_version_resource.rc (PR #223387)
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 05:36:14 PDT 2026
https://github.com/zmodem created https://github.com/llvm/llvm-project/pull/223387
This is a follow-up to #216408 which added version info to runtime DLLs.
We have a test (in Crashpad) that expects the FILEOS and FILETYPE to be set. I suppose it was getting default values from somewhere before, but after #216408 it fails unless we set them explicitly.
>From 9c76ef9cc3a0631b22f9dc9d4b631a54eca54fa2 Mon Sep 17 00:00:00 2001
From: Hans Wennborg <hans at chromium.org>
Date: Mon, 14 Sep 2026 14:32:01 +0200
Subject: [PATCH] [compiler-rt] Set FILEOS and FILETYPE in
windows_version_resource.rc
---
compiler-rt/resources/windows_version_resource.rc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/compiler-rt/resources/windows_version_resource.rc b/compiler-rt/resources/windows_version_resource.rc
index 6b1645cb3ef391..ba6fa4f852ccf3 100644
--- a/compiler-rt/resources/windows_version_resource.rc
+++ b/compiler-rt/resources/windows_version_resource.rc
@@ -54,6 +54,8 @@
1 VERSIONINFO
FILEVERSION RC_VERSION_FIELD_1,RC_VERSION_FIELD_2,RC_VERSION_FIELD_3,RC_VERSION_FIELD_4
+FILEOS 0x40004 // VOS_NT_WINDOWS32
+FILETYPE 0x2 // VFT_DLL
BEGIN
BLOCK "StringFileInfo"
BEGIN
More information about the llvm-commits
mailing list