Skip to content

Compilation failure with paths containing ".c" #366

@seadra

Description

@seadra

On Arch Linux, the compilation fails when using yay:

make[2]: *** No rule to make target '/home/user/_private.hache/yay/box86/src/box86-0.2.0/src/wrapped/wrappedlibc_private.h', needed by '../src/wrapped/generated/functions_list.txt'.  Stop.

It seems the original path /home/user/.cache/yay gets converted to /home/user/_private.hache/yay by src/box86-0.2.0/CMakeLists.txt:370: string(REPLACE ".c" "_private.h" B ${A}) Maybe using regex that only matches ".c" at the end of the string is a solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions