Skip to content

Commit

Permalink
Add compilers.rules (#80)
Browse files Browse the repository at this point in the history
* Add compilers.rules

C and C++, Go, Java, and Rust compilers are added
Also added Bazel, Cmake, Ninja, and Meson build systems

* compilers.rules: add linkers
Change to uppercase Compiler

* Change to 13 nice, is stable
  • Loading branch information
JohnRTitor authored Apr 20, 2024
1 parent 7abaddd commit e9f8494
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
33 changes: 33 additions & 0 deletions 00-default/compilers.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# C
{ "name": "clang", "type": "Compiler" }
{ "name": "clang++", "type": "Compiler" }
{ "name": "cmake", "type": "Compiler" }
{ "name": "gcc", "type": "Compiler" }
{ "name": "g++", "type": "Compiler" }
{ "name": "make", "type": "Compiler" }

# Go
{ "name": "go", "type": "Compiler" }

# Java
{ "name": "java", "type": "Compiler" }
{ "name": "javac", "type": "Compiler" }

# Rust
{ "name": "cargo", "type": "Compiler" }
{ "name": "rustc", "type": "Compiler" }
{ "name": "rust-analyzer", "type": "Compiler" }

# Linkers
{ "name": "lld", "type": "Compiler" }
{ "name": "mold", "type": "Compiler" }
{ "name": "ld", "type": "Compiler" }
{ "name": "ld.bfd", "type": "Compiler" }
{ "name": "ld.mold", "type": "Compiler" }
{ "name": "ld.lld", "type": "Compiler" }
{ "name": "lto1-ltrans", "type": "Compiler" }

# Build systems
{ "name": "bazel", "type": "Compiler" }
{ "name": "ninja", "type": "Compiler" }
{ "name": "meson", "type": "Compiler" }
3 changes: 3 additions & 0 deletions 00-types.types
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
# Type: Chat
{ "type": "Chat", "nice": -3, "ioclass": "best-effort", "ionice": 7 , "latency_nice": -3 }

# Type: Compiler
{ "type":"Compiler", "nice": 13, "latency_nice": 13 }

# Type: Service
{ "type": "Service", "nice": 10, "ioclass": "best-effort", "ionice": 6 , "latency_nice": 10 }

Expand Down

0 comments on commit e9f8494

Please sign in to comment.