diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-17 12:09:55 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-17 12:10:35 +0200 |
| commit | 7d54f3115d5acd58352a095206869d7b7d908d5f (patch) | |
| tree | 66b43cedbfb0a322d99c96568490c5b00b2f0435 /tools/extract-data-pod.c | |
| parent | 674abec04cc06de1b451d4efbbb52ca8b202beee (diff) | |
Generate Sysroot in Build Directory
This is a mouthful! We now generate `sysroot.c` **and** its
corresponding header file `sysroot.h`. We also made a few
modifications to the Makefile to better support out builds:
- We now output to `build/` - this plays nicer with tooling
as that is the typical directory created by CMake, and
helps with things like `compile_commands.json` being
automagically picked up by `clangd`.
- We now have a recipe for building a `compile_commands.json`
file, so that `clangd` can provide LSP support out-of-the
box. It works by creating a small wrapper `ccj` compiler
that adds the required `-MJ <path>` option to clang. This
is an adhoc solution to avoid pulling in additional build
dependencies to the project, and works well enough :)
Diffstat (limited to 'tools/extract-data-pod.c')
| -rw-r--r-- | tools/extract-data-pod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/extract-data-pod.c b/tools/extract-data-pod.c index c9d8cc0..50beadc 100644 --- a/tools/extract-data-pod.c +++ b/tools/extract-data-pod.c @@ -18,7 +18,7 @@ static inline void ensure(bool cond, char const *msg) { } } -int main(int argc, char *argv[argc]) { +int main(int argc, char *argv[argc + 1]) { if (argc != 3) { printf("Usage: %s <pico8.js> <data.pod>\n", argv[0]); return EXIT_FAILURE; |
