compiler-explorer / compiler-explorer/compiler-explorer

[BUG]: Support switching Toolchain when using CMake

Open
#5,051 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
19.1k
Forks
2.1k
Avg merge
3d 15h
Merged PRs (30d)
67

Description

### Describe the bug

When using IDE Mode + CMake, we send some paths to CMake about where to find some tools like LD, AS and AR.
This is currently based on the initial toolchain that the compiler was configured with.

If the user chooses to switch to a different one, this is not taken into account.

Related code:
https://github.com/compiler-explorer/compiler-explorer/blob/main/lib/base-compiler.ts#L291

### Steps to reproduce

-

### Expected behavior

If the user manually submits `--gcc-toolchain=/some/other/path` via manual entry or compiler overrides, then the tool paths should change.

### Reproduction link

Not applicable

### Screenshots

Not applicable

### Operating System

_No response_

### Browser version

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.