Skip to content

Commit 509e002

Browse files
committed
win32: rudimentary build script for cross compiling
1 parent e198be1 commit 509e002

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

release-win32.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mkdir -p bin/
2+
i686-w64-mingw32.static-gcc -o bin/z64yartool.exe -Os -s -flto -DNDEBUG -Wall -Wextra -Wno-unused-function -lm -std=c99 -pedantic -Iinclude src/*.c
3+

src/z64yartool.c

+4
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ static int YarDump(const char *input)
139139

140140
RecipePrint(recipe);
141141

142+
#ifdef _WIN32
143+
mkdir(recipe->imageDir);
144+
#else
142145
mkdir(recipe->imageDir, 0777);
146+
#endif
143147
yarEntry = yar->head;
144148
for (struct RecipeItem *this = recipe->head
145149
; this && yarEntry

0 commit comments

Comments
 (0)