Created
October 22, 2022 14:42
-
-
Save cristicretu/1016e5658175451c2874e3c7b19ce668 to your computer and use it in GitHub Desktop.
Zsh alias to compile C++
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
| comp() { | |
| g++ -std=c++17 -Wall -Wextra -Wno-unknown-pragmas -pedantic -O2 -Wshadow -Wformat -Wfloat-equal -Wcast-qual -Wcast-align -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_FORTIFY_SOURCE=2 -fstack-protector $1.cpp -o $1 && ./$1 | |
| } | |
| # usage: comp main (main.cpp being the file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment