Yuri via llvm-dev
2019-Feb-22 22:05 UTC
[llvm-dev] How to build LLVM such that `llvm::Module::dump() const' is preserved?
The FreeBSD port for the Intel's ISPC compiler fails to build because it can't find this symbol: |llvmutil.cpp:(.text+0x3d60): undefined reference to `llvm::Value::dump() const' How to build LLVM to preserve these symbols? I suspect there is a cmake switch for this? Thank you, Yuri | -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190222/50cfa57e/attachment.html>
Krzysztof Parzyszek via llvm-dev
2019-Feb-22 23:02 UTC
[llvm-dev] How to build LLVM such that `llvm::Module::dump() const' is preserved?
On 2/22/2019 4:05 PM, Yuri via llvm-dev wrote:> The FreeBSD port for the Intel's ISPC compiler fails to build because it > can't find this symbol: > > |llvmutil.cpp:(.text+0x3d60): undefined reference to > `llvm::Value::dump() const' How to build LLVM to preserve these symbols? > I suspect there is a cmake switch for this? Thank you, Yuri | >Use -DLLVM_ENABLE_ASSERTIONS=ON, or -DLLVM_ENABLE_DUMP=ON with cmake. -Krzysztof
Chris Lattner via llvm-dev
2019-Feb-24 02:42 UTC
[llvm-dev] How to build LLVM such that `llvm::Module::dump() const' is preserved?
> On Feb 22, 2019, at 3:02 PM, Krzysztof Parzyszek via llvm-dev <llvm-dev at lists.llvm.org> wrote: > On 2/22/2019 4:05 PM, Yuri via llvm-dev wrote: >> The FreeBSD port for the Intel's ISPC compiler fails to build because it can't find this symbol: >> |llvmutil.cpp:(.text+0x3d60): undefined reference to `llvm::Value::dump() const' How to build LLVM to preserve these symbols? I suspect there is a cmake switch for this? Thank you, Yuri | > > Use -DLLVM_ENABLE_ASSERTIONS=ON, or -DLLVM_ENABLE_DUMP=ON with cmake.Random question: how much code size do these #ifdefs actually save in non-assert builds? Is this still worth it at all? I suspect the time is long past that this makes sense. -Chris
Gleb Popov via llvm-dev
2019-Feb-24 06:18 UTC
[llvm-dev] How to build LLVM such that `llvm::Module::dump() const' is preserved?
On Sat, Feb 23, 2019, 02:05 Yuri via llvm-dev <llvm-dev at lists.llvm.org> wrote:> The FreeBSD port for the Intel's ISPC compiler fails to build because it > can't find this symbol: > > llvmutil.cpp:(.text+0x3d60): undefined reference to `llvm::Value::dump() const' > > This is because devel/llvm* ports turned off assertions. I hope thischange won't be reverted due to this problem.> > > How to build LLVM to preserve these symbols? I suspect there is a cmake switch for this? > > > Thank you, > Yuri > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190224/8ae295a0/attachment.html>