1 There's no .7zip file for clang and llvm as described, they're all Linux files except for a couple of Windows .exe's, so I downloaded one of those and ran it, it was an installer. Then I had to find where it put clang.exe so I could copy it to my wajic directory.
2 But oddly, the clang in that directory was only about 13KB, but I tried it anyway. I got the error
D:\wajic>node wajicup.js Samples/Basic.c Basic.html
[COMPILE] Compiling file: Samples/Basic.c ...
D:\wajic\clang-19: Invalid argument
[ERROR]
Error while running ./clang. An error should have been printed above.
Compile command:
./clang -cc1 -triple wasm32 -emit-obj -fcolor-diagnostics -I./ -D__WAJIC__ -isystem./system/include/libcxx -isystem./system/lib/libcxx/include -isystem./system/include/compat -isystem./system/include -isystem./system/include/libc -isystem./system/lib/libc/musl/include -isystem./system/lib/libc/musl/arch/emscripten -isystem./system/lib/libc/musl/arch/generic -mconstructor-aliases -fvisibility hidden -fno-threadsafe-statics -fno-common -fgnuc-version=4.2.1 -D__EMSCRIPTEN__ -D_LIBCPP_ABI_VERSION=2 -D_POSIX_C_SOURCE -DNDEBUG -Os -x c -std=c99 -o tmp-wajic-Basic-216715.o Samples/Basic.c
aborting
3 So, I tried replacing it with the clang I have in my emscripten directory structure, which is 85MB, then I got this error:
Okay, this time I followed the instructions correctly (except I had to hunt down where it put the the clang and wasm files instead of just getting a zip), and I still get the "-fvisibility" error.
1 There's no .7zip file for clang and llvm as described, they're all Linux files except for a couple of Windows .exe's, so I downloaded one of those and ran it, it was an installer. Then I had to find where it put clang.exe so I could copy it to my wajic directory. 2 But oddly, the clang in that directory was only about 13KB, but I tried it anyway. I got the error
3 So, I tried replacing it with the clang I have in my emscripten directory structure, which is 85MB, then I got this error:
Then I gave up.
edit: oh, i was looking in the wrong place for clang.exe. nevermind. i'll try now with the right clang.exe.