Skip to content

Commit 16bca8b

Browse files
lupyuenxiaoxiang781216
authored andcommitted
examples/hello_nim: Fix nimcache location
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
1 parent 4c0bd14 commit 16bca8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/hello_nim/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ MODULE = $(CONFIG_EXAMPLES_HELLO_NIM)
3030
# Hello, World! Example
3131

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

3636
MAINSRC = hello_nim_main.c
3737

0 commit comments

Comments
 (0)