From 726f2ba9317673e323e25ec7cf9545432f496474 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 13 May 2014 16:30:18 +0200 Subject: [PATCH] Unescape special characters in dependency files When a path contains spaces (or other special characters, probably), gcc escapes them with a \ in the generated .d files. This previously caused problems when parsing these files, causing recompiles to happen even when not needed. This applies a rather simple approach to unescaping these strings, which seems to be sufficient because the file format of the .d files is so predictable (e.g., we don't actually split on colons or spaces when parsing it). --- app/src/processing/app/debug/Compiler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/processing/app/debug/Compiler.java b/app/src/processing/app/debug/Compiler.java index 92f25a1c556..77b362fe03d 100644 --- a/app/src/processing/app/debug/Compiler.java +++ b/app/src/processing/app/debug/Compiler.java @@ -297,6 +297,9 @@ private boolean isAlreadyCompiled(File src, File obj, File dep, Map