Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify the Clang executable value via CLI? #2159

Closed
GasimGasimzada opened this issue Nov 13, 2023 · 1 comment
Closed

How to modify the Clang executable value via CLI? #2159

GasimGasimzada opened this issue Nov 13, 2023 · 1 comment
Labels

Comments

@GasimGasimzada
Copy link

GasimGasimzada commented Nov 13, 2023

What's your question?

I am installing LLVM using the llvm.sh file:

./llvm.sh 16 all

This creates versioned executables for clang and clang++ files: clang-16 and clang++-16 respectively. Is there a way to define the version in premake5 via CLI. Currently, I am setting the toolset using --cc flag:

premake5 --cc=clang gmake

and manually creating a link for clang that points to the default version:

sudo update-alternatives /usr/bin/clang clang /usr/bin/clang-16 0
sudo update-alternatives /usr/bin/clang++ clang++ /usr/bin/clang++-16 0

But I would rather use premake for this without modifying executable paths. Is there any way to set these values? I tried ot use --cc=clang-16 but it says the value is invalid.

@Jarod42
Copy link
Contributor

Jarod42 commented Nov 13, 2023

(Merged) #2113 should allow to select toolset version with -cc=clang-16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants