[cmake-developers] [CMake 0015049]: Add detection for Fujitsu compilers

Mantis Bug Tracker mantis at public.kitware.com
Wed Jul 30 16:53:34 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15049 
====================================================================== 
Reported By:                Erik Lindahl
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15049
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-07-30 22:53 CEST
Last Modified:              2014-07-30 22:53 CEST
====================================================================== 
Summary:                    Add detection for Fujitsu compilers
Description: 
Fujitsu users their own compilers (based on an old version of Clang) on K. By
default the CMake compiler IDs are set to Unknown, but when using the GNU
compatibility flags the Fujitsu compiler adds the _GNUC_ define (bad), although
it is not really 100% compatible with GCC-4.1.2.

To work around this we manually set the compiler IDs to "Fujitsu", but it is
probably a good idea to have this in the default distribution too, which the two
attached patches accomplish (tested).

Unfortunately the version cannot be extracted from the source level. If you want
that, it can be detected from the output with the -V flag. Examples:

klogin9$ fccpx -V
fccpx: Fujitsu C/C++ Compiler Driver Version 1.2.0 P-id: L30000-07 (Jul 30 2013
08:58:18) K-1.2.0-15

klogin9$ FCCpx -V
FCCpx: Fujitsu C/C++ Compiler Driver Version 1.2.0 P-id: L30000-07 (Jul 30 2013
08:58:18) K-1.2.0-15

klogin9$ frtpx -V
frtpx: Fujitsu Fortran Driver Version 1.2.0 P-id: L30000-07 (Jul 30 2013
08:57:22) K-1.2.0-15

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-07-30 22:53 Erik Lindahl   New Issue                                    
2014-07-30 22:53 Erik Lindahl   File Added: Fujitsu.patch                    
======================================================================



More information about the cmake-developers mailing list