Last active
December 17, 2021 13:17
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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