| Index: tools/cc_wrapper.py
|
| diff --git a/tools/cc_wrapper.py b/tools/cc_wrapper.py
|
| index b084519a5dd346843958b5189d9521055d1265c6..89c0bd96c0ea06b22a868d2863800dcfff6077bc 100755
|
| --- a/tools/cc_wrapper.py
|
| +++ b/tools/cc_wrapper.py
|
| @@ -85,6 +85,10 @@ def invoke_gcc_local(args):
|
| args.insert(0, "arm-none-eabi-gcc")
|
| os.execvp("arm-none-eabi-gcc", args)
|
|
|
| +def invoke_gcc_mips(args):
|
| + args.insert(0, "mips-mti-linux-gnu-gcc")
|
| + os.execvp("mips-mti-linux-gnu-gcc", args)
|
| +
|
| def main():
|
| args = sys.argv[1:]
|
| if "-L/DARTINO_ASAN" in args:
|
| @@ -117,6 +121,11 @@ def main():
|
| elif "-L/GCC_XARM_LOCAL" in args:
|
| args.remove("-L/GCC_XARM_LOCAL")
|
| invoke_gcc_local(args)
|
| + elif "-DDARTINO_MIPS" in args:
|
| + invoke_gcc_mips(args)
|
| + elif "-L/DARTINO_MIPS" in args:
|
| + args.remove("-L/DARTINO_MIPS")
|
| + invoke_gcc_mips(args)
|
| else:
|
| invoke_gcc(args)
|
|
|
|
|