Compiling something simple like:
#include <iostream>
int main(int argc, char** argv) {
std::cout << "test" << std::endl;
}
Using: emcc test.cpp --llvm-lto 3 -s USE_PTHREADS -s FETCH=1 -o test.html Will result in the error
shared:ERROR: failed to find function _pthread_mutexattr_init!
This worked in 1.38.27. Compiling with -s WASM=0 doesn't change the error.
--llvm-lto 2 works for the above example, but the actual code I'm working on requires --llvm-lto 0 to compile.
Compiling something simple like:
Using:
emcc test.cpp --llvm-lto 3 -s USE_PTHREADS -s FETCH=1 -o test.htmlWill result in the errorshared:ERROR: failed to find function _pthread_mutexattr_init!This worked in 1.38.27. Compiling with
-s WASM=0doesn't change the error.--llvm-lto 2works for the above example, but the actual code I'm working on requires--llvm-lto 0to compile.