odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.11k stars 550 forks source link

Clang won't be found if not aliased? #3783

Closed fenilli closed 6 days ago

fenilli commented 2 weeks ago

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Odin:    dev-2024-06-nightly:f745a1c47
OS:      Pop!_OS 22.04 LTS, Linux 6.8.0-76060800daily20240311-generic
CPU:     AMD Ryzen 9 3900X 12-Core Processor            
RAM:     15907 MiB
Backend: LLVM 17.0.6

Expected Behavior

After installing llvm via apt.llvm in any version it should use clang-version and not clang, as when intalling a specific version it won't add clang as alias.

I would expect odin to add if not present already, a way to tell the odin compiler where to look for the clang executable.

Current Behavior

The current behaviour is failing when trying to run odin at all, it compiles but fails to execute.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. install llvm-17
  2. odin run . or odin build .

Failure Logs

clang: command not found