32
32
def compile (tmp_dir , sketch , cache , tools_dir , hardware_dir , ide_path , f , args ):
33
33
cmd = ide_path + '/arduino-builder '
34
34
cmd += '-compile -logger=human '
35
- cmd += '-build-path " ' + tmp_dir + '" '
36
- cmd += '-tools " ' + ide_path + '/tools-builder" '
35
+ cmd += '-build-path ' + tmp_dir + ' '
36
+ cmd += '-tools ' + ide_path + '/tools-builder '
37
37
if cache != "" :
38
- cmd += '-build-cache " ' + cache + '" '
38
+ cmd += '-build-cache ' + cache + ' '
39
39
if args .library_path :
40
40
for lib_dir in args .library_path :
41
- cmd += '-libraries " ' + lib_dir + '" '
42
- cmd += '-hardware " ' + ide_path + '/hardware" '
41
+ cmd += '-libraries ' + lib_dir + ' '
42
+ cmd += '-hardware ' + ide_path + '/hardware '
43
43
if args .hardware_dir :
44
44
for hw_dir in args .hardware_dir :
45
- cmd += '-hardware " ' + hw_dir + '" '
45
+ cmd += '-hardware ' + hw_dir + ' '
46
46
else :
47
- cmd += '-hardware " ' + hardware_dir + '" '
47
+ cmd += '-hardware ' + hardware_dir + ' '
48
48
# Debug=Serial,DebugLevel=Core____
49
49
cmd += '-fqbn=esp8266com:esp8266:{board_name}:' \
50
50
'xtal={cpu_freq},' \
@@ -57,16 +57,16 @@ def compile(tmp_dir, sketch, cache, tools_dir, hardware_dir, ide_path, f, args):
57
57
if args .debug_port and args .debug_level :
58
58
cmd += 'dbg={debug_port},lvl={debug_level}' .format (** vars (args ))
59
59
cmd += ' '
60
- cmd += '-built-in-libraries " ' + ide_path + '/libraries" '
60
+ cmd += '-built-in-libraries ' + ide_path + '/libraries '
61
61
cmd += '-ide-version=10607 '
62
62
cmd += '-warnings={warnings} ' .format (** vars (args ))
63
63
if args .verbose :
64
64
cmd += '-verbose '
65
65
cmd += sketch
66
66
67
- # Try removing quotes to make arduino-cli sork
68
- if platform .system () == "Windows" :
69
- cmd = cmd .replace ('/' , '\\ ' )
67
+ # Try removing quotes to make arduino-cli work
68
+ # if platform.system() == "Windows":
69
+ # cmd = cmd.replace('/', '\\')
70
70
71
71
if args .verbose :
72
72
print ('Building: ' + cmd , file = f )
0 commit comments