简体   繁体   English

CPAN 模块的 Perl archname

[英]Perl archname for CPAN modules

Consider this CPAN Tester Matrix Report for OSX.考虑这个 OSX 的CPAN 测试器矩阵报告

Sometimes archname is darwin-2level ,sometimes its darwin-thread-multi-2level .有时archnamedarwin-2level ,有时是darwin-thread-multi-2level I understand that it refers to if you are using Perl compiled with -Dusethreads flag or not.我知道它指的是您是否使用带有-Dusethreads标志编译的 Perl。

1) But does that also signify that given module such as XML::LibXML or XML::LibXSLT is also compiled using/not using thread flag ? 1) 但这是否也意味着给定的模块(例如XML::LibXMLXML::LibXSLT也使用/不使用线程标志进行编译?

2) Are there any such settings by which we can compile XML::LibXML and XML::LibXSLT with thread flags ? 2) 是否有任何此类设置可以让我们使用线程标志编译XML::LibXMLXML::LibXSLT

3) Does the archname in the above report mandate that it will only work with Perl that is compiled without -Dusethreads flag ? 3) 上面报告中的archname是否要求它只能与没有-Dusethreads标志编译的 Perl -Dusethreads

When you install a module the same compiler flags are used for compiling the module that the flags used for compiling perl.当您安装模块时,编译器标志用于编译模块,标志用于编译 perl。 Unless the module author decided otherwise in the Makefile.PL / Build.PL of the distribution.除非模块笔者在另有决定Makefile.PL / Build.PL分布。

Using different usethreads for a module than from the perl in which it will run would be dangerous (if even possible).对一个模块使用不同于运行它的 perl 的usethreads会很危险(如果可能的话)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM