什么是“共享”?是在〜/ .cabal / config中表示什么? [英] What does "shared" mean in ~/.cabal/config?
本文介绍了什么是“共享”?是在〜/ .cabal / config中表示什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想共享将使 cabal安装
更快,对吗? shared的默认值为False。
I guess that "shared" will make cabal install
faster, right ? The default value of shared is False. Should we use True or False for shared ?
谢谢!
推荐答案
这意味着还可以构建通过 cabal install
安装的库的动态链接(aka共享)版本。
It means "also build dynamically-linked (aka shared) versions of libraries that are installed with cabal install
".
$ cabal help install | grep shared
--enable-shared Enable Shared library
--disable-shared Disable Shared library
默认情况下,仅构建静态链接版本。因此,这不会使 cabal安装libfoo
更快-相反,构建 libfoo
会花费更多时间。
By default, only statically-linked versions are built. So it won't make cabal install libfoo
faster - on the contrary, building libfoo
will take more time.
这篇关于什么是“共享”?是在〜/ .cabal / config中表示什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文