Skip to content

support zig cc -target  #5990

@jimying

Description

@jimying

Is your feature request related to a problem? Please describe.

  • support zig cc -target x86_64-linux-gnu
  • support zig cc -target x86_64-linux-gnu.2.18 specify glibc version 2.18

Describe the solution you'd like

error build c++ hello project

export tgt=x86_64-linux-gnu.2.18
xmake f --cc="zig cc -target $tgt"  --cxx="zig c++ -target $tgt" --ld="zig c++ -target $tgt" -c
xmake

error:

error: cannot find known tool script for zig c++ -target x86_64-linux-gnu.2.18

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions