Skip to content

Set compilers/toolchain globally #7528

@lem0nify

Description

@lem0nify

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

I prefer to use clang/clang++ whenever possible. So it makes sense for me to set them as the default C and C++ compilers to avoid having to run xmake f --toolchain=llvm -c for every project, but I haven't found that option.

Describe the solution you'd like

  • xmake g --toolchain=llvm once per life
  • or config file somewhere in ~/.config

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions