From 1b373d344e5b2afdf565b54a5d0596a3c3d44ca3 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 10 Nov 2025 17:57:54 +0100 Subject: [PATCH] fix: build.options now have the full path to used platforms Previously the path to the folder containing the platforms was used, (for exmaple, `/home/cmaglie/.arduino15/packages` instead of `/home/cmaglie/.arduino15/packages/arduino/hardware/avr/1.8.6`). This kept the build.options unchanged even if a platform was updated, leading to a possible cache-reuse even if a full rebuild is required. --- commands/service_compile.go | 1 - internal/arduino/builder/builder.go | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/service_compile.go b/commands/service_compile.go index 9da7ab82c71..3dc8d46cb51 100644 --- a/commands/service_compile.go +++ b/commands/service_compile.go @@ -264,7 +264,6 @@ func (s *arduinoCoreServerImpl) Compile(req *rpc.CompileRequest, stream rpc.Ardu extraCoreBuildCachePaths, int(req.GetJobs()), req.GetBuildProperties(), - s.settings.HardwareDirectories(), librariesDirs, s.settings.IDEBuiltinLibrariesDir(), fqbn, diff --git a/internal/arduino/builder/builder.go b/internal/arduino/builder/builder.go index 4813e3334c7..1ae31ff31ee 100644 --- a/internal/arduino/builder/builder.go +++ b/internal/arduino/builder/builder.go @@ -123,7 +123,6 @@ func NewBuilder( extraCoreBuildCachePaths paths.PathList, jobs int, customBuildProperties []string, - hardwareDirs paths.PathList, librariesDirs paths.PathList, builtInLibrariesDirs *paths.Path, fqbn *fqbn.FQBN, @@ -225,7 +224,7 @@ func NewBuilder( buildPlatform: buildPlatform, toolEnv: toolEnv, buildOptions: newBuildOptions( - hardwareDirs, + paths.PathList{targetPlatform.InstallDir, buildPlatform.InstallDir}, librariesDirs, builtInLibrariesDirs, buildPath,