Skip to content

"add_headers" generate header files with executable permission #57

@ghost

Description

My xmake.lua is:

-- something else --
target("bg")
    set_options("default")
    set_kind("$(kind)")
    add_files("src/bigint.cpp")
    add_headers("src/bigint.h")    -- HERE "add_headers"
    add_defines("BIGINT_FFT_TRIGGER=0x1000000")
target_end()

src/bigint.h is with normal permission, -rw-r--r--, aka 100644 in git.

After building I got build/bigint.h but it is with executable permission, -rwxr-xr-x, aka 100755 in git.

Why the permission has been changed? I do not think header files should be executable. Or it has its special meanings?

The whole repository can be seen at TitanSnow/libBG:xmake

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions