summaryrefslogtreecommitdiffstats
path: root/js/src/ctypes/libffi-patches/01-1014976-rtl.patch
blob: 82c2bcef4e6b40685df157e766c97f3ad802e001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Bug 1014976 - Don't make --enable-debug imply using the debug CRT in FFI

diff --git a/js/src/ctypes/libffi/msvcc.sh b/js/src/ctypes/libffi/msvcc.sh
--- a/js/src/ctypes/libffi/msvcc.sh
+++ b/js/src/ctypes/libffi/msvcc.sh
@@ -100,19 +100,23 @@ do
       shift 1
     ;;
     -g)
       # Enable debug symbol generation.
       args="$args -Zi"
       shift 1
     ;;
     -DFFI_DEBUG)
-      # Link against debug CRT and enable runtime error checks.
+      # Enable runtime error checks.
       args="$args -RTC1"
       defines="$defines $1"
+      shift 1
+    ;;
+    -DUSE_DEBUG_RTL)
+      # Link against debug CRT.
       md=-MDd
       shift 1
     ;;
     -c)
       args="$args -c"
       args="$(echo $args | sed 's%/Fe%/Fo%g')"
       single="-c"
       shift 1