Fix resource depfile generation

I got the escaping wrong so on windows, where the path to the script has characters that need to be escaped, the script wouldn't be found, leaving all dependents stale, triggering rebuilds of all resources.
This commit is contained in:
Tamás Bálint Misius 2024-08-07 10:56:56 +02:00
parent 281dbfa283
commit 2d03fb4b56
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -34,8 +34,8 @@ extern const unsigned int {symbol_name}_size;
def dep_escape(s):
t = ''
for c in s:
if c in [ ' ', '\n', '\\', ':', '$' ]:
t += '$'
if c in [ ' ', '\\', ':', '$' ]:
t += '\\'
t += c
return t