| 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()
|
|
|