diff options
| author | Alejandro Sior <aho@sior.be> | 2022-08-03 16:10:58 +0200 |
|---|---|---|
| committer | Alejandro Sior <aho@sior.be> | 2022-08-03 16:10:58 +0200 |
| commit | 938de3acc4a0972cff01d12a9549222c23c1a656 (patch) | |
| tree | 28aa4d31cea245873f94f61b72d788873c8aaeea /test | |
| parent | 65f13dba60cab28c5b6cae2d72b792ade51c86c8 (diff) | |
cook: add C compiler, manage header dependencies
Diffstat (limited to 'test')
| -rw-r--r-- | test/.build | 2 | ||||
| -rw-r--r-- | test/hai.h | 3 | ||||
| -rw-r--r-- | test/main.c | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/test/.build b/test/.build index 74fa78d..06f704a 100644 --- a/test/.build +++ b/test/.build @@ -1,4 +1,2 @@ -linker_sc = CWD / "linker.sc" - obj = cc("main.c", "test.S") aout = ld("a.out", obj)
\ No newline at end of file diff --git a/test/hai.h b/test/hai.h new file mode 100644 index 0000000..12e75bc --- /dev/null +++ b/test/hai.h @@ -0,0 +1,3 @@ +int varchanged = 4; + +// header changed!
\ No newline at end of file diff --git a/test/main.c b/test/main.c index 9298b76..fd0dc26 100644 --- a/test/main.c +++ b/test/main.c @@ -1,9 +1,10 @@ #include <stdio.h> +#include "hai.h" + int test(); int main() { - printf("test returned: %d\n", test()); return 0; }
\ No newline at end of file |
