Skip to content

在macos上set_kind(shared)时与-bundle 不相容 #687

@tangruidon

Description

@tangruidon

Describe the bug

在macos上编译动态库,
target("example")
set_kind(shared)
add_shflags("-bundle -undefined dynamic_lookup",{force=true})
编译时提示 -bundle not allowed "dynamiclib"

Expected behavior

在最后连接的时候 cc -o -bundle -undefined dynamic_lookup,而不是cc -o -shared

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions