forked from platformio/platformio-core
Solved issues with vim whitespaces in paths (#1873)
When a library has whitespaces in the name the path will contain whitespace too. When vim tries to decode path it will fail. This fix wrap each path with quotes.
This commit is contained in:
1 parent
05fe52bda9
commit
d9dd83e327
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
% for include in includes:
|
||||
-I{{include}}
|
||||
-I"{{include}}"
|
||||
% end
|
||||
% for define in defines:
|
||||
-D{{!define}}
|
||||
% end
|
||||
% end
|
||||
@@ -3,6 +3,6 @@
|
||||
"gccDefaultCFlags": "-fsyntax-only {{! cc_flags.replace(' -MMD ', ' ').replace('"', '\\"') }}",
|
||||
"gccDefaultCppFlags": "-fsyntax-only {{! cxx_flags.replace(' -MMD ', ' ').replace('"', '\\"') }}",
|
||||
"gccErrorLimit": 15,
|
||||
"gccIncludePaths": "{{ ','.join(includes).replace("\\", "/") }}",
|
||||
"gccIncludePaths": "{{! ','.join("'{}'".format(w.replace("\\", '/')) for w in includes)}}",
|
||||
"gccSuppressWarnings": false
|
||||
}
|
||||
Reference in new issue
Block a user