Branch: refs/heads/smoke-me/tonyc/cpp-header-porting
  Home:   https://github.com/Perl/perl5
  Commit: ac01d5389adafc80f4c7209453919fd155aead76
      
https://github.com/Perl/perl5/commit/ac01d5389adafc80f4c7209453919fd155aead76
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-05-20 (Mon, 20 May 2024)

  Changed paths:
    M hints/cygwin.sh

  Log Message:
  -----------
  hints/cygwin.sh: don't touch system symbol __STRICT_ANSI__

Adding _GNU_SOURCE, which was done much later, should give us the
GNU-ish symbols (though POSIX_C_SOURCE would be more general.)

I couldn't find the reason for this being added, but the C++
headers react badly to it:

In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:38,
                 from source.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/c++config.h:573:2:
 warning: #warning "__STRICT_ANSI__ seems to have been undefined; this is not 
supported" [-Wcpp]
  573 | #warning "__STRICT_ANSI__ seems to have been undefined; this is not 
supported"
      |  ^~~~~~~
In file included from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/max_size_type.h:37,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/ranges_base.h:38,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/string_view:48,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/basic_string.h:48,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/string:55,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/locale_classes.h:40,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/ios_base.h:41,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ios:42,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ostream:38,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:39,
                 from source.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/numbers:139:9: error: unable to 
find numeric literal operator 'operator""Q'
  139 |       = 2.718281828459045235360287471352662498Q;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...


  Commit: 379de51ef89f42e368fc04db5a27d4e27aac0ac7
      
https://github.com/Perl/perl5/commit/379de51ef89f42e368fc04db5a27d4e27aac0ac7
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-05-20 (Mon, 20 May 2024)

  Changed paths:
    M MANIFEST
    A t/porting/cpphdrcheck.t

  Log Message:
  -----------
  porting/cpphdrcheck.t: test perl's headers with C++ compilers

t/porting/cpphdrcheck.t: fix finding config.h on windows

t/porting/cpphdrcheck.t: actually use ccflags

improve error reporting

t/porting/cpphdrcheck.t: improve error reporting

and make not finding a C++ compiler fail for now, to make it easier
to see the cases where we don't find one but expected to find one.

cpphdrcheck.t: capture -V output, and fix Intel compiler match

cpphdrcheck: test without -std too

cpphdrcheck: test even without -std found

cpphdrcheck: handle cc with arguments

also, do the test builds with ccflags, since I had some strange
results from the test builds, the test code would build without
ccflags, but not with, with errors deep within the system headers.

cpphdrcheck: support cc already being a C++ compiler

requires that the name contains "++"


  Commit: 0ada1362ce407acc883357cdfe5e2899d6c7a0cc
      
https://github.com/Perl/perl5/commit/0ada1362ce407acc883357cdfe5e2899d6c7a0cc
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-05-20 (Mon, 20 May 2024)

  Changed paths:
    M t/porting/cpphdrcheck.t

  Log Message:
  -----------
  cpphdrcheck: move reporting out of the probe functions

also remove fatality for not finding the C++ compiler


Compare: https://github.com/Perl/perl5/compare/e8501fbdc9d7...0ada1362ce40

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

Reply via email to