viktor,

i believe the following is better at identifying the actual llvm 
frontend used:

tinky:~/w/xhb/hbci/harbour-build$ ../inst/linux/llvm/c/bin/harbour -build 2>&1 
| fgrep Compiler
Compiler: LLVM/GNU C 4.2.1 (64-bit)
tinky:~/w/xhb/hbci/harbour-build$ ../inst/linux/llvm/cpp/bin/harbour -build 
2>&1 | fgrep Compiler
Compiler: LLVM/GNU C++ 4.2.1 (64-bit)

without this, llvm/gcc gets identified as gcc.

i don't have clang, but if that doesn't break for you, could you 
please apply this?

thanks,

Index: src/common/hbver.c
===================================================================
--- src/common/hbver.c  (revision 12965)
+++ src/common/hbver.c  (working copy)
@@ -623,11 +623,11 @@
       pszName = "EMX/RSXNT/Win32 GNU C";
    #elif defined( __EMX__ )
       pszName = "EMX GNU C";
-   #elif defined( __clang__ )
-      #if defined( __llvm__ )
-         pszName = "Clang/LLVM C";
+   #elif defined( __llvm__ )
+      #if defined( __clang__ )
+         pszName = "LLVM/Clang  C";
       #else
-         pszName = "Clang/GNU C";
+         pszName = "LLVM/GNU C";
       #endif
    #else
       pszName = "GNU C";


-- 
[-]

mkdir /nonexistent
Index: src/common/hbver.c
===================================================================
--- src/common/hbver.c	(revision 12965)
+++ src/common/hbver.c	(working copy)
@@ -623,11 +623,11 @@
       pszName = "EMX/RSXNT/Win32 GNU C";
    #elif defined( __EMX__ )
       pszName = "EMX GNU C";
-   #elif defined( __clang__ )
-      #if defined( __llvm__ )
-         pszName = "Clang/LLVM C";
+   #elif defined( __llvm__ )
+      #if defined( __clang__ )
+         pszName = "LLVM/Clang  C";
       #else
-         pszName = "Clang/GNU C";
+         pszName = "LLVM/GNU C";
       #endif
    #else
       pszName = "GNU C";
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to