```batchfile
:: Copyright (c) 2012 The Native Client Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.

setlocal
set "PATH=c:\cygwin\bin;%PATH%"
bash -c "buildbot/buildbot_pnacl.sh %*"
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
endlocal
```

Build Pnacl in hermetic cygwin Use the same cygwin used for the GNU toolchain. This gets us a standard environment that is kept updated on the bots (see cygwin_env.bat).
user
```batchfile
:: Copyright (c) 2012 The Native Client Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.

setlocal
:: Load the hermetic cygwin environment (downloading/installing/updating
:: it if necessary).
call "%~dp0cygwin_env.bat"
bash -c "buildbot/buildbot_pnacl.sh %*"
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
endlocal
```
assistant