Skip to content

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed
 

‎emranlib

+4-17
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
11
#!/usr/bin/env python
2-
# Copyright 2019 The Emscripten Authors. All rights reserved.
3-
# Emscripten is available under two separate licenses, the MIT license and the
4-
# University of Illinois/NCSA Open Source License. Both these licenses can be
5-
# found in the LICENSE file.
62

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

8-
"""emranlib - ranlib helper script
9-
===========================
6+
from tools import python_selector
107

11-
This script acts as a frontend replacement for ranlib. See emcc.
12-
"""
13-
14-
15-
from __future__ import print_function
168
import sys
17-
from tools import shared
18-
19-
def run():
20-
newargs = [shared.LLVM_RANLIB] + sys.argv[1:]
21-
return shared.run_process(newargs, stdin=sys.stdin, check=False).returncode
229

2310
if __name__ == '__main__':
24-
sys.exit(run())
11+
python_selector.run(__file__)

‎emranlib.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env python
2+
# Copyright 2019 The Emscripten Authors. All rights reserved.
3+
# Emscripten is available under two separate licenses, the MIT license and the
4+
# University of Illinois/NCSA Open Source License. Both these licenses can be
5+
# found in the LICENSE file.
6+
7+
8+
"""emranlib - ranlib helper script
9+
10+
This script acts as a frontend replacement for ranlib, and simply invokes
11+
llvm-ranlib internally.
12+
"""
13+
14+
from __future__ import print_function
15+
import sys
16+
from tools import shared
17+
18+
19+
def run():
20+
newargs = [shared.LLVM_RANLIB] + sys.argv[1:]
21+
return shared.run_process(newargs, stdin=sys.stdin, check=False).returncode
22+
23+
24+
if __name__ == '__main__':
25+
sys.exit(run())

0 commit comments

Comments
 (0)
Please sign in to comment.