Re: [Harbour] llvm ident fixup

2009-11-22 Thread Tamas TEVESZ
On Sun, 22 Nov 2009, Viktor Szakáts wrote:

hi,

 > I'll commit something pretty soon, pls 
 > take a look at it.

it gives the expected results with llvm/g{cc,++}, thanks.

-- 
[-]

mkdir /nonexistent
___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


Re: [Harbour] llvm ident fixup

2009-11-21 Thread Viktor Szakáts
Hi Tamas,

OIndex: 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";

Seems good to me, but we should also 
add non-LLVM Clang frontend to the mix.
(this still exists f.e. for C++ code)

I'll commit something pretty soon, pls 
take a look at it.

Brgds,
Viktor

___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


[Harbour] llvm ident fixup

2009-11-21 Thread Tamas TEVESZ

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 /nonexistentIndex: 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)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour