Try building a hello world example

This commit is contained in:
Martin Storsjö authored and Martin Storsjo committed 2016-08-31 12:25:08 +03:00
1 parent c1e32c9587
commit 82ce4550d4
2 files changed
+11

No files matched your search

+4
View File
@@ -234,3 +234,7 @@ ENV ASCPP="gas-preprocessor.pl ${CC}"
ENV CCAS="gas-preprocessor.pl ${CC}"
ENV LDFLAGS="-lmsvcr120_app ${LDFLAGS}"
RUN mkdir -p /build/hello
COPY hello.c /build/hello/
RUN cd /build/hello && armv7-w64-mingw32-clang hello.c -o hello.exe
+7
View File
@@ -0,0 +1,7 @@
#define __USE_MINGW_ANSI_STDIO 1
#include <stdio.h>
int main(int argc, char* argv[]) {
printf("hello world! %f\n", 42.0);
return 0;
}