Skip to content

build-exe's -F to set compiler's -F cflag #7838

@frarees

Description

@frarees

Using zig build-exe -F <path> tells the linker to use -F <path>.

If you use custom framework locations (e.g. ./fwk/SDL2.framework), it would be useful to tell the compiler to -F <path> too, so that it can search for headers. Otherwise, you have to include them manually (e.g. -I./fwk/SDL2.framework/Headers).

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis proposal is planned.contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.os-macosmacOSproposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions