Last active
March 22, 2021 15:49
-
-
Save sudoankit/cb1cc6df8b1f74093d6647fe3c768f6b to your computer and use it in GitHub Desktop.
Sublimelinter-gcc settings for MacOS Big Sur with gcc-10 installed using brew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Gcc(Linter): | |
name = "gcc" | |
cmd = "gcc-10 ${args} -" | |
regex = OUTPUT_RE | |
multiline = True | |
on_stderr = None | |
defaults = { | |
"selector": "source.c", | |
"args": ["-c", "-Wall", "-O0"], | |
"-I +": ["/usr/local/bin/gcc-10"], | |
"-x": "c", | |
"-o": getGarbabgeFilePath(), | |
} | |
class GPlusPlus(Linter): | |
name = "g++" | |
cmd = "g++-10 ${args} -" | |
regex = OUTPUT_RE | |
multiline = True | |
on_stderr = None | |
defaults = { | |
"selector": "source.c++", | |
"args": ["-c", "-DLOCAL", "-std=c++17", "-O2", "-Wall", "-Wextra", "-Wshadow", "-Wconversion", "-Wfloat-equal", "-Wduplicated-cond", "-Wlogical-op"], | |
"-I +": ["/usr/local/bin/g++-10"], | |
"-x": "c++", | |
"-o": getGarbabgeFilePath(), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment