mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Build a Wasm libc.a from test_gen/build.rs
This commit is contained in:
parent
53d221481e
commit
aefc6e76a4
2 changed files with 53 additions and 5 deletions
8
compiler/test_gen/src/helpers/dummy_libc_program.c
Normal file
8
compiler/test_gen/src/helpers/dummy_libc_program.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include <stdio.h>
|
||||
|
||||
void main() {
|
||||
printf("Hello, I am a C program and I use libc.\n");
|
||||
printf("Would you like to use libc too, but just can't find the right path?\n");
|
||||
printf("Well, simply compile me from build.rs using Zig's --global-cache-dir,\n");
|
||||
printf("and have libc.a delivered right to your build directory!\n");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue