diff --git a/platformio/ide/tpls/qtcreator/platformio.pro.tpl b/platformio/ide/tpls/qtcreator/platformio.pro.tpl index 1c1a1adf..89774699 100644 --- a/platformio/ide/tpls/qtcreator/platformio.pro.tpl +++ b/platformio/ide/tpls/qtcreator/platformio.pro.tpl @@ -1,3 +1,13 @@ +% import re +% +% cpp_standards_remap = { +% "0x": "11", +% "1y": "14", +% "1z": "17", +% "2a": "20", +% "2b": "23" +% } + win32 { HOMEDIR += $$(USERPROFILE) } @@ -27,3 +37,9 @@ HEADERS += {{file}} SOURCES += {{file}} % end % end + +% STD_RE = re.compile(r"\-std=[a-z\+]+(\w+)") +% cxx_stds = STD_RE.findall(cxx_flags) +% if cxx_stds: +CONFIG += c++{{ cpp_standards_remap.get(cxx_stds[-1], cxx_stds[-1]) }} +% end