• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revision60ac4fae6a88ddca1071e13e446763d13db352b8 (tree)
Zeit2022-10-04 06:28:51
AutorSergey Gusarov <laborer2008@gmai...>
CommiterSergey Gusarov

Log Message

Latest bcc can be clang-based so reorder compiler detection

Ändern Zusammenfassung

Diff

diff -r 7237474b51c5 -r 60ac4fae6a88 .hgsubstate
--- a/.hgsubstate Wed Sep 14 05:55:50 2022 +0300
+++ b/.hgsubstate Tue Oct 04 00:28:51 2022 +0300
@@ -1,4 +1,4 @@
1-df6c0ac9eec5ec9305fd9087ed00395d296a9b3d cmake/cmake_tools
1+7964c1aa4ed949b9e73ed2a35f8ed8f4f62bd8d0 cmake/cmake_tools
22 5013d507802becd2c434d4dbdafad45c3da5ef23 include/ctools/std/msinttypes
33 0556a9e3eb8cef3262acbd7be988447b41b14215 pyrepo
44 0b899aec14d3a9abb2bf260ac355f0f28630a6a3 tests/unity
diff -r 7237474b51c5 -r 60ac4fae6a88 include/ctools/predef/compiler.h
--- a/include/ctools/predef/compiler.h Wed Sep 14 05:55:50 2022 +0300
+++ b/include/ctools/predef/compiler.h Tue Oct 04 00:28:51 2022 +0300
@@ -117,9 +117,14 @@
117117 #endif
118118
119119
120-// All gcc-based compilers should be checked before gcc
120+/*
121+ * All gcc-based compilers(mingw, icc, clang) should be checked before gcc.
122+ * And likewise clang-based ones(bcc)
123+ */
121124 #if defined (__MINGW32__)
122125 # define CT_COMPL_MINGW
126+#elif defined (__CODEGEARC__) || defined (__BORLANDC__)
127+# define CT_COMPL_BCC
123128 #elif defined (__clang__)
124129 # define CT_COMPL_CLANG
125130 #elif defined (__INTEL_COMPILER)
@@ -130,8 +135,6 @@
130135
131136 #elif defined (SDCC) || defined (__SDCC)
132137 # define CT_COMPL_SDCC
133-#elif defined (__CODEGEARC__) || defined (__BORLANDC__)
134-# define CT_COMPL_BCC
135138 #elif defined (__GNUC__)
136139 # define CT_COMPL_GCC
137140 #elif defined (_MSC_VER)
Show on old repository browser