Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. msvc_common_flags(){
  2. for flag; do
  3. case $flag in
  4. # In addition to specifying certain flags under the compiler
  5. # specific filters, they must be specified here as well or else the
  6. # generic catch all at the bottom will print the original flag.
  7. -Wall) ;;
  8. -std=c99) ;;
  9. # Common flags
  10. -fomit-frame-pointer) ;;
  11. -g) echo -Z7 ;;
  12. -fno-math-errno) ;;
  13. -fno-common) ;;
  14. -fno-signed-zeros) ;;
  15. -fPIC)
  16. if enabled debug; then
  17. echo -MDd
  18. else
  19. echo -MD
  20. fi
  21. ;;
  22. -mthumb) ;;
  23. -march=*) ;;
  24. -lz) echo zlib.lib ;;
  25. -lavifil32) echo vfw32.lib ;;
  26. -lavicap32) echo vfw32.lib user32.lib ;;
  27. -l*) echo ${flag#-l}.lib ;;
  28. *) echo $flag ;;
  29. esac
  30. done
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement