Skip to content

A slightly more elegant way to select llvm versions #1

Open
@Jerry1144

Description

@Jerry1144

Instead of changing Homebrew logic so it finds the llvm@12 or llvm@15, the neat way of doing this is:

ln -s ./llvm@12 /usr/local/opt/llvm

This creates a symlink to the relevant llvm@12 that Brew's build logic happily accepts.

I believe this even is the intended way of switching between llvm versions. Brew has --cc=gcc-13 for gcc@13 but never a --cc=llvm_clang-12 for llvm@12.

Anyway, many thanks for spotting the line that makes llvm builds fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions