Lines Matching refs:TOOLCHAIN
47 TOOLCHAIN = None
49 def ToolPath(tool, toolchain=None):
51 if not toolchain:
52 toolchain = FindToolchain()
53 return glob.glob(os.path.join(toolchain, "*-" + tool))[0]
56 """Returns the toolchain matching ARCH. Assumes that you're lunched
57 such that the necessary toolchain is either your primary or secondary.
61 global TOOLCHAIN
62 if TOOLCHAIN is not None:
63 return TOOLCHAIN
65 # We use slightly different names from GCC, and there's only one toolchain
79 toolchain = tc1
81 toolchain = tc2
85 if not os.path.exists(ToolPath("addr2line", toolchain)):
86 raise Exception("No addr2line for %s" % (toolchain))
88 TOOLCHAIN = toolchain
89 print "Using toolchain from: %s" % TOOLCHAIN
90 return TOOLCHAIN