Skip to content

Instantly share code, notes, and snippets.

@sudoankit
Last active March 22, 2021 15:49
Show Gist options
  • Save sudoankit/cb1cc6df8b1f74093d6647fe3c768f6b to your computer and use it in GitHub Desktop.
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
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