Bug 36195 - CYGWIN and PATH environment variables should be unset when building in the MSYS shell, r=luser
git-svn-id: svn://10.0.0.236/trunk@217262 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
@ECHO OFF
|
||||
|
||||
set CYGWIN=
|
||||
if not defined MOZ_NO_RESET_PATH (
|
||||
set PATH=%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem
|
||||
)
|
||||
|
||||
SET INCLUDE=
|
||||
SET LIB=
|
||||
|
||||
SET MSVCROOTKEY=HKLM\SOFTWARE\Microsoft\VisualStudio
|
||||
SET MSVC6KEY=%MSVCROOTKEY%\6.0\Setup\Microsoft Visual C++
|
||||
SET MSVC71KEY=%MSVCROOTKEY%\7.1\Setup\VC
|
||||
|
||||
@@ -49,7 +49,8 @@ environ["MOZ_SRCDIR"] = sourcedir
|
||||
print("Source file location: " + sourcedir)
|
||||
print("Output location: " + stagedir)
|
||||
|
||||
rmtree(join(stagedir, "mozilla-build"))
|
||||
if exists(join(stagedir, "mozilla-build")):
|
||||
rmtree(join(stagedir, "mozilla-build"))
|
||||
|
||||
check_call([join(sourcedir, "7z442.exe"),
|
||||
"/D=" + join(stagedir, "mozilla-build", "7zip")])
|
||||
|
||||
@@ -20,9 +20,6 @@ if "%VC6DIR%"=="Not Found" (
|
||||
REM For MSVC6, we use the "old" non-static moztools
|
||||
set MOZ_TOOLS=%MOZILLABUILD%\moztools-180compat
|
||||
|
||||
SET INCLUDE=
|
||||
SET LIB=
|
||||
|
||||
rem append moztools to PATH
|
||||
SET PATH=%PATH%;%MOZ_TOOLS%\bin
|
||||
|
||||
|
||||
@@ -20,9 +20,6 @@ if "%VC71DIR%"=="Not Found" (
|
||||
REM Use the "new" moztools-static
|
||||
set MOZ_TOOLS=%MOZILLABUILD%\moztools
|
||||
|
||||
SET INCLUDE=
|
||||
SET LIB=
|
||||
|
||||
rem append moztools to PATH
|
||||
SET PATH=%PATH%;%MOZ_TOOLS%\bin
|
||||
|
||||
|
||||
@@ -20,9 +20,6 @@ if "%VC8DIR%"=="Not Found" (
|
||||
REM Use the "new" moztools-static
|
||||
set MOZ_TOOLS=%MOZILLABUILD%\moztools
|
||||
|
||||
SET INCLUDE=
|
||||
SET LIB=
|
||||
|
||||
rem append moztools to PATH
|
||||
SET PATH=%PATH%;%MOZ_TOOLS%\bin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user