Skip to content

Commit 159ee45

Browse files
authored
Merge pull request #11225 from kjbracey-arm/µvision528c++14
µVision export: Handle more C++ language standards
2 parents 8ef742a + c3a71eb commit 159ee45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/export/uvision/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ def generate(self):
309309
std = None
310310
cpp_std = {
311311
'c++98': 1, 'gnu++98': 2,
312-
'c++03': 5, 'gnu++03': 2, # UVision 5.27.1.0 does not support gnu++03 - fall back to gnu++98
312+
'c++03': 5, 'gnu++03': 2, # UVision 5.28 does not support gnu++03 - fall back to gnu++98
313313
'c++11': 3, 'gnu++11': 4,
314-
'c++14': 6, 'gnu++14': 4, # UVision 5.27.1.0 does not support gnu++14 - should be able to get it as compiler default, but that doesn't work as documented and requests gnu++98. So fall back to gnu++11
315-
'c++17': 6, 'gnu++17': 4, # UVision 5.27.1.0 does not support c++17/gnu++17 - fall back to c++14/gnu++11
314+
'c++14': 6, 'gnu++14': 7, # UVision 5.28 or later is required for gnu++14, c++14 or gnu++17
315+
'c++17': 8, 'gnu++17': 9,
316316
}
317317
ctx['v6_lang_p'] = cpp_std.get(std, 0)
318318

0 commit comments

Comments
 (0)