Skip to content

Commit 122e247

Browse files
committed
Use underscore in the object filename in case of cores like arduino:arduino
1 parent c924d81 commit 122e247

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Symfony/src/Codebender/CompilerBundle/Handler/CompilerHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,8 @@ private function doCompile($compiler_config, &$files, $dir, $CC, $CFLAGS, $CPP,
597597
foreach ($files[$ext] as $file)
598598
{
599599
if($caching){
600+
$name_params['core'] = str_replace(":", "_", $name_params['core']);
601+
$name_params['variant'] = str_replace(":", "_", $name_params['variant']);
600602
$object_filename = "$this->object_directory/${name_params['mcu']}_${name_params['f_cpu']}_${name_params['core']}_${name_params['variant']}_${name_params['vid']}_${name_params['pid']}______${name_params['library']}_______".((pathinfo(pathinfo($file, PATHINFO_DIRNAME), PATHINFO_FILENAME) == "utility") ? "utility_______" : "") .pathinfo($file, PATHINFO_FILENAME);
601603
$object_file = $object_filename;
602604
//Lock the file so that only one compiler instance (thread) will compile every library object file

0 commit comments

Comments
 (0)