File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,12 @@ def arduino_library_src_dirs(aux_libraries)
317317 # Pull in all possible places that headers could live, according to the spec:
318318 # https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification
319319
320- aux_libraries . map { |d | self . class . new ( @arduino_lib_dir + d , @arduino_lib_dir , @exclude_dirs ) . header_dirs } . flatten . uniq
320+ aux_libraries . map do |d |
321+ # library manager coerces spaces in package names to underscores
322+ # see https://github.com/ianfixes/arduino_ci/issues/132#issuecomment-518857059
323+ legal_dir = d . tr ( " " , "_" )
324+ self . class . new ( @arduino_lib_dir + legal_dir , @arduino_lib_dir , @exclude_dirs ) . header_dirs
325+ end . flatten . uniq
321326 end
322327
323328 # GCC command line arguments for including aux libraries
You can’t perform that action at this time.
0 commit comments