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

Unified Diff: tools/cc_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 | « src/vm/vm.gyp ('k') | tools/cxx_wrapper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « src/vm/vm.gyp ('k') | tools/cxx_wrapper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698