Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- msvc_common_flags(){
- for flag; do
- case $flag in
- # In addition to specifying certain flags under the compiler
- # specific filters, they must be specified here as well or else the
- # generic catch all at the bottom will print the original flag.
- -Wall) ;;
- -std=c99) ;;
- # Common flags
- -fomit-frame-pointer) ;;
- -g) echo -Z7 ;;
- -fno-math-errno) ;;
- -fno-common) ;;
- -fno-signed-zeros) ;;
- -fPIC)
- if enabled debug; then
- echo -MDd
- else
- echo -MD
- fi
- ;;
- -mthumb) ;;
- -march=*) ;;
- -lz) echo zlib.lib ;;
- -lavifil32) echo vfw32.lib ;;
- -lavicap32) echo vfw32.lib user32.lib ;;
- -l*) echo ${flag#-l}.lib ;;
- *) echo $flag ;;
- esac
- done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement