forked from emscripten-core/emscripten
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename emranlib -> emranlib.py for consistency with other tools (emsc…
- Loading branch information
Showing
2 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |