[PATCH] D117888: [clang][driver][wasm] Support -stdlib=libstdc++ for WebAssembly
cqwrteur via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 4 22:02:39 PST 2022
expnkx reopened this revision.
expnkx added a comment.
This revision is now accepted and ready to land.
This patch is simply wrong.
cqwrteur at Home-Server:~/fast_io_cleanup/fast_io/examples/0001.helloworld$ clang++ -o helloworld helloworld.cc -Ofast -std=c++2b -s -flto -fuse-ld=lld --target=wasm32-wasi --sysroot=$HOME/toolchains/sysroot/wasm32-wasi -fno-exceptions -fno-rtti -fno-unwind-tables -fno-asynchronous-unwind-tables -I../../include -stdlib=libstdc++
In file included from helloworld.cc:1:
In file included from ../../include/fast_io.h:9:
In file included from ../../include/fast_io_hosted.h:17:
In file included from ../../include/fast_io_freestanding.h:12:
In file included from ../../include/fast_io_core.h:11:
In file included from ../../include/fast_io_concept.h:20:
In file included from /home/cqwrteur/toolchains/sysroot/wasm32-wasi/include/c++/12.0.1/concepts:44:
/home/cqwrteur/toolchains/sysroot/wasm32-wasi/include/c++/12.0.1/type_traits:38:10: fatal error: 'bits/c++config.h' file not found
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
It cannot find bits/c++config.h
wasm32-wasi\include\c++\12.0.1\wasm32-wasi\bits
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117888/new/
https://reviews.llvm.org/D117888
More information about the cfe-commits
mailing list