Bug 1007931 - Replace backslashes with forward slashes in compiler wrapper on windows. r=mshal

This commit is contained in:
Mike Hommey 2014-05-15 07:14:36 +09:00
Родитель c5e2b269d2
Коммит 5ae66d3968
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -13,6 +13,18 @@ MOZ_ARG_WITH_STRING(compiler_wrapper,
COMPILER_WRAPPER=$withval, COMPILER_WRAPPER="no")
if test "$COMPILER_WRAPPER" != "no"; then
case "$target" in
*-mingw*)
dnl When giving a windows path with backslashes, js/src/configure
dnl fails because of double wrapping because the test further below
dnl doesn't work with backslashes. While fixing that test to work
dnl might seem better, a lot of the make build backend actually
dnl doesn't like backslashes, so normalize windows paths to use
dnl forward slashes.
COMPILER_WRAPPER=`echo "$COMPILER_WRAPPER" | tr '\\' '/'`
;;
esac
case "$CC" in
$COMPILER_WRAPPER\ *)
: