Skip to content

Commit

Permalink
examples/hello_nim: Fix nimcache location
Browse files Browse the repository at this point in the history
The Nim Example App fails to build because the `.nimcache` is located 2 folders up. This PR fixes the location of `.nimcache` in the `Makefile` of the Nim Example App.

`.nimcache` is explained in this article: https://lupyuen.github.io/articles/nim#inside-nim-on-nuttx
  • Loading branch information
lupyuen committed Jan 2, 2024
1 parent 4c0bd14 commit fa0b0d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/hello_nim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ MODULE = $(CONFIG_EXAMPLES_HELLO_NIM)
# Hello, World! Example

NIMPATH = $(shell choosenim show path)
CFLAGS += -I $(NIMPATH)/lib -I ./.nimcache
CSRCS += $(wildcard .nimcache/*.c)
CFLAGS += -I $(NIMPATH)/lib -I ../../.nimcache
CSRCS += $(wildcard ../../.nimcache/*.c)

MAINSRC = hello_nim_main.c

Expand Down

0 comments on commit fa0b0d1

Please sign in to comment.