Open SetLinux opened 4 years ago
I think you'll have to try it and find out. I'm not sure if anybody has attempted it before.
it will be really cool if it would cause harfbuzz compiles to wasm so then this would be a perfect combintation
I just tried and getting errors I don't understand. (It is being included through raqote )
Environment: Ubuntu on WSL 2. RustUp, CLang-9
Run Build Command:"/usr/bin/make" "cmTC_c85a3/fast" /usr/bin/make -f CMakeFiles/cmTC_c85a3.dir/build.make CMakeFiles/cmTC_c85a3.dir/build make[1]: Entering directory '/home/dev/projects/rust-canvas/target/wasm32-unknown-unknown/debug/build/servo-freetype-sys-92f346965c55efeb/out/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c85a3.dir/testCCompiler.c.o /usr/local/clang_9.0.0/bin/clang -ffunction-sections -fdata-sections -fPIC --target=wasm32-unknown-unknown -o CMakeFiles/cmTC_c85a3.dir/testCCompiler.c.o -c /home/dev/projects/rust-canvas/target/wasm32-unknown-unknown/debug/build/servo-freetype-sys-92f346965c55efeb/out/build/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTC_c85a3 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c85a3.dir/link.txt --verbose=1 /usr/local/clang_9.0.0/bin/clang -ffunction-sections -fdata-sections -fPIC --target=wasm32-unknown-unknown -rdynamic CMakeFiles/cmTC_c85a3.dir/testCCompiler.c.o -o cmTC_c85a3 clang-9: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument] wasm-ld: error: cannot open crt1.o: No such file or directory wasm-ld: error: unable to find library -lc clang-9: error: linker command failed with exit code 1 (use -v to see invocation) CMakeFiles/cmTC_c85a3.dir/build.make:97: recipe for target 'cmTC_c85a3' failed make[1]: [cmTC_c85a3] Error 1 make[1]: Leaving directory '/home/dev/projects/rust-canvas/target/wasm32-unknown-unknown/debug/build/servo-freetype-sys-92f346965c55efeb/out/build/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_c85a3/fast' failed make: [cmTC_c85a3/fast] Error 2
Thoughts ?
Sorry, the current maintainers of the library will not be able to provide any support.
does this support compiling to wasm32 ?