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

Unified Diff: third_party/cython/python_flags.py

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « third_party/cython/cython_compiler.gypi ('k') | third_party/cython/rules.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cython/python_flags.py
diff --git a/third_party/cython/python_flags.py b/third_party/cython/python_flags.py
index b10aece38a4e9367667c74087b57fd3c272c65ef..492c9a9fd4b9aa577fc5a97a0d8a795ddb824885 100644
--- a/third_party/cython/python_flags.py
+++ b/third_party/cython/python_flags.py
@@ -16,9 +16,6 @@ def main():
"""
parser = argparse.ArgumentParser(
description='Retrieves compilation options for python modules.')
- parser.add_argument('--gn',
- help='Returns all values in a format suitable for gn',
- action='store_true')
parser.add_argument('--libraries', help='Returns libraries',
action='store_true')
parser.add_argument('--includes', help='Returns includes',
@@ -36,11 +33,6 @@ def main():
libraries = b.get_libraries(ext)
if sys.platform == 'darwin':
libraries.append('python%s' % sys.version[:3])
- if not opts.gn and sys.platform in ['darwin', 'linux2']:
- # In case of GYP output for darwin and linux prefix all
- # libraries (if there are any) so the result can be used as a
- # compiler argument. GN handles platform-appropriate prefixing itself.
- libraries = ['-l%s' % library for library in libraries]
result.extend(libraries)
if opts.includes:
result = result + b.include_dirs
@@ -48,11 +40,8 @@ def main():
if sys.platform == 'darwin':
result.append('%s/lib' % sysconfig.get_config_vars('prefix')[0])
- if opts.gn:
- for x in result:
- print x
- else:
- print ''.join(['"%s"' % x for x in result])
+ for x in result:
+ print x
if __name__ == '__main__':
main()
« no previous file with comments | « third_party/cython/cython_compiler.gypi ('k') | third_party/cython/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698