| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5436569 commit 9915774
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -750,6 +750,9 @@ def check_compiler(o): | |||
| 750 | 750 | return | |
| 751 | 751 | ||
| 752 | 752 | ok, is_clang, clang_version, gcc_version = try_check_compiler(CXX, 'c++') | |
| 753 | + version_str = ".".join(map(str, clang_version if is_clang else gcc_version)) | ||
| 754 | + print_verbose('Detected %sC++ compiler (CXX=%s) version: %s' % | ||
| 755 | + ('clang ' if is_clang else '', CXX, version_str)) | ||
| 753 | 756 | if not ok: | |
| 754 | 757 | warn('failed to autodetect C++ compiler version (CXX=%s)' % CXX) | |
| 755 | 758 | elif sys.platform.startswith('aix') and gcc_version < (6, 3, 0): | |
@@ -758,6 +761,9 @@ def check_compiler(o): | |||
| 758 | 761 | warn('C++ compiler too old, need g++ 4.9.4 or clang++ 3.4.2 (CXX=%s)' % CXX) | |
| 759 | 762 | ||
| 760 | 763 | ok, is_clang, clang_version, gcc_version = try_check_compiler(CC, 'c') | |
| 764 | + version_str = ".".join(map(str, clang_version if is_clang else gcc_version)) | ||
| 765 | + print_verbose('Detected %sC compiler (CC=%s) version: %s' % | ||
| 766 | + ('clang ' if is_clang else '', CC, version_str)) | ||
| 761 | 767 | if not ok: | |
| 762 | 768 | warn('failed to autodetect C compiler version (CC=%s)' % CC) | |
| 763 | 769 | elif not is_clang and gcc_version < (4, 2, 0): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments