diff options
| author | Bernard Xiong <[email protected]> | 2016-04-09 23:10:28 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2016-04-09 23:10:28 +0800 |
| commit | 9c48f9e09cbcc1f1261f6e50c47d12fbdc09cc93 (patch) | |
| tree | 068be9ac7613ff34beaa2f75b6efff2a4ceeda3f | |
| parent | 454591dcfc62eaafcb8ba4e3ce90aa9b714e46e0 (diff) | |
[Tools] Fix the CPP file type in Keil.
| -rw-r--r-- | tools/keil.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/keil.py b/tools/keil.py index 599658d983..07e8254169 100644 --- a/tools/keil.py +++ b/tools/keil.py @@ -34,12 +34,12 @@ from utils import xml_indent fs_encoding = sys.getfilesystemencoding() def _get_filetype(fn): + if fn.rfind('.cpp') != -1 or fn.rfind('.cxx') != -1: + return 8 + if fn.rfind('.c') != -1 or fn.rfind('.C') != -1: return 1 - if fn.rfind('.cpp') != -1 or fn.rfined('.cxx') != -1: - return 8 - # assemble file type if fn.rfind('.s') != -1 or fn.rfind('.S') != -1: return 2 |
