Skip to content

Instantly share code, notes, and snippets.

@giraldeau
Last active January 9, 2026 18:48
Show Gist options
  • Select an option

  • Save giraldeau/41a9a82885189d62661a15adeb15dfaf to your computer and use it in GitHub Desktop.

Select an option

Save giraldeau/41a9a82885189d62661a15adeb15dfaf to your computer and use it in GitHub Desktop.
testing ninja priority on windows
# Variable for the command
# We use $$ to escape the $ for the shell (so Ninja doesn't think it's a variable)
command = showprio.exe
rule run_cmd
command = $command
description = Checking current process niceness...
# The 'phony' build type ensures this runs every time
build check_nice: phony
command = $command
build ALWAYS_RUN: run_cmd
default ALWAYS_RUN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment