File tree 2 files changed +29
-17
lines changed
2 files changed +29
-17
lines changed Original file line number Diff line number Diff line change 1
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
2
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.
7
5
8
- """emranlib - ranlib helper script
9
- ===========================
6
+ from tools import python_selector
10
7
11
- This script acts as a frontend replacement for ranlib. See emcc.
12
- """
13
-
14
-
15
- from __future__ import print_function
16
8
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
22
9
23
10
if __name__ == '__main__' :
24
- sys . exit ( run () )
11
+ python_selector . run (__file__ )
Original file line number Diff line number Diff line change
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 ())
You can’t perform that action at this time.
0 commit comments