-
-
Save YooWaan/97afa144e690de3b00a442cc63aa9e36 to your computer and use it in GitHub Desktop.
easy clang exec shell
This file contains 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
#!/bin/sh | |
CC=clang++ | |
#CC=g++ | |
SUF=.cpp | |
IN=${1}${SUF} | |
OUT=${1} | |
OPT="-std=c++11 ${2}" | |
rm -rf ${OUT} | |
${CC} ${OPT} ${IN} -o ${OUT} | |
./${OUT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment