Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: ea0856c6750e984cdc3f73e06ba82601bb5f1a87
      
https://github.com/Perl/perl5/commit/ea0856c6750e984cdc3f73e06ba82601bb5f1a87
  Author: Chris 'BinGOs' Williams <ch...@bingosnet.co.uk>
  Date:   2025-04-26 (Sat, 26 Apr 2025)

  Changed paths:
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Base.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Unix.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/VMS.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/aix.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/android.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/cygwin.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/darwin.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/dec_osf.pm
    M dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/os2.pm
    M dist/ExtUtils-CBuilder/t/03-cplusplus.t

  Log Message:
  -----------
  Fix finding the correct cplusplus compiler

ExtUtils::CBuilder was using a slightly maverick method for
finding the matching cplusplus compiler to the c compiler
used to build perl.

On a Linux system with a perl built with the Oracle Developer cc
cc='/opt/oracle/developerstudio12.6/bin/cc'

Errors were observed:
"c++: error: unrecognized command line option ‘-KPIC’; did you mean ‘-fPIC’?"

The cplusplus command for Oracle Developer suite is CC not c++ and the
detection was picking up the system c++ (g++).

If there is a ccpath, the code should exhaust all the options and not fail
through to using no path.

Added a test to exercise ccpath behaviour

Added clang/clang++ to the C->C++ compiler mappings



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to