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

Unified Diff: tools/cxx_wrapper.py

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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/create_tarball.py ('k') | tools/dartinoc_blaze.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 ba0598fb32908d03194763c1ea55fa949e4eb614..5e73dd834476a46199e5d9058860b5c3d6d57d08 100755
--- a/tools/cxx_wrapper.py
+++ b/tools/cxx_wrapper.py
@@ -21,9 +21,9 @@ def which(program):
return None
-def relative_to_fletch_root(*target):
- fletch_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
- return os.path.join(fletch_path, *target)
+def relative_to_dartino_root(*target):
+ dartino_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ return os.path.join(dartino_path, *target)
def invoke_clang(args):
os_name = utils.GuessOS()
@@ -32,7 +32,7 @@ def invoke_clang(args):
args.extend([
'-isysroot',
subprocess.check_output(['xcrun', '--show-sdk-path']).strip()])
- clang_bin = relative_to_fletch_root(
+ clang_bin = relative_to_dartino_root(
"third_party", "clang", os_name, "bin", "clang++")
print clang_bin
args.insert(0, clang_bin)
@@ -59,11 +59,11 @@ def invoke_gcc_arm_embedded(args):
# files generated by gyp on Mac.
args.remove("-arch")
args.remove("x86_64")
- gcc_arm_embedded_bin = relative_to_fletch_root(
+ gcc_arm_embedded_bin = relative_to_dartino_root(
"third_party", "gcc-arm-embedded", os_name, "gcc-arm-embedded", "bin",
"arm-none-eabi-g++")
if not os.path.exists(gcc_arm_embedded_bin):
- gcc_arm_embedded_download = relative_to_fletch_root(
+ gcc_arm_embedded_download = relative_to_dartino_root(
"third_party", "gcc-arm-embedded", "download")
print "\n*************** TOOLCHAIN ERROR ********************"
print "%s not found" % gcc_arm_embedded_bin
@@ -82,30 +82,30 @@ def invoke_gcc_local(args):
def main():
args = sys.argv[1:]
- if "-L/FLETCH_ASAN" in args:
- args.remove("-L/FLETCH_ASAN")
+ if "-L/DARTINO_ASAN" in args:
+ args.remove("-L/DARTINO_ASAN")
args.insert(0, '-fsanitize=address')
- if "-L/FLETCH_CLANG" in args:
+ if "-L/DARTINO_CLANG" in args:
args.insert(0, '-fsanitize-undefined-trap-on-error')
- if "-DFLETCH_CLANG" in args:
+ if "-DDARTINO_CLANG" in args:
invoke_clang(args)
- elif "-L/FLETCH_CLANG" in args:
- args.remove("-L/FLETCH_CLANG")
+ elif "-L/DARTINO_CLANG" in args:
+ args.remove("-L/DARTINO_CLANG")
invoke_clang(args)
- elif "-DFLETCH_ARM" in args:
+ elif "-DDARTINO_ARM" in args:
invoke_gcc_arm(args)
- elif "-L/FLETCH_ARM" in args:
- args.remove("-L/FLETCH_ARM")
+ elif "-L/DARTINO_ARM" in args:
+ args.remove("-L/DARTINO_ARM")
invoke_gcc_arm(args)
- elif "-DFLETCH_ARM64" in args:
+ elif "-DDARTINO_ARM64" in args:
invoke_gcc_arm64(args)
- elif "-L/FLETCH_ARM64" in args:
- args.remove("-L/FLETCH_ARM64")
+ elif "-L/DARTINO_ARM64" in args:
+ args.remove("-L/DARTINO_ARM64")
invoke_gcc_arm64(args)
- elif "-DFLETCH_CMSIS" in args:
+ elif "-DDARTINO_CMSIS" in args:
invoke_gcc_arm_embedded(args)
- elif "-L/FLETCH_CMSIS" in args:
- args.remove("-L/FLETCH_CMSIS")
+ elif "-L/DARTINO_CMSIS" in args:
+ args.remove("-L/DARTINO_CMSIS")
invoke_gcc_arm_embedded(args)
elif "-DGCC_XARM_EMBEDDED" in args:
invoke_gcc_arm_embedded(args)
« no previous file with comments | « tools/create_tarball.py ('k') | tools/dartinoc_blaze.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698