Bug 613173 - Add comment about incorrect usage of $target vs $host (r=ted)
authorPaul Biggar <pbiggar>
Thu, 18 Nov 2010 10:40:00 -0800
changeset 58078 870bb8ee43e62221b89d2dc8d9aa9ccd41cbc3a3
parent 58077 1532a8fcc7d31446760b06170011758aba23ce06
child 58079 8ba0c122568fdd05ac170561217a07d2b64361e5
child 58282 fe0e393e35303dfcf2923a647e9fcaad7de2b96a
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersted
bugs613173
milestone2.0b8pre
Bug 613173 - Add comment about incorrect usage of $target vs $host (r=ted)
js/src/configure.in
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -348,16 +348,25 @@ dnl Set CROSS_COMPILE in the environment
 dnl to use the cross-compile setup for now
 dnl ========================================================
 
 dnl AR_FLAGS set here so HOST_AR_FLAGS can be set correctly (see bug 538269)
 AR_FLAGS='cr $@'
 
 if test "$COMPILE_ENVIRONMENT"; then
 
+# Note:
+#   In Mozilla, we use the names $target, $host and $build incorrectly, but are
+#   too far gone to back out now. See Bug 475488:
+#     - When we say $target, we mean $host, that is, the system on which
+#       Mozilla will be run.
+#     - When we say $host, we mean $build, that is, the system on which Mozilla
+#       is built.
+#     - $target (in its correct usage) is for compilers who generate code for a
+#       different platform than $host, so it would not be used by Mozilla.
 if test "$target" != "$host"; then
     echo "cross compiling from $host to $target"
     CROSS_COMPILE=1
 
     _SAVE_CC="$CC"
     _SAVE_CFLAGS="$CFLAGS"
     _SAVE_LDFLAGS="$LDFLAGS"