Skip to content

llvm-rc: not merging string literals for paths #51286

Closed
@jeremyd2019

Description

@jeremyd2019
Bugzilla Link 51944
Version 12.0
OS Windows NT
CC @mstorsjo

Extended Description

I'm not really sure if this is something that only works in windres or if it also works in rc.exe. I came across this rc in virt-viewer

llvm-rc: Error in ICON statement (ID 2):
Is a directory
'['D:/a/temp/msys/msys64/clang64/bin/windres.EXE', '-DICONDIR=\"C://mingw-w64-virt-viewer/src/build-x86_64-w64-mingw32/icons\"', '-DMANIFESTDIR=\"C:/_/mingw-w64-virt-viewer/src/virt-viewer-10.0/src\"', '-i', 'src/virt-viewer.rc', '-o', 'src/virt-viewer-rc.o']' returned non-zero exit status 1.

The RC file in question is https://gitlab.com/virt-viewer/virt-viewer/-/blob/v10.0/src/virt-viewer.rc.in , and the ICON statement is

2 ICON ICONDIR "/virt-viewer.ico"

I assume they meant for that to somehow transform into 2 ICON "C:/_/mingw-w64-virt-viewer/src/build-x86_64-w64-mingw32/icons/virt-viewer.ico". This reminded me of https://reviews.llvm.org/D105621#inline-1004064 but this is in an ICON statement not a user defined resource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillallvm-toolsAll llvm tools that do not have corresponding tag

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions