Skip to content

Instantly share code, notes, and snippets.

@YooWaan
Created October 10, 2016 07:58
Show Gist options
  • Save YooWaan/97afa144e690de3b00a442cc63aa9e36 to your computer and use it in GitHub Desktop.
Save YooWaan/97afa144e690de3b00a442cc63aa9e36 to your computer and use it in GitHub Desktop.
easy clang exec shell
#!/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