如何使用clang / LLVM编译Botan库进行Web组装

时间:2018-10-04 12:23:23

标签: botan

如何使用clang / LLVM正确配置和编译botan库以进行Web组装。即我想做我可以为openssl做的同样的事情,但是要用植物学 Linking OpenSSL with webassembly

使用

./configure.py --minimized-build --cc=clang --os=llvm --cpu=llvm

emmake make 

不起作用

In file included from src/lib/base/scan_name.cpp:8:
    In file included from build/include/botan/scan_name.h:11:
    In file included from build/include/botan/types.h:15:
    /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/cstddef:50:10: fatal error: 'stddef.h' file not found
    #include <stddef.h>
             ^~~~~~~~~~
    1 error generated.
    Makefile:86: recipe for target 'build/obj/lib/base_scan_name.bc' failed

我在randombit网站上找不到任何示例。

我也尝试过使用

--includedir

因为我试图从emscripten存储库中指向stddef.h,但效果不佳。

尽管已被明确告知要查找clang,但似乎正在寻找gcc编译器

0 个答案:

没有答案