Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: tools/llvm/driver/redirect.bat

Issue 8395028: Move tools/llvm/driver to pnacl/driver. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/llvm/driver/pnacl-x86_64-as.py ('k') | tools/llvm/utman.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « tools/llvm/driver/pnacl-x86_64-as.py ('k') | tools/llvm/utman.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698