Adds linking of wasm object files to the compiler and linker, very simply looks at the file extension being .o, I am open for better ideas but we already have a bunch of file extension checks so it should fit the codebase
Makes the core:os package work much better on wasi, previously it would take file descriptor number 3 and use that as the relative base for every os.open, this only works (and only with relative paths) if the environment makes number 3 the current directory. Now we use the preopen functionality correctly by retrieving them all to check paths given to os.open against
Adds a separate compilation of a wasm object file to vendor:stb/truetype and redefines the stdlib symbols it would normally use to Odin's definitions
I found a bug #3856 which makes the fmod definition not work, I added a panic for now, which in my use-case wasn't hit because this is only used in a single exported function.
.o
, I am open for better ideas but we already have a bunch of file extension checks so it should fit the codebasecore:os
package work much better onwasi
, previously it would take file descriptor number 3 and use that as the relative base for everyos.open
, this only works (and only with relative paths) if the environment makes number 3 the current directory. Now we use the preopen functionality correctly by retrieving them all to check paths given toos.open
againstvendor:stb/truetype
and redefines the stdlib symbols it would normally use to Odin's definitionsI found a bug #3856 which makes the
fmod
definition not work, I added a panic for now, which in my use-case wasn't hit because this is only used in a single exported function.