summaryrefslogtreecommitdiff
path: root/msvcc.sh
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2010-11-21 10:50:56 -0500
committerAnthony Green <green@moxielogic.com>2010-11-21 10:50:56 -0500
commit2db72615b50eb5c0f29725c02c740a2f0d7fc7d9 (patch)
treef54a6a58f89314f967eae578d54de8f851e3d380 /msvcc.sh
parent84e8de6e9fc19388f6f1102c013b7d0d52940ecc (diff)
downloadlibffi-2db72615b50eb5c0f29725c02c740a2f0d7fc7d9.tar.gz
Rebase
Diffstat (limited to 'msvcc.sh')
-rwxr-xr-xmsvcc.sh22
1 files changed, 5 insertions, 17 deletions
diff --git a/msvcc.sh b/msvcc.sh
index dcdbeab..64ef195 100755
--- a/msvcc.sh
+++ b/msvcc.sh
@@ -67,25 +67,13 @@ do
safeseh=
shift 1
;;
- -O0)
- args="$args -Od"
- shift 1
- ;;
-O*)
- # If we're optimizing, make sure we explicitly turn on some optimizations
- # that are implicitly disabled by debug symbols (-Zi).
- args="$args $1 -OPT:REF -OPT:ICF -INCREMENTAL:NO"
+ args="$args $1"
shift 1
;;
-g)
- # Enable debug symbol generation.
- args="$args -Zi -DEBUG"
- shift 1
- ;;
- -DFFI_DEBUG)
- # Link against debug CRT and enable runtime error checks.
- args="$args -RTC1"
- defines="$defines $1"
+ # Can't specify -RTC1 or -Zi in opt. -Gy is ok. Use -OPT:REF?
+ args="$args -D_DEBUG -RTC1 -Zi"
md=-MDd
shift 1
;;
@@ -122,8 +110,8 @@ do
shift 1
;;
-Wall)
- # -Wall on MSVC is overzealous, and we already build with -W3. Nothing
- # to do here.
+ # -Wall on MSVC is overzealous. Use -W3 instead.
+ args="$args -W3"
shift 1
;;
-Werror)