Skip to content

Instantly share code, notes, and snippets.

@pineapplehunter
Last active December 17, 2021 13:17
Show Gist options
  • Select an option

  • Save pineapplehunter/c4b3a50138678f0f4a1d41b5b6c276da to your computer and use it in GitHub Desktop.

Select an option

Save pineapplehunter/c4b3a50138678f0f4a1d41b5b6c276da to your computer and use it in GitHub Desktop.
Use cargo with mold only on debug mode. Needs a file named "mold" on the root of the project.
function cargo --wraps=cargo
if test -f mold && ! contains -- --release $argv
command mold --run cargo $argv
else
command cargo $argv
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment