Skip to content

Instantly share code, notes, and snippets.

@vittorioromeo
Created October 7, 2013 15:22
Show Gist options
  • Save vittorioromeo/6869750 to your computer and use it in GitHub Desktop.
Save vittorioromeo/6869750 to your computer and use it in GitHub Desktop.
#!/bin/bash
#g++ -O3 -DNDEBUG -std=c++11 -Wall -Wextra -W -pedantic -pthread "$@"
#clang++ -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wcomment -Wchar-subscripts -Wenum-compare -Wformat -Wimplicit -Wimport -Winline -Wlarger-than- -Wmissing-declarations -Wnested-externs -Woverloaded-virtual -Wparentheses -Wpointer-arith -Wredundant-decls -Wreorder -Wreturn-type -Wshadow -Wstrict-prototypes -Wswitch -Wsynth -Wtypename-missing -Wuninitialized -Wunused -Wwrite-strings "$@" #-fsanitize=address-full -g -O0
#clang++ -O3 -DNDEBUG -std=c++11 -Wall -Wextra -W -pedantic -pthread -Weffc++ "$@" -fsanitize=float-divide-by-zero -fsanitize=undefined -fsanitize=integer -fsanitize=bool -fsanitize=enum -fsanitize=bounds -fsanitize=integer-divide-by-zero -fsanitize=null -fsanitize=return -fsanitize=unreachable -fsanitize=vptr
#clang++ -g -g3 -std=c++11 -Wall -Wextra -W -pedantic -pthread -Weffc++ "$@" -fsanitize=float-divide-by-zero -fsanitize=undefined -fsanitize=integer -fsanitize=bool -fsanitize=enum -fsanitize=bounds -fsanitize=integer-divide-by-zero -fsanitize=null -fsanitize=return -fsanitize=unreachable -fsanitize=vptr
#g++ -g -g3 -std=c++11 -Wall -Wextra -W -pedantic -pthread "$@"
clang++ -O3 -DNDEBUG -std=c++11 -Wall -Wextra -W -pedantic -pthread -Weffc++ -march=native "$@"
#clang++ -DNDEBUG -std=c++11 -Wall "$@"
#clang++ -O3 -DNDEBUG -std=c++11 -Wall -Wextra -W -pedantic -pthread -Weffc++ "$@" -fsanitize=float-divide-by-zero -fsanitize=undefined -fsanitize=integer -fsanitize=bool -fsanitize=enum -fsanitize=bounds -fsanitize=integer-divide-by-zero -fsanitize=null -fsanitize=return -fsanitize=unreachable -fsanitize=vptr
#clang++ -O0 -g3 -std=c++11 -Wall -Wextra -W -pedantic -pthread -Weffc++ "$@" -fsanitize=float-divide-by-zero -fsanitize=undefined -fsanitize=integer -fsanitize=bool -fsanitize=enum -fsanitize=bounds -fsanitize=integer-divide-by-zero -fsanitize=null -fsanitize=return -fsanitize=unreachable -fsanitize=vptr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment