Skip to content

Make the extension look for the compiler in the PATH environment variable as well #12779

@luizfernandonb

Description

@luizfernandonb

Feature Request

Currently we have to put the full path of the compiler in the compilerPath property in c_cpp_properties.json, and this breaks portability between systems, since the paths between Windows and Linux are different, would it be possible to put only the name of the compiler and the extension to search for the executable in the PATH environment variable?

Example: "compilerPath": "C:/Program Files/Clang/bin/clang.exe" -> "compilerPath": "clang"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions