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

Unified Diff: native_client_sdk/src/tools/compiler-wrapper.py

Issue 1655873003: [NaCl SDK] Cleanup references to old newlib toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_pepper_50
Patch Set: Created 4 years, 11 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 | « native_client_sdk/src/gonacl_appengine/src/voronoi/Makefile ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tools/compiler-wrapper.py
diff --git a/native_client_sdk/src/tools/compiler-wrapper.py b/native_client_sdk/src/tools/compiler-wrapper.py
deleted file mode 100755
index a2dcb118a5db6e491af6f5f7f8802ea3a0810dc0..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/tools/compiler-wrapper.py
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-"""NaCl gcc wrapper that presents glibc and newlib as a single
-toolchain.
-
-This wraps the newlib and glibc compilers and allows users
-to choose which one they really want by passed in --glibc
-or --newlib on the command line.
-
-We need this when using gyp to generator build files since
-gyp only support one target toolchain and one host toolchain
-(for now).
-"""
-import sys
-import os
-
-def main():
- args = sys.argv[1:]
- if '--glibc' in args:
- variant = 'glibc'
- args.remove('--glibc')
- elif '--newlib' in args:
- variant = 'newlib'
- args.remove('--newlib')
- else:
- sys.exit("Expected --glibc or --newlib in arg list")
- compiler = os.path.abspath(sys.argv[0])
- compiler = compiler.replace("linux_x86", "linux_x86_%s" % variant)
- args = [compiler] + args
- os.execv(compiler, args)
-
-if __name__ == '__main__':
- main()
« no previous file with comments | « native_client_sdk/src/gonacl_appengine/src/voronoi/Makefile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698