From e9f849440a023d753adff2b4a2e226f85f4946a4 Mon Sep 17 00:00:00 2001 From: Masum Reza <50095635+JohnRTitor@users.noreply.github.com> Date: Sat, 20 Apr 2024 19:41:16 +0530 Subject: [PATCH] Add compilers.rules (#80) * 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 --- 00-default/compilers.rules | 33 +++++++++++++++++++++++++++++++++ 00-types.types | 3 +++ 2 files changed, 36 insertions(+) create mode 100644 00-default/compilers.rules diff --git a/00-default/compilers.rules b/00-default/compilers.rules new file mode 100644 index 0000000..4b8a3e5 --- /dev/null +++ b/00-default/compilers.rules @@ -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" } diff --git a/00-types.types b/00-types.types index 828a886..a16752e 100644 --- a/00-types.types +++ b/00-types.types @@ -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 }