forked from platformio/platformio-core
Fix issue with quotes in CPPDEFINES when dumping data for IDE
This commit is contained in:
@ -10,7 +10,6 @@ board = uno
|
||||
platform = espressif
|
||||
framework = arduino
|
||||
board = nodemcu
|
||||
build_flags = -D LED_BUILTIN=BUILTIN_LED
|
||||
|
||||
[env:teensy31]
|
||||
platform = teensy
|
||||
|
@ -228,6 +228,7 @@ def DumpIDEData(env):
|
||||
# https://github.com/platformio/platformio-atom-ide/issues/34
|
||||
_new_defines = []
|
||||
for item in env_.get("CPPDEFINES", []):
|
||||
item = item.replace('\\"', '"')
|
||||
if " " in item:
|
||||
_new_defines.append(item.replace(" ", "\\\\ "))
|
||||
else:
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"execPath": "{{ cxx_path.replace("\\", "/") }}",
|
||||
"gccDefaultCFlags": "-fsyntax-only {{! cc_flags.replace(' -MMD ', ' ').replace('"', '\"') }}",
|
||||
"gccDefaultCppFlags": "-fsyntax-only {{! cxx_flags.replace(' -MMD ', ' ').replace('"', '\"') }}",
|
||||
"gccDefaultCFlags": "-fsyntax-only {{! cc_flags.replace(' -MMD ', ' ').replace('"', '\\"') }}",
|
||||
"gccDefaultCppFlags": "-fsyntax-only {{! cxx_flags.replace(' -MMD ', ' ').replace('"', '\\"') }}",
|
||||
"gccErrorLimit": 15,
|
||||
"gccIncludePaths": "{{ ','.join(includes).replace("\\", "/") }}",
|
||||
"gccSuppressWarnings": false
|
||||
|
Reference in New Issue
Block a user