Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: tools/cxx_wrapper.py

Issue 2006403003: [mips] Initial framework support for MIPS32 (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Code changes per review. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/cc_wrapper.py ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « tools/cc_wrapper.py ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698