| Index: tools/cxx_wrapper.py
|
| diff --git a/tools/cxx_wrapper.py b/tools/cxx_wrapper.py
|
| index bd7218348873569ca3bc6611c461cb0e1f90557e..44312e5bfd94b3f813eb2f445f9bfb31b165c88f 100755
|
| --- a/tools/cxx_wrapper.py
|
| +++ b/tools/cxx_wrapper.py
|
| @@ -84,6 +84,10 @@ def invoke_gcc_local(args):
|
| args.insert(0, "arm-none-eabi-g++")
|
| os.execvp("arm-none-eabi-g++", args)
|
|
|
| +def invoke_gcc_mips(args):
|
| + args.insert(0, "mips-mti-linux-gnu-g++")
|
| + os.execvp("mips-mti-linux-gnu-g++", args)
|
| +
|
| def main():
|
| args = sys.argv[1:]
|
| if "-L/DARTINO_ASAN" in args:
|
| @@ -121,6 +125,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)
|
|
|
|
|