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

Unified Diff: pnacl/driver/pnacl-llc.py

Issue 580983002: Remove i686-hosted Linux build and start switching to new directory layout (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: review 2, put back test and build.sh patch from PS5 Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pnacl/driver/driver_tools.py ('k') | pnacl/driver/tests/driver_test_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pnacl/driver/pnacl-llc.py
diff --git a/pnacl/driver/pnacl-llc.py b/pnacl/driver/pnacl-llc.py
deleted file mode 100755
index 0396c5189287398e86465b26167d985b5bbf9184..0000000000000000000000000000000000000000
--- a/pnacl/driver/pnacl-llc.py
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/usr/bin/python
-# Copyright (c) 2014 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.
-
-# This is a thin wrapper for native LLC. This is not meant to be used by
-# the user, only by the build system.
-
-import subprocess
-
-from driver_env import env
-import driver_tools
-
-EXTRA_ENV = {
- 'ARGS' : '',
- 'INPUT' : '',
- 'OUTPUT' : '',
- # Binary output may go to stdout (when -o was not specified)
- 'HAVE_OUTPUT' : '0',
-}
-
-PATTERNS = [
- (('-o','(.*)'), "env.set('OUTPUT', pathtools.normalize($0))\n" +
- "env.set('HAVE_OUTPUT', '1')"),
- ( '(-.*)', "env.append('ARGS', $0)"),
- ( '(.*)', "env.set('INPUT', $0)"),
-]
-
-def main(argv):
- env.update(EXTRA_ENV)
- driver_tools.ParseArgs(argv, PATTERNS)
-
- driver_tools.CheckPathLength(env.getone('INPUT'))
- driver_tools.CheckPathLength(env.getone('OUTPUT'))
-
- driver_tools.Run(
- '"${LLVM_PNACL_LLC}" ${ARGS} ' +
- '${HAVE_OUTPUT ? -o ${OUTPUT}} ' +
- '${INPUT}')
-
- # only reached in case of no errors
- return 0
-
-def get_help(unused_argv):
- # Set errexit=False -- Do not exit early to allow testing.
- # For some reason most the llvm tools return non-zero with --help,
- # while all of the gnu tools return 0 with --help.
- # On windows, the exit code is also inconsistent =(
- code, stdout, stderr = driver_tools.Run('${LLVM_PNACL_LLC} -help',
- redirect_stdout=subprocess.PIPE,
- redirect_stderr=subprocess.STDOUT,
- errexit=False)
-
- help = """
-LLVM static compiler
-
-To translate PNaCl bitcode, use pnacl-translate instead.
-
-""" + stdout
-
- return help
« no previous file with comments | « pnacl/driver/driver_tools.py ('k') | pnacl/driver/tests/driver_test_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698