| OLD | NEW |
| (Empty) |
| 1 @echo off | |
| 2 :: Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
| 3 :: Use of this source code is governed by a BSD-style license that can be | |
| 4 :: found in the LICENSE file. | |
| 5 | |
| 6 :: This file is installed for each driver file so that the driver can | |
| 7 :: be run from outside Cygwin. This file will be installed as bin/pnacl-*.bat | |
| 8 :: inside the PNaCl directory. For example, if you invoke: | |
| 9 :: | |
| 10 :: C:\> path\to\pnacl\bin\pnacl-gcc hello.c -o hello.pexe | |
| 11 :: | |
| 12 :: inside the Windows command prompt, then Windows runs pnacl-gcc.bat. | |
| 13 :: This script will in turn run: | |
| 14 :: "python path\to\pnacl\bin\pnacl-gcc hello.c -o hello.pexe" | |
| 15 | |
| 16 setlocal | |
| 17 | |
| 18 :: Stop incessant CYGWIN complains about "MS-DOS style path" | |
| 19 set CYGWIN=nodosfilewarning %CYGWIN% | |
| 20 | |
| 21 :: TODO(pdox): For the toolchain to be hermetic and relocatable, | |
| 22 :: we may need to arrange to include Python in our distribution. | |
| 23 :: For now, use the Python included in the repository checkout. | |
| 24 set PATH=%~dp0..\..\..\..\third_party\python_26;%PATH% | |
| 25 | |
| 26 :: Run the driver | |
| 27 :: For now, assume "python" is in the PATH. | |
| 28 python -OO "%~dp0\%~n0" %* | |
| 29 | |
| 30 :end | |
| OLD | NEW |