SublimeLinter / SublimeLinter-gcc

This linter plugin for SublimeLinter provides an interface to gcc or other gcc-like (cross-)compiler.
MIT License
22 stars 5 forks source link

Different binary to execute #1

Closed diggit closed 7 years ago

diggit commented 7 years ago

Hi, I'd like to use binary arm-none-eabi-gcc instead of gcc. Would it be possible make this option available in settings?

jfcherng commented 7 years ago

I have made it an option (default to gcc) in 1.1.0. You could specify the cross-compiler that you want to use in SublimeLinter's settings.

{
    "user": {
        "linters": {
            "gcc": {
                "@disable": false,
                "args": [],
                "excludes": [],
                "executable": "arm-none-eabi-gcc", // <---------------- add this line
                "extra_flags": "",
                "include_dirs": [
                    "${project_folder}/include",
                    "/usr/local/include",
                ]
            },
        },
    }
}