diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | code/build.cpp | 15 |
2 files changed, 9 insertions, 8 deletions
@@ -4,7 +4,7 @@ `Wordled` is a GUI application that lets you draw patterns such that you can later input them in the [Wordle](https://www.nytimes.com/games/wordle/index.html) game. It will then generate the guesses to achieve the required pattern. ## Showcase -<video autoplay loop muted src="https://git.spacehb.net/wordled/plain/showcase.mp4?h=main"></video> +<video autoplay loop muted src="/wordled/plain/showcase.mp4?h=main"></video> ## Run Both following build steps will output executable programs in the `build` directory. Do note that diff --git a/code/build.cpp b/code/build.cpp index ffd0668..394b611 100644 --- a/code/build.cpp +++ b/code/build.cpp @@ -1,6 +1,6 @@ #include "libs/build.h" -void Build(char *Name, str8 Flags) +void Build(char *Env[], char *Name, str8 Flags) { printf("%s\n", Name); @@ -23,15 +23,16 @@ int main(int ArgsCount, char *Args[], char *Env[]) LinuxChangeToExecutableDirectory(Args); LinuxRebuildSelf(ArgsCount, Args, Env); - Build("[linux handmade compile]", S8Lit("-DHANDMADE_INTERNAL=1 -DHANDMADE_SLOW=1 -DHANDMADE_SMALL_RESOLUTION=1 " - "-lX11 -lXfixes -lasound " - "-o linux_handmade " - "../code/libs/hm_linux/linux_handmade.cpp")); + Build(Env, "[linux handmade compile]", + S8Lit("-DHANDMADE_INTERNAL=1 -DHANDMADE_SLOW=1 -DHANDMADE_SMALL_RESOLUTION=1 " + "-lX11 -lXfixes -lasound " + "-o linux_handmade " + "../code/libs/hm_linux/linux_handmade.cpp")); - Build("[handmade compile]", + Build(Env, "[handmade compile]", S8Lit("-shared -fPIC " "-DHANDMADE_INTERNAL=1 -DHANDMADE_SLOW=1" - "-Wno-conversion " + "-Wno-implicit-int-float-conversion -Wno-float-conversion -Wno-implicit-float-conversion -Wno-shorten-64-to-32 " "-o handmade.so " "../code/handmade.cpp")); |
