MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / prepare_build

Method prepare_build

tools/sconsui.py:376–397  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

374 row = row + 1
375
376 def prepare_build(self):
377 # get compiler
378 compiler = self.compilers.get()
379 if compiler == 'GCC':
380 compiler = 'gcc'
381 elif compiler == 'ARMCC':
382 compiler = 'keil'
383 elif compiler == 'IAR':
384 compiler = 'iar'
385
386 # get RTT Root
387 rtt_root = self.RTTRoot.get_path()
388 # get Compiler path
389 exec_path = self.CompilersPath[self.compilers.get()].get_path()
390
391 command = ''
392
393 os.environ['RTT_ROOT'] = rtt_root
394 os.environ['RTT_CC'] = compiler
395 os.environ['RTT_EXEC_PATH'] = exec_path
396
397 return command
398
399 def check_path(self):
400 result = True

Callers 3

do_buildMethod · 0.95
do_cleanMethod · 0.95
do_make_projectMethod · 0.95

Calls 2

get_pathMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected