Skip to content

Commit

Permalink
Rename emranlib -> emranlib.py for consistency with other tools (emsc…
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Nov 1, 2019
1 parent 3dc4011 commit ad0838a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
21 changes: 4 additions & 17 deletions emranlib
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
#!/usr/bin/env python
# Copyright 2019 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.

# This script should work in python 2 *or* 3. It loads the main code using
# python_selector, which may pick a different version.

"""emranlib - ranlib helper script
===========================
from tools import python_selector

This script acts as a frontend replacement for ranlib. See emcc.
"""


from __future__ import print_function
import sys
from tools import shared

def run():
newargs = [shared.LLVM_RANLIB] + sys.argv[1:]
return shared.run_process(newargs, stdin=sys.stdin, check=False).returncode

if __name__ == '__main__':
sys.exit(run())
python_selector.run(__file__)
25 changes: 25 additions & 0 deletions emranlib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python
# Copyright 2019 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.


"""emranlib - ranlib helper script
This script acts as a frontend replacement for ranlib, and simply invokes
llvm-ranlib internally.
"""

from __future__ import print_function
import sys
from tools import shared


def run():
newargs = [shared.LLVM_RANLIB] + sys.argv[1:]
return shared.run_process(newargs, stdin=sys.stdin, check=False).returncode


if __name__ == '__main__':
sys.exit(run())

0 comments on commit ad0838a

Please sign in to comment.